Can you share with a sample for logic field with 2 state bitmaps ? I found samples in testxbrw.prg and xbrowgrd.prg . But something can't understand and that isn't working for me , I'm not seeing bitmaps ...
Here is mine source :
- Code: Select all Expand view
DEFINE WINDOW oWnd TITLE "Užsakymai" MDICHILD OF wndMain()
@ 0, 0 XBROWSE oBrw OF oWnd DATASOURCE oQry COLUMNS aCol HEADERS aHdr
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLCELL
oBrw:nColDividerStyle := LINESTYLE_BLACK
oBrw:nRowDividerStyle := LINESTYLE_BLACK
oBrw:lColDividerComplete := .t.
oBrw:nFreeze := 3
//oBrw:Svarbus:AddResource( "ON" )
//oBrw:Svarbus:AddResource( "OFF" )
oBrw:Svarbus:SetCheck( { "ON", "OFF" }, EDIT_LISTBOX, { cYs, cNo } )
oBrw:CreateFromCode()
oWnd:oClient := oBrw
ACTIVATE WINDOW oWnd ON INIT oBrw:SetFocus()
At this moment bitmaps in RC . Can this be done with bitmaps files instead RC ?
MySql boolean type for column isn't strong define . I'm using "smallint" : 1 for true , 0 - false ...
Thanks in advance !