Sign in to follow this  
Followers 0
CrewXp

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

2 posts in this topic

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0