Atenuar imagen botón
Publicado: Vie Nov 26, 2010 1:14 pm
Hola!
Estoy usando un toolbar como el siguiente :
// MODIFICACION DEL TOOLBAR
CLASS TToolBar from XToolBar
CONSTRUCTOR New( oParent )
PROPERTY imgNav
PROPERTY imgNavLst
ENDCLASS
METHOD New( oParent ) CLASS TToolBar
LOCAL i
Super:New( oParent )
::imgNav :=TImageList():New()
::imgNavLst:= { "XA_BMP_FIRST", "XA_BMP_PREV", "XA_BMP_NEXT", "XA_BMP_LAST", "XA_BMP_INSERT","XA_BMP_DELETE", "XA_BMP_EDIT", "XA_BMP_OK", "XA_BMP_CANCEL", "XA_BMP_LUPA" } //"XA_BMP_REFRESH" }
FOR EACH i IN ::imgNavLst
::imgNav:add(i)
NEXT
::oImageList:=::ImgNav
RETURN Self
Las imágenes las cargo "a mano" y quiero que cuando se deshabilite un elemento del toolbar enbabled:=.F. la imagen se atenúe tal y como ocurre con el TDBtoolbar. ¿ Alguna idea de como hacerlo ?
También he visto que algunas toolbar tienen una imagen de lupa ( para realizar búsquedas , alguien sabe como se llama ?
están explicados en algún sitio los valores de estas constantes?
Gracias!
Estoy usando un toolbar como el siguiente :
// MODIFICACION DEL TOOLBAR
CLASS TToolBar from XToolBar
CONSTRUCTOR New( oParent )
PROPERTY imgNav
PROPERTY imgNavLst
ENDCLASS
METHOD New( oParent ) CLASS TToolBar
LOCAL i
Super:New( oParent )
::imgNav :=TImageList():New()
::imgNavLst:= { "XA_BMP_FIRST", "XA_BMP_PREV", "XA_BMP_NEXT", "XA_BMP_LAST", "XA_BMP_INSERT","XA_BMP_DELETE", "XA_BMP_EDIT", "XA_BMP_OK", "XA_BMP_CANCEL", "XA_BMP_LUPA" } //"XA_BMP_REFRESH" }
FOR EACH i IN ::imgNavLst
::imgNav:add(i)
NEXT
::oImageList:=::ImgNav
RETURN Self
Las imágenes las cargo "a mano" y quiero que cuando se deshabilite un elemento del toolbar enbabled:=.F. la imagen se atenúe tal y como ocurre con el TDBtoolbar. ¿ Alguna idea de como hacerlo ?
También he visto que algunas toolbar tienen una imagen de lupa ( para realizar búsquedas , alguien sabe como se llama ?
están explicados en algún sitio los valores de estas constantes?
Gracias!