j'essaie de mettre une image en fond d'une fenêtre comprenant des gadgets.
Voilà comment je procède:
Code : Tout sélectionner
OpenWindow(1, 375, 265, 640, 480, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered | #PB_Window_BorderLess , "test")
CreateGadgetList(WindowID())
ImageGadget(#fond, 0, 0, 640, 480, #fond)
ListIconGadget(#listeclients, 84, 132, 495, 231, "Nom", 150)
AddGadgetColumn(#listeclients, 2, "Organisation", 120)
AddGadgetColumn(#listeclients, 3, "Adresse", 300)
AddGadgetItem(#listeclients,-1,"gvrtgvtr gtrgtrg"+Chr(10)+"gtgt"+Chr(10)+"gtrgt")
ButtonGadget(#nouveauclient, 195, 390, 243, 39, "Nouveau client")
Repeat
EventID.l = WaitWindowEvent()
If EventID = #PB_Event_CloseWindow
CloseWindow(1)
Goto menuprincipal1
EndIf
Until EventID = #PB_EventCloseWindow
Une solution ?
merci d'avance.