Buttons over Bitmaps problem
Posted: Wed Feb 15, 2017 4:16 am
Hello,
I have a problem with pushbuttons on a bitmap. When I use the bitmap as parent then the button only get visible when I move the mouse over the buttons, they are invisible when creating the dialog. They are vanishing again on some actions. Also statics make problems. What can I do to keep the elements on top of the bitmap ?
regards
Rudolf
I have a problem with pushbuttons on a bitmap. When I use the bitmap as parent then the button only get visible when I move the mouse over the buttons, they are invisible when creating the dialog. They are vanishing again on some actions. Also statics make problems. What can I do to keep the elements on top of the bitmap ?
regards
Rudolf
Code: Select all
@ 1,0 DCSTATIC TYPE XBPSTATIC_TYPE_BITMAP OBJECT oVarPad:oStaticBG PREEVAL {|o|o:autoSize := .t.} SIZE 800,700 PIXEL ID "STATICBG"
oVarPad:oBmpBG := xbpBitmap():new():create()
DCBITMAP oVarPad:oBmpBG PARENT oVarPad:oStaticBG
oVarPad:oBmpBG:loadfile("pad.png")
@ 27,15 DCPUSHBUTTONXP CONFIG oSys:oCfgButton CAPTION "F1 = Speichern" size 20,2 OBJECT oBt1 ACTION {||} PARENT oVarPad:oStaticBG
@ 27,_NCOL DCPUSHBUTTONXP CONFIG oSys:oCfgButton CAPTION "F2 = Anzeige" size 20,2 OBJECT oBt2 ACTION {||} PARENT oVarPad:oStaticBG
@ 27,_NCOL DCPUSHBUTTONXP CONFIG oSys:oCfgButton CAPTION "F3 = Reset" size 20,2 OBJECT oBt3 ACTION {||} PARENT oVarPad:oStaticBG
@ 27,_NCOL DCPUSHBUTTONXP CONFIG oSys:oCfgButton CAPTION "ESC = Abbruch" size 20,2 OBJECT oBt4 ACTION {||} PARENT oVarPad:oStaticBG