Sign in to follow this  
Followers 0
Immensee

Disabling Edit Control

5 posts in this topic

Hello,

does anybody know how to make an Edit Control uneditable? i mean, not the $GUI_DISABLE state function, because it makes the Control all greyish, i want it that people won't be able to enter keys but it is clickable, copy-able and it would not be grey (grey is such a ugly color :)).

well, thnx for reading and helping me,

- me

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hello,

does anybody know how to make an Edit Control uneditable? i mean, not the $GUI_DISABLE state function, because it makes the Control all greyish, i want it that people won't be able to enter keys but it is clickable, copy-able and it would not be grey (grey is such a ugly color :)).

well, thnx for reading and helping me,

- me

GUICtrlCreateEdit ("your text", 50, 50, 200, 100, $ES_READONLY)

It's the $ES_READONLY you need, I think? With $ES_READONLY, you can still copy text from the editbox...

Edited by Noobster24

Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

GUICtrlCreateEdit ("your text", 50, 50, 200, 100, $ES_READONLY)

It's the $ES_READONLY you need, I think? With $ES_READONLY, you can still copy text from the editbox...

That still grays it out....

Perhaps you can create a child GUI that has a white background. So it looks like an editbox.

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

Wow,

thanks,

it was the $ES_READONLY command, didn't saw that in the AutoIt Help :)

thanks alot,

- me

Share this post


Link to post
Share on other sites

That still grays it out....

Perhaps you can create a child GUI that has a white background. So it looks like an editbox.

#include <guiconstants.au3>
GUICreate('')
GUICtrlCreateEdit ("your text", 50, 50, 200, 100, $ES_READONLY)
GUICtrlSetBkColor(-1, 0xFFFFFF)
GUISetState()
While GUIGetMsg() <> -3
WEnd

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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