Bitmap switch on/off
Posted: Tue Oct 02, 2018 5:50 am
Hi,
I have background bitmap on main app window like this :
oBitmap:=DC_GetBitmap("Raukn3.jpg",,,,{aSize[1]*0.99,(aSize[2]*0.89)-(8.5*fontnv)+6})
DCGETOPTIONS ;
BITMAP oBitmap ;
ICON ICON_EXPRESS ;
FONT fontnt ;
EVAL { || SetAppWindow(oMenuBarh), ;
oTimer1 := DC_SetTimerEvent():new( 200,{ || _UpdateStats(GetList) } )}
DCREAD GUI SETAPPWINDOW ;
TITLE "RAUKN Win"+verzia ;
OPTIONS GetOptions
When I want load big button to this place, and use DCPUSHBUTTON rounded border it is not ok, because on button place stay blank space with square corners. This look as first delete rectangle area and then load button. When button is rectangle it is ok, but when rounded then stay little pieces without bitmap area.
Because this I want swith off background bitmap when activate buttons and when close buttons , again load bitmap
How can I switch on/off loaded bitmap ?
Can I use some code block for BITMAP oBitmap ; ? to switching this ?
I have background bitmap on main app window like this :
oBitmap:=DC_GetBitmap("Raukn3.jpg",,,,{aSize[1]*0.99,(aSize[2]*0.89)-(8.5*fontnv)+6})
DCGETOPTIONS ;
BITMAP oBitmap ;
ICON ICON_EXPRESS ;
FONT fontnt ;
EVAL { || SetAppWindow(oMenuBarh), ;
oTimer1 := DC_SetTimerEvent():new( 200,{ || _UpdateStats(GetList) } )}
DCREAD GUI SETAPPWINDOW ;
TITLE "RAUKN Win"+verzia ;
OPTIONS GetOptions
When I want load big button to this place, and use DCPUSHBUTTON rounded border it is not ok, because on button place stay blank space with square corners. This look as first delete rectangle area and then load button. When button is rectangle it is ok, but when rounded then stay little pieces without bitmap area.
Because this I want swith off background bitmap when activate buttons and when close buttons , again load bitmap
How can I switch on/off loaded bitmap ?
Can I use some code block for BITMAP oBitmap ; ? to switching this ?