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
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.
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
Browse with Bitmaps in a Column
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
> 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
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
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
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
> 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
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
>
"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
>