Página 1 de 1

Browse with Bitmaps in a Column

Publicado: Lun Jul 31, 2006 11:33 pm
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

Browse with Bitmaps in a Column

Publicado: Lun Jul 31, 2006 11:41 pm
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

Browse with Bitmaps in a Column

Publicado: Mar Ago 01, 2006 12:31 am
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

Browse with Bitmaps in a Column

Publicado: Mar Ago 01, 2006 11:03 am
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

Browse with Bitmaps in a Column

Publicado: Mar Ago 01, 2006 5:20 pm
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
>