Pictures in Tbrowse column
Publicado: Mar Jul 17, 2007 4:31 pm
Hi,
I would like to show different icons in the TbrowseColumn, depending on the value in the
database, for example checked and unchecked icons. The OnDraw() event of the TbrwColumn
class seems to work only with text. Any idea how to do this trick?
Something like this pseudo code:
METHOD OnDrawBrowseColumn() CLASS TForm1
IF oDataset:ShowMe
::PaintCheckedIcon()
ELSE
::PaintUncheckedIcon()
ENDIF
RETURN Nil
Gejza Horváth
I would like to show different icons in the TbrowseColumn, depending on the value in the
database, for example checked and unchecked icons. The OnDraw() event of the TbrwColumn
class seems to work only with text. Any idea how to do this trick?
Something like this pseudo code:
METHOD OnDrawBrowseColumn() CLASS TForm1
IF oDataset:ShowMe
::PaintCheckedIcon()
ELSE
::PaintUncheckedIcon()
ENDIF
RETURN Nil
Gejza Horváth