Page 1 sur 1

Image en fond de fenêtre

Publié : dim. 23/oct./2005 14:10
par coc3d
Bonjour,
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
Seul problème, le ImageGadget fait tout planter mes autres gadgets, ils ne réagissent plus...
Une solution ?

merci d'avance.

Publié : dim. 23/oct./2005 14:50
par Dr. Dri
essaye avec un brush (fais une recherche si tu ne sais pas ce que c'est)

Dri

Publié : dim. 23/oct./2005 15:45
par coc3d
J'ai résolu le problème grâce à al librairie Skin.

Code : Tout sélectionner

SetWinBackgroundImage( fenetre, UseImage(#fond) )
Merci.