Página 1 de 1

Atenuar imagen botón

Publicado: Vie Nov 26, 2010 1:14 pm
por artur
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!

Atenuar imagen botón

Publicado: Vie Nov 26, 2010 4:29 pm
por rsenties
No sé mucho sobre como modificar la toolbar, pero te envié unas imagenes
de lupas y binoculares a tu correo, espero te sirvan.
Saludos.
Rubén Sentí­es.
El 26/11/2010 06:14 a.m., artur escribió:
> 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!
--
Atte.
Rubén Sentí­es

Atenuar imagen botón

Publicado: Lun Nov 29, 2010 9:20 am
por artur
Oka Gracias por el email
Igualmente , dentro de las constantes XA_BMP_* no hay ninguna que sea una lupa ?
Donde puedo encontrar una lista de todas las que existen , en la documentación no encuentro referencia alguna a esas constantes.