Colin,
I added some more Functions to my Sample.
All Buttons are working fine now ( changed from Dialog to MDI-child ).
I hope, it will work for You
You can create a extra Child, only for the Buttons.
( I can use the same Background like the Main-window to make it transparent looking )
It works exactly like I have done before with the Dialog, but now the Main-Child is on Top like expected
and covers the Buttons.
For the Screenshot-sample the Button-part ( Color-Background ) :
..
..
DEFINE BRUSH oBrush3 COLOR 14853684DEFINE WINDOW oWndBtn MDICHILD OF oWndMain FROM 50, 50 TO 350, 220 PIXEL ;
BORDER NONE ;
NOSYSMENU ;
NOICONIZE ;
NOCAPTION ;
BRUSH oBrush3@ 10, 10 BTNBMP oBtn1 OF oWndBtn PIXEL ;
SIZE 150 , 80 PROMPT "Hide Child" 2007 ;
FONT oFont1 ;
TOP ;
NOBORDER ;
FILENAME ".\bitmaps\32x32\Hide.bmp" ;
ACTION ( oWndEdit:Hide() )
oBtn1:SetColor( 128, )
oBtn1:cTooltip := { "Show Button 1" + CRLF + ;
"on Main-Window","Button 1", 1, CLR_BLACK, 14089979 }
@ 110, 10 BTNBMP oBtn2 OF oWndBtn PIXEL ;
SIZE 150 , 80 PROMPT "Show Child" 2007 ;
FONT oFont1 ;
TOP ;
NOBORDER ;
FILENAME ".\bitmaps\32x32\Show.bmp" ;
ACTION ( oWndEdit:Show() )
oBtn2:SetColor( 128, )
oBtn2:cTooltip := { "Show Button 2" + CRLF + ;
"on Main-Window","Button 2", 1, CLR_BLACK, 14089979 }
@ 210, 10 BTNBMP oBtn3 OF oWndBtn PIXEL ;
SIZE 150 , 80 PROMPT "Exit" 2007 ;
FONT oFont1 ;
TOP ;
NOBORDER ;
FILENAME ".\bitmaps\32x32\Exit.bmp" ;
ACTION ( oWndMain:End() )
oBtn3:SetColor( 128, )
oBtn3:cTooltip := { "Show Button 3" + CRLF + ;
"on Main-Window","Button 3", 1, CLR_BLACK, 14089979 }ACTIVATE WINDOW oWndBtn ...
...
Because it is not possible, to create a TRANSPARENT Child-window,
that will show the Background from WndMain, it gets more tricky.
1. we have to make a Screencapture from the covered Wndmain-area.
2. we use this Capture ( Section ) as Brush
Sample with captured Background-section :
only needed if using Gradient or Image as WndMain-background !!!DEFINE BRUSH oBrush3 FILENAME
cImage3A // Screencapture-section
DEFINE WINDOW oWndBtn MDICHILD OF oWndMain FROM 50, 50 TO 350, 220 PIXEL ;
BORDER NONE ;
NOSYSMENU ;
NOICONIZE ;
NOCAPTION ;
BRUSH oBrush3
with Image-Background :
Captured-area defined as Child-background :
Best Regards
Uwe