You can have gadgets appear over other gadgets. The z order is determined by the creation order in Purebasic.
It appears to be reverse order I had to set the TEXTBOX first THEN set the image...
Code: Select all
Procedure WinProc(hWnd, Msg, wParam, lParam)
Protected Result = #PB_ProcessPureBasicEvents
Select Msg
Case #WM_CTLCOLORSTATIC
SetBkMode_(wParam, #TRANSPARENT)
Result = GetStockObject_(#NULL_BRUSH)
EndSelect
ProcedureReturn Result
EndProcedure
Enumeration
#Image_0
EndEnumeration
;- Image Plugins
UseJPEGImageDecoder()
;- Image Globals
Global Image0
;- Catch Images
Image0 = CatchImage(0, ?Image0)
;- Images
DataSection
Image0:
IncludeBinary "C:\Documents and Settings\Ralph\My Pictures\imperialsymbol.jpg"
; a small icon sized image ( 80X80 )just to test this idea!
EndDataSection
OpenWindow(0,0,0,230,190,".",#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered)
SetWindowCallback(@WinProc())
CreateGadgetList(WindowID(0))
TextGadget(1, 11, 11, 208, 38, "TROND Rules!!! This works!!! Hi Mom!!!")
ImageGadget(#Image_0, 10, 10, 100, 105, Image0)
HideWindow(0, 0)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
Break
EndSelect
ForEver
TROND that does do it! I just wish I didn't have to use my own function to set it up.
