In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Browse with Bitmaps in a Column

Xailer English public forum
Responder
aross
Mensajes: 24
Registrado: Vie Jul 28, 2006 1:38 am

Browse with Bitmaps in a Column

Mensaje por aross »

Is there an example of a browse with a bitmap assigned to a column? What I
am after is a check box (2 images on/off) in one column and a text label in
a second column. I would like to use the array browse class. I can't seem to
find a sample of any kind with any of the browse classes showing me how to
do this.
TIA,
Andy
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

Browse with Bitmaps in a Column

Mensaje por jlalin »

Andrew,
> Is there an example of a browse with a bitmap assigned to a column? What I
> am after is a check box (2 images on/off) in one column and a text label in
> a second column. I would like to use the array browse class. I can't seem to
> find a sample of any kind with any of the browse classes showing me how to
> do this.
Use the column's OnGetData event and you are done.
METHOD MyColumnOnGetData( oSender, Value, nImage ) CLASS ...
IF Value
nImage := ...
ELSE
nImage := ...
ENDIF
RETURN Nil
Regards,
José Lalí­n
aross
Mensajes: 24
Registrado: Vie Jul 28, 2006 1:38 am

Browse with Bitmaps in a Column

Mensaje por aross »

José,
Thanks, but I have another problem. I am assigning logical values to the
first column and string values to the second column in the forms on create
event so the browse is setup. No problem so far. However, when the form is
displayed the browse contains both the bitmap *and* the logical value to the
right of the bitmap. How can I get rid of the logical value displayed? Do I
use another column that I don't display that will contain the logical
values? Is there a better way?
"José Lalín" <dezac@corevia.com> wrote in message
news:44ce7918$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>
> Andrew,
>
>> Is there an example of a browse with a bitmap assigned to a column? What
>> I am after is a check box (2 images on/off) in one column and a text
>> label in a second column. I would like to use the array browse class. I
>> can't seem to find a sample of any kind with any of the browse classes
>> showing me how to do this.
>
> Use the column's OnGetData event and you are done.
>
> METHOD MyColumnOnGetData( oSender, Value, nImage ) CLASS ...
>
> IF Value
> nImage := ...
> ELSE
> nImage := ...
> ENDIF
>
> RETURN Nil
>
> Regards,
> José Lalín
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Browse with Bitmaps in a Column

Mensaje por jfgimenez »

Andrew,
> Thanks, but I have another problem. I am assigning logical values to the
> first column and string values to the second column in the forms on create
> event so the browse is setup. No problem so far. However, when the form is
> displayed the browse contains both the bitmap *and* the logical value to
> the right of the bitmap. How can I get rid of the logical value displayed?
> Do I use another column that I don't display that will contain the logical
> values? Is there a better way?
METHOD MyColumnOnGetData( oSender, Value, nImage ) CLASS ...
IF Value
nImage := ...
ELSE
nImage := ...
ENDIF
Value := "" // Set the value to an empty string
RETURN Nil
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
aross
Mensajes: 24
Registrado: Vie Jul 28, 2006 1:38 am

Browse with Bitmaps in a Column

Mensaje por aross »

So simple, thanks!
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:[email=44cf18d1@news.xailer.com...]44cf18d1@news.xailer.com...[/email]
> Andrew,
>
>> Thanks, but I have another problem. I am assigning logical values to the
>> first column and string values to the second column in the forms on
>> create event so the browse is setup. No problem so far. However, when the
>> form is displayed the browse contains both the bitmap *and* the logical
>> value to the right of the bitmap. How can I get rid of the logical value
>> displayed? Do I use another column that I don't display that will contain
>> the logical values? Is there a better way?
>
> METHOD MyColumnOnGetData( oSender, Value, nImage ) CLASS ...
>
> IF Value
> nImage := ...
> ELSE
> nImage := ...
> ENDIF
> Value := "" // Set the value to an empty string
>
> RETURN Nil
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>
Responder