Sign in to follow this  
Followers 0
GeekS

Making GUIInputs "Grey" (Not able of inputting)

4 posts in this topic

Ok, basically what i want to do is display a 'Inputbox', without making people able of typing anything in it, it would be usefull if it would become grey etc (text still visible)

$Pancake = GUICtrlCreateInput("Pancake", x, y, x, y)

$Pie = GUICtrlCreateInput("Pancake", x2, y2, x2, y2) <-- Lets say that one should be grey.

Thanks in advance, Gnu/GeekS.

Share this post


Link to post
Share on other sites



Like this....

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

GUICreate("")

$Pancake = GUICtrlCreateInput("Pancake", 20, 20, 100, 20)
$Pie = GUICtrlCreateInput("Pancake", 20, 50, 100, 20) ; <-- Lets say that one should be grey.
GUICtrlSetState( -1, $GUI_DISABLE)
GUISetState()


While GUIGetMsg() <> -3
WEnd

8)

Great, was just what i needed. Fast and usefull. Thanks :P

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