Buttons over Bitmaps problem

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Buttons over Bitmaps problem

#1 Post by c-tec »

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




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 
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
Tom
Posts: 1234
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Buttons over Bitmaps problem

#2 Post by Tom »

Don't use DCBITMAP. Use the XbpBitmap-Object as the caption of the static:

Code: Select all

oVarPad:oBmpBG := xbpBitmap():new():create()
oVarPad:oBmpBG:loadfile("pad.png")

@ 1,0 DCSTATIC TYPE XBPSTATIC_TYPE_BITMAP  OBJECT oVarPad:oStaticBG PREEVAL {|o|o:autoSize := .t.} SIZE 800,700 PIXEL ID "STATICBG" CAPTION oVarPad:oBmpBG
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Buttons over Bitmaps problem

#3 Post by c-tec »

Hello Tom,
thank you , works now, attached the screenshot of the perfect working result.
regards
Rudolf
Attachments
screenshot.png
screenshot.png (259.81 KiB) Viewed 9892 times
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
unixkd
Posts: 579
Joined: Thu Feb 11, 2010 1:39 pm

Re: Buttons over Bitmaps problem

#4 Post by unixkd »

Hi Tom

Is there any way to make the STATIC on which the bitmap is displayed RAISED or RECCESSD ?

Thanks.

Joe

Post Reply