How i can create in a window more images gadgets one up on each other like a stack....in other words i want to make a composite of images and texts in the main window.....i have tryed everythings without success....i don't know where is my fault...i'm sorry...i know ...this is a very basic question...but also important for me.....
I would like to make a simple code as simple as possible...like spiderbasic do ......
ok....below i post my 2 wrong example...that don't work.......Can somebody help me please????

Code: Select all
;
; ------------------------------------------------------------
;
; My2 Image example file
;
; FasaSoftware
;
; ------------------------------------------------------------
Global scriva
Global rettangolo
; Display the image in a new window
If OpenWindow(#PB_Any, 320, 100, 640, 410, "Test2", #PB_Window_TitleBar)
ImageGadget(scriva, 0, -2, ImageWidth(640), ImageHeight(410), ImageID(0))
EndIf
LoadImage(scriva, "Data/desktop.png")
LoadImage(rettangolo, "Data/quadrato2.png")
Code: Select all
;
; ------------------------------------------------------------
;
; My Image example file
;
; Fasasoftware
;This Software don't work!!!!
; ------------------------------------------------------------
Global scriva
Global rettangolo
Procedure Loaded(Type, Filename$, ObjectId)
; Display the image in a new window
If OpenWindow(0, 320, 100, 640, 410, "Test", #PB_Window_TitleBar)
ImageGadget(scriva, 0, -2, ImageWidth(640), ImageHeight(410), ImageID(0))
ImageGadget(rettangolo, 300, 50, ImageWidth(50), ImageHeight(50), ImageID(0))
EndIf
EndProcedure
Procedure LoadingError(Type, Filename$, ObjectId)
Debug Filename$ + ": loading error"
EndProcedure
; Register the loading event before calling any resource load command
BindEvent(#PB_Event_Loading, @Loaded())
BindEvent(#PB_Event_LoadingError, @LoadingError())
LoadImage(scriva, "Data/desktop.png")
LoadImage(rettangolo, "Data/quadrato2.png")
I thank you a lot in advance......

Best regards,
Lestroso