SetClassLong_() and #GCL_HBRBACKGROUND

Just starting out? Need help? Post your questions and find answers here.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Not sure what you mean?

Why not use an image gadget?

Code: Select all

If OpenWindow(0, 100, 100, 640, 600, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget) And CreateGadgetList(WindowID(0))

  UseJPEGImageDecoder()
  LoadImage(1, #PB_Compiler_Home + "Examples\Sources\Data\terrain_texture.jpg")
  ResizeImage(1, 300, 300)
  ImageGadget(1, 0, 0, 300,300, ImageID(1))
  UseGadgetList(GadgetID(1))
    StringGadget(2, 20,20, 80, 30, "")

  Repeat 
    EventID = WaitWindowEvent() 
  Until EventID = #PB_Event_CloseWindow 
EndIf 
I may look like a mule, but I'm not a complete ass.
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Post by Marco2007 »

@Srod: thanx for the tip with UseGadgetList + GadgetID :D
PureBasic for Windows
Post Reply