Jump to content

Quick Help. Can't get the background for my GUI to disable.


CrewXp
 Share

Recommended Posts

Hey, I have a quick question. I have a background picture on my GUI, but I'm supposed to have buttons and input boxes on it. But for some reason, they don't work.

When I disable the background, it works.... but i need the background. I saw you have to disable the control, and the background will still be there... but it's still not working.. Here's a little of what I have..

Func MainGui()
$maingui =GUICreate("CrewKit",240,180)
GUISetState()
$background = GUICtrlCreatePic ("C:\Program Files\CrewKit\Bin\back.jpg", 0, 40, 240, 180)
GUISetState(@SW_SHOW,$background)
GuiCtrlSetState($background,$GUI_DISABLE); <----------------------------- Not working. Tried '-1' instead of $background too.
[....extra GUI coding]
EndFunc

ps: Is there any way to make the input boxes transparent, so all that shows up is the text? (No white background input box)? Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...