xbrowse bitmap from resource
Posted: Sun Feb 14, 2021 8:36 am
hi,
inside my .res file there are Bitmaps "RED" and "GREEN" (a little ball) and I link .res when compile.
how can I show bmp inside my XBROWSE after EMAIL column depending on EMAIL value (in EMAIL there is 1 for green or 2 for red numeric value) ?:
thank you
inside my .res file there are Bitmaps "RED" and "GREEN" (a little ball) and I link .res when compile.
how can I show bmp inside my XBROWSE after EMAIL column depending on EMAIL value (in EMAIL there is 1 for green or 2 for red numeric value) ?:
Code: Select all
local oColB
DEFINE IMAGE oBmp RESOURCE "RED"
...
@ 40,10 XBROWSE oBrw SIZE -10,-50 PIXEL ;
ALIAS "CNTINS" ;
COLUMNS "TPLET", "EMAIL" ;
HEADERS "Let.","Mail" ;
PICTURE nil, nil ;
OF oDlg2
oBrw:CreateFromCode()