Hi Guys
I have a TDBBrowse. I'm trying to work out how to put an image in a column
based on the underlying database value
For example I have a field called Status, it can be 1, 2 or 3
I would like to use Green, Amber and Red circle bmp's .
If the status is 1, then display green.
I had a look through the sample and help. I'm hoping someone has done it
before and can paste some code.
Nick
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.
Images in TDBBrowse column
-
- Mensajes: 328
- Registrado: Mar Nov 21, 2006 2:10 am
- Dionisis Divaris
- Mensajes: 485
- Registrado: Jue Jul 12, 2007 8:48 pm
- Ubicación: Athens Greece
Images in TDBBrowse column
TBrwColumn:OnGetData
Event that is produced when the browse requires information or data for
this column to be shown.
Parameters:
<oSender>:
Object that triggers the object (Self).
<@Value>:
Value with the information. This parameter is received by
reference.
<@nImage>:
Image number to show according to the object from the container
Browse. This parameter is received by reference. Its default value zero (no
image).
Return value:
NIL or value. If the returned value is not NIL, its value will be
used to be shown by the container Browse even if the Value variable has been
modified.
Description:
This event is produced every time that the Browse tries to recover
information from the column to display it. You can define this event to
change the information to be shown on the column.
Best Regards
Dionisis
Ο "Nick Hilder" <nick_n0_spam_atcapsol.com.au> ÎγÏαψε στο μήνυμα
news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Guys
>
> I have a TDBBrowse. I'm trying to work out how to put an image in a column
> based on the underlying database value
>
> For example I have a field called Status, it can be 1, 2 or 3
>
> I would like to use Green, Amber and Red circle bmp's .
>
> If the status is 1, then display green.
>
> I had a look through the sample and help. I'm hoping someone has done it
> before and can paste some code.
>
> Nick
>
--
Attached files
Event that is produced when the browse requires information or data for
this column to be shown.
Parameters:
<oSender>:
Object that triggers the object (Self).
<@Value>:
Value with the information. This parameter is received by
reference.
<@nImage>:
Image number to show according to the object from the container
Browse. This parameter is received by reference. Its default value zero (no
image).
Return value:
NIL or value. If the returned value is not NIL, its value will be
used to be shown by the container Browse even if the Value variable has been
modified.
Description:
This event is produced every time that the Browse tries to recover
information from the column to display it. You can define this event to
change the information to be shown on the column.
Best Regards
Dionisis
Ο "Nick Hilder" <nick_n0_spam_atcapsol.com.au> ÎγÏαψε στο μήνυμα
news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Guys
>
> I have a TDBBrowse. I'm trying to work out how to put an image in a column
> based on the underlying database value
>
> For example I have a field called Status, it can be 1, 2 or 3
>
> I would like to use Green, Amber and Red circle bmp's .
>
> If the status is 1, then display green.
>
> I had a look through the sample and help. I'm hoping someone has done it
> before and can paste some code.
>
> Nick
>
--
Attached files
Images in TDBBrowse column
TBrwColumn:OnGetData
Event that is produced when the browse requires information or data for
this column to be shown.
Parameters:
<oSender>:
Object that triggers the object (Self).
<@Value>:
Value with the information. This parameter is received by
reference.
<@nImage>:
Image number to show according to the object from the container
Browse. This parameter is received by reference. Its default value zero (no
image).
Return value:
NIL or value. If the returned value is not NIL, its value will be
used to be shown by the container Browse even if the Value variable has been
modified.
Description:
This event is produced every time that the Browse tries to recover
information from the column to display it. You can define this event to
change the information to be shown on the column.
Best Regards
Dionisis
Ο "Nick Hilder" <nick_n0_spam_atcapsol.com.au> ÎγÏαψε στο μήνυμα
news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Guys
>
> I have a TDBBrowse. I'm trying to work out how to put an image in a column
> based on the underlying database value
>
> For example I have a field called Status, it can be 1, 2 or 3
>
> I would like to use Green, Amber and Red circle bmp's .
>
> If the status is 1, then display green.
>
> I had a look through the sample and help. I'm hoping someone has done it
> before and can paste some code.
>
> Nick
>
--
Attached files
Event that is produced when the browse requires information or data for
this column to be shown.
Parameters:
<oSender>:
Object that triggers the object (Self).
<@Value>:
Value with the information. This parameter is received by
reference.
<@nImage>:
Image number to show according to the object from the container
Browse. This parameter is received by reference. Its default value zero (no
image).
Return value:
NIL or value. If the returned value is not NIL, its value will be
used to be shown by the container Browse even if the Value variable has been
modified.
Description:
This event is produced every time that the Browse tries to recover
information from the column to display it. You can define this event to
change the information to be shown on the column.
Best Regards
Dionisis
Ο "Nick Hilder" <nick_n0_spam_atcapsol.com.au> ÎγÏαψε στο μήνυμα
news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Guys
>
> I have a TDBBrowse. I'm trying to work out how to put an image in a column
> based on the underlying database value
>
> For example I have a field called Status, it can be 1, 2 or 3
>
> I would like to use Green, Amber and Red circle bmp's .
>
> If the status is 1, then display green.
>
> I had a look through the sample and help. I'm hoping someone has done it
> before and can paste some code.
>
> Nick
>
--
Attached files
- Dionisis Divaris
- Mensajes: 485
- Registrado: Jue Jul 12, 2007 8:48 pm
- Ubicación: Athens Greece
Images in TDBBrowse column
Hi Nick again
The @value parameter return the current value of the your field Status (1,
2 or 3) and the @nImage is what image you want to display on the column.
But previously the images must be inserted on the TDBBrowse ImageList.
With a simple DO CASE or IF THEN ENDIF structure, you can easily display any
kind of icon you want.
Hope that is help you.
Again best regards
Dionsis
Ο "Dionisis Divaris" <info@sgs-soft.gr> ÎγÏαψε στο μήνυμα
news:485b3c7c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> TBrwColumn:OnGetData
>
>
>
> Event that is produced when the browse requires information or data
> for
> this column to be shown.
>
>
>
> Parameters:
> <oSender>:
> Object that triggers the object (Self).
> <@Value>:
> Value with the information. This parameter is received by
> reference.
> <@nImage>:
> Image number to show according to the object from the container
> Browse. This parameter is received by reference. Its default value zero
> (no
> image).
>
> Return value:
> NIL or value. If the returned value is not NIL, its value will
> be
> used to be shown by the container Browse even if the Value variable has
> been
> modified.
>
>
>
>
>
> Description:
>
> This event is produced every time that the Browse tries to recover
> information from the column to display it. You can define this event to
> change the information to be shown on the column.
>
>
>
> Best Regards
> Dionisis
>
>
>
> Ο "Nick Hilder" <nick_n0_spam_atcapsol.com.au> ÎγÏαψε στο μήνυμα
> news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Hi Guys
>>
>> I have a TDBBrowse. I'm trying to work out how to put an image in a
>> column
>> based on the underlying database value
>>
>> For example I have a field called Status, it can be 1, 2 or 3
>>
>> I would like to use Green, Amber and Red circle bmp's .
>>
>> If the status is 1, then display green.
>>
>> I had a look through the sample and help. I'm hoping someone has done it
>> before and can paste some code.
>>
>> Nick
>>
>
The @value parameter return the current value of the your field Status (1,
2 or 3) and the @nImage is what image you want to display on the column.
But previously the images must be inserted on the TDBBrowse ImageList.
With a simple DO CASE or IF THEN ENDIF structure, you can easily display any
kind of icon you want.
Hope that is help you.
Again best regards
Dionsis
Ο "Dionisis Divaris" <info@sgs-soft.gr> ÎγÏαψε στο μήνυμα
news:485b3c7c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> TBrwColumn:OnGetData
>
>
>
> Event that is produced when the browse requires information or data
> for
> this column to be shown.
>
>
>
> Parameters:
> <oSender>:
> Object that triggers the object (Self).
> <@Value>:
> Value with the information. This parameter is received by
> reference.
> <@nImage>:
> Image number to show according to the object from the container
> Browse. This parameter is received by reference. Its default value zero
> (no
> image).
>
> Return value:
> NIL or value. If the returned value is not NIL, its value will
> be
> used to be shown by the container Browse even if the Value variable has
> been
> modified.
>
>
>
>
>
> Description:
>
> This event is produced every time that the Browse tries to recover
> information from the column to display it. You can define this event to
> change the information to be shown on the column.
>
>
>
> Best Regards
> Dionisis
>
>
>
> Ο "Nick Hilder" <nick_n0_spam_atcapsol.com.au> ÎγÏαψε στο μήνυμα
> news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Hi Guys
>>
>> I have a TDBBrowse. I'm trying to work out how to put an image in a
>> column
>> based on the underlying database value
>>
>> For example I have a field called Status, it can be 1, 2 or 3
>>
>> I would like to use Green, Amber and Red circle bmp's .
>>
>> If the status is 1, then display green.
>>
>> I had a look through the sample and help. I'm hoping someone has done it
>> before and can paste some code.
>>
>> Nick
>>
>
Images in TDBBrowse column
Hi Nick again
The @value parameter return the current value of the your field Status (1,
2 or 3) and the @nImage is what image you want to display on the column.
But previously the images must be inserted on the TDBBrowse ImageList.
With a simple DO CASE or IF THEN ENDIF structure, you can easily display any
kind of icon you want.
Hope that is help you.
Again best regards
Dionsis
Ο "Dionisis Divaris" <info@sgs-soft.gr> ÎγÏαψε στο μήνυμα
news:485b3c7c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> TBrwColumn:OnGetData
>
>
>
> Event that is produced when the browse requires information or data
> for
> this column to be shown.
>
>
>
> Parameters:
> <oSender>:
> Object that triggers the object (Self).
> <@Value>:
> Value with the information. This parameter is received by
> reference.
> <@nImage>:
> Image number to show according to the object from the container
> Browse. This parameter is received by reference. Its default value zero
> (no
> image).
>
> Return value:
> NIL or value. If the returned value is not NIL, its value will
> be
> used to be shown by the container Browse even if the Value variable has
> been
> modified.
>
>
>
>
>
> Description:
>
> This event is produced every time that the Browse tries to recover
> information from the column to display it. You can define this event to
> change the information to be shown on the column.
>
>
>
> Best Regards
> Dionisis
>
>
>
> Ο "Nick Hilder" <nick_n0_spam_atcapsol.com.au> ÎγÏαψε στο μήνυμα
> news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Hi Guys
>>
>> I have a TDBBrowse. I'm trying to work out how to put an image in a
>> column
>> based on the underlying database value
>>
>> For example I have a field called Status, it can be 1, 2 or 3
>>
>> I would like to use Green, Amber and Red circle bmp's .
>>
>> If the status is 1, then display green.
>>
>> I had a look through the sample and help. I'm hoping someone has done it
>> before and can paste some code.
>>
>> Nick
>>
>
The @value parameter return the current value of the your field Status (1,
2 or 3) and the @nImage is what image you want to display on the column.
But previously the images must be inserted on the TDBBrowse ImageList.
With a simple DO CASE or IF THEN ENDIF structure, you can easily display any
kind of icon you want.
Hope that is help you.
Again best regards
Dionsis
Ο "Dionisis Divaris" <info@sgs-soft.gr> ÎγÏαψε στο μήνυμα
news:485b3c7c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> TBrwColumn:OnGetData
>
>
>
> Event that is produced when the browse requires information or data
> for
> this column to be shown.
>
>
>
> Parameters:
> <oSender>:
> Object that triggers the object (Self).
> <@Value>:
> Value with the information. This parameter is received by
> reference.
> <@nImage>:
> Image number to show according to the object from the container
> Browse. This parameter is received by reference. Its default value zero
> (no
> image).
>
> Return value:
> NIL or value. If the returned value is not NIL, its value will
> be
> used to be shown by the container Browse even if the Value variable has
> been
> modified.
>
>
>
>
>
> Description:
>
> This event is produced every time that the Browse tries to recover
> information from the column to display it. You can define this event to
> change the information to be shown on the column.
>
>
>
> Best Regards
> Dionisis
>
>
>
> Ο "Nick Hilder" <nick_n0_spam_atcapsol.com.au> ÎγÏαψε στο μήνυμα
> news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Hi Guys
>>
>> I have a TDBBrowse. I'm trying to work out how to put an image in a
>> column
>> based on the underlying database value
>>
>> For example I have a field called Status, it can be 1, 2 or 3
>>
>> I would like to use Green, Amber and Red circle bmp's .
>>
>> If the status is 1, then display green.
>>
>> I had a look through the sample and help. I'm hoping someone has done it
>> before and can paste some code.
>>
>> Nick
>>
>
-
- Mensajes: 328
- Registrado: Mar Nov 21, 2006 2:10 am
Images in TDBBrowse column
Thanks Dionsis
I will give that a try
Nick
"Dionisis Divaris" <info@sgs-soft.gr> wrote in message
news:485b3e02$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Nick again
>
> The @value parameter return the current value of the your field Status
> (1, 2 or 3) and the @nImage is what image you want to display on the
> column. But previously the images must be inserted on the TDBBrowse
> ImageList.
> With a simple DO CASE or IF THEN ENDIF structure, you can easily display
> any kind of icon you want.
>
> Hope that is help you.
>
> Again best regards
> Dionsis
>
>
> Ï "Dionisis Divaris" <info@sgs-soft.gr> Ýãñáøå óôï ìÞíõìá
> news:485b3c7c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> TBrwColumn:OnGetData
>>
>>
>>
>> Event that is produced when the browse requires information or data
>> for
>> this column to be shown.
>>
>>
>>
>> Parameters:
>> <oSender>:
>> Object that triggers the object (Self).
>> <@Value>:
>> Value with the information. This parameter is received by
>> reference.
>> <@nImage>:
>> Image number to show according to the object from the
>> container
>> Browse. This parameter is received by reference. Its default value zero
>> (no
>> image).
>>
>> Return value:
>> NIL or value. If the returned value is not NIL, its value will
>> be
>> used to be shown by the container Browse even if the Value variable has
>> been
>> modified.
>>
>>
>>
>>
>>
>> Description:
>>
>> This event is produced every time that the Browse tries to recover
>> information from the column to display it. You can define this event to
>> change the information to be shown on the column.
>>
>>
>>
>> Best Regards
>> Dionisis
>>
>>
>>
>> Ï "Nick Hilder" <nick_n0_spam_atcapsol.com.au> Ýãñáøå óôï ìÞíõìá
>> news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Hi Guys
>>>
>>> I have a TDBBrowse. I'm trying to work out how to put an image in a
>>> column
>>> based on the underlying database value
>>>
>>> For example I have a field called Status, it can be 1, 2 or 3
>>>
>>> I would like to use Green, Amber and Red circle bmp's .
>>>
>>> If the status is 1, then display green.
>>>
>>> I had a look through the sample and help. I'm hoping someone has done it
>>> before and can paste some code.
>>>
>>> Nick
>>>
>>
>
I will give that a try
Nick
"Dionisis Divaris" <info@sgs-soft.gr> wrote in message
news:485b3e02$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Nick again
>
> The @value parameter return the current value of the your field Status
> (1, 2 or 3) and the @nImage is what image you want to display on the
> column. But previously the images must be inserted on the TDBBrowse
> ImageList.
> With a simple DO CASE or IF THEN ENDIF structure, you can easily display
> any kind of icon you want.
>
> Hope that is help you.
>
> Again best regards
> Dionsis
>
>
> Ï "Dionisis Divaris" <info@sgs-soft.gr> Ýãñáøå óôï ìÞíõìá
> news:485b3c7c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> TBrwColumn:OnGetData
>>
>>
>>
>> Event that is produced when the browse requires information or data
>> for
>> this column to be shown.
>>
>>
>>
>> Parameters:
>> <oSender>:
>> Object that triggers the object (Self).
>> <@Value>:
>> Value with the information. This parameter is received by
>> reference.
>> <@nImage>:
>> Image number to show according to the object from the
>> container
>> Browse. This parameter is received by reference. Its default value zero
>> (no
>> image).
>>
>> Return value:
>> NIL or value. If the returned value is not NIL, its value will
>> be
>> used to be shown by the container Browse even if the Value variable has
>> been
>> modified.
>>
>>
>>
>>
>>
>> Description:
>>
>> This event is produced every time that the Browse tries to recover
>> information from the column to display it. You can define this event to
>> change the information to be shown on the column.
>>
>>
>>
>> Best Regards
>> Dionisis
>>
>>
>>
>> Ï "Nick Hilder" <nick_n0_spam_atcapsol.com.au> Ýãñáøå óôï ìÞíõìá
>> news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Hi Guys
>>>
>>> I have a TDBBrowse. I'm trying to work out how to put an image in a
>>> column
>>> based on the underlying database value
>>>
>>> For example I have a field called Status, it can be 1, 2 or 3
>>>
>>> I would like to use Green, Amber and Red circle bmp's .
>>>
>>> If the status is 1, then display green.
>>>
>>> I had a look through the sample and help. I'm hoping someone has done it
>>> before and can paste some code.
>>>
>>> Nick
>>>
>>
>
-
- Mensajes: 328
- Registrado: Mar Nov 21, 2006 2:10 am
Images in TDBBrowse column
Thanks Dionsis
I will give that a try
Nick
"Dionisis Divaris" <info@sgs-soft.gr> wrote in message
news:485b3e02$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Nick again
>
> The @value parameter return the current value of the your field Status
> (1, 2 or 3) and the @nImage is what image you want to display on the
> column. But previously the images must be inserted on the TDBBrowse
> ImageList.
> With a simple DO CASE or IF THEN ENDIF structure, you can easily display
> any kind of icon you want.
>
> Hope that is help you.
>
> Again best regards
> Dionsis
>
>
> Ï "Dionisis Divaris" <info@sgs-soft.gr> Ýãñáøå óôï ìÞíõìá
> news:485b3c7c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> TBrwColumn:OnGetData
>>
>>
>>
>> Event that is produced when the browse requires information or data
>> for
>> this column to be shown.
>>
>>
>>
>> Parameters:
>> <oSender>:
>> Object that triggers the object (Self).
>> <@Value>:
>> Value with the information. This parameter is received by
>> reference.
>> <@nImage>:
>> Image number to show according to the object from the
>> container
>> Browse. This parameter is received by reference. Its default value zero
>> (no
>> image).
>>
>> Return value:
>> NIL or value. If the returned value is not NIL, its value will
>> be
>> used to be shown by the container Browse even if the Value variable has
>> been
>> modified.
>>
>>
>>
>>
>>
>> Description:
>>
>> This event is produced every time that the Browse tries to recover
>> information from the column to display it. You can define this event to
>> change the information to be shown on the column.
>>
>>
>>
>> Best Regards
>> Dionisis
>>
>>
>>
>> Ï "Nick Hilder" <nick_n0_spam_atcapsol.com.au> Ýãñáøå óôï ìÞíõìá
>> news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Hi Guys
>>>
>>> I have a TDBBrowse. I'm trying to work out how to put an image in a
>>> column
>>> based on the underlying database value
>>>
>>> For example I have a field called Status, it can be 1, 2 or 3
>>>
>>> I would like to use Green, Amber and Red circle bmp's .
>>>
>>> If the status is 1, then display green.
>>>
>>> I had a look through the sample and help. I'm hoping someone has done it
>>> before and can paste some code.
>>>
>>> Nick
>>>
>>
>
I will give that a try
Nick
"Dionisis Divaris" <info@sgs-soft.gr> wrote in message
news:485b3e02$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Nick again
>
> The @value parameter return the current value of the your field Status
> (1, 2 or 3) and the @nImage is what image you want to display on the
> column. But previously the images must be inserted on the TDBBrowse
> ImageList.
> With a simple DO CASE or IF THEN ENDIF structure, you can easily display
> any kind of icon you want.
>
> Hope that is help you.
>
> Again best regards
> Dionsis
>
>
> Ï "Dionisis Divaris" <info@sgs-soft.gr> Ýãñáøå óôï ìÞíõìá
> news:485b3c7c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> TBrwColumn:OnGetData
>>
>>
>>
>> Event that is produced when the browse requires information or data
>> for
>> this column to be shown.
>>
>>
>>
>> Parameters:
>> <oSender>:
>> Object that triggers the object (Self).
>> <@Value>:
>> Value with the information. This parameter is received by
>> reference.
>> <@nImage>:
>> Image number to show according to the object from the
>> container
>> Browse. This parameter is received by reference. Its default value zero
>> (no
>> image).
>>
>> Return value:
>> NIL or value. If the returned value is not NIL, its value will
>> be
>> used to be shown by the container Browse even if the Value variable has
>> been
>> modified.
>>
>>
>>
>>
>>
>> Description:
>>
>> This event is produced every time that the Browse tries to recover
>> information from the column to display it. You can define this event to
>> change the information to be shown on the column.
>>
>>
>>
>> Best Regards
>> Dionisis
>>
>>
>>
>> Ï "Nick Hilder" <nick_n0_spam_atcapsol.com.au> Ýãñáøå óôï ìÞíõìá
>> news:485af9a3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Hi Guys
>>>
>>> I have a TDBBrowse. I'm trying to work out how to put an image in a
>>> column
>>> based on the underlying database value
>>>
>>> For example I have a field called Status, it can be 1, 2 or 3
>>>
>>> I would like to use Green, Amber and Red circle bmp's .
>>>
>>> If the status is 1, then display green.
>>>
>>> I had a look through the sample and help. I'm hoping someone has done it
>>> before and can paste some code.
>>>
>>> Nick
>>>
>>
>