Setting the background color of a scroll area

Everything else that doesn't fall into one of the other PB categories.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Setting the background color of a scroll area

Post by halo »

I need to make a scroll area with a white background for a texture browser.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post by halo »

I got it:

ScrollAreaGadget(1,180,0,800-180,600,GetSystemMetrics_(#SM_CXSCREEN)-180,4000,1)

id=ContainerGadget(2,0,0,GadgetWidth(1),GadgetHeight(1))
hBrush = CreateSolidBrush_(RGB(255,255,255))
SetClassLong_(id,#GCL_HBRBACKGROUND,hBrush)
Post Reply