Subject | Icons in TIB_Grid |
---|---|
Author | Aleš Kahánek |
Post date | 2002-03-18T14:43:37Z |
Hi,
does anybody have some experience with drawing icons in TIB_Grid? I would
prefer to create TIB_Grid descendant with property ImageList and posibility
to draw Icons on the basis of icon numbers in the associated dataset´s
column.
Example
CREATE TABLE MYTABLE(
ID INTEGER,
ICON INTEGER, /*this is number of the desired icon from the image list*/
ANOTHERFIELD VARCHAR(20),
...
)
In the TIB_Query.CollumnAttributes I can specify this entry
ICON=BMP_FIELD=1
and then in the drawing method I could test if the BMP_FIELD attribute is
set to 1. But, what is the best TIB_Grid method to override when drawing the
icon?
Or is there better solution?
Thanks in advance.
Ales Kahanek
does anybody have some experience with drawing icons in TIB_Grid? I would
prefer to create TIB_Grid descendant with property ImageList and posibility
to draw Icons on the basis of icon numbers in the associated dataset´s
column.
Example
CREATE TABLE MYTABLE(
ID INTEGER,
ICON INTEGER, /*this is number of the desired icon from the image list*/
ANOTHERFIELD VARCHAR(20),
...
)
In the TIB_Query.CollumnAttributes I can specify this entry
ICON=BMP_FIELD=1
and then in the drawing method I could test if the BMP_FIELD attribute is
set to 1. But, what is the best TIB_Grid method to override when drawing the
icon?
Or is there better solution?
Thanks in advance.
Ales Kahanek