change gui background pic [SOLVED]

Started by spook1, Sun 02/04/2006 16:40:03

Previous topic - Next topic

spook1

I cannot change the background image of my GUI.

Help says:

BackgroundGraphic property
(Formerly known as SetGUIBackgroundPic, which is now obsolete)

int GUI.BackgroundGraphic

Gets/sets the background image of the GUI.
You can set this to 0 to remove the background image from the GUI.

But neither the obsolete or the actual command succeed...

Any suggestions?

nihilyst

Could you provide the line of code you used to change the GUI's background?

spook1

     SetBackgroundFrame(2);
     GUI.BackgroundGraphic = 108;

regards,

Martijn

Wretched

Gui names should start with a little 'g', what is your GUI called? Code should be more like

gMyGuiName.BackgroundGraphic=108;


spook1

thanks for helping. The solution works great. Off course, how would the program know what Gui to adjust...

I got confused by the example in the help, stopped thinking and lack exprience in OO programming ;-(


SMF spam blocked by CleanTalk