Immensee Posted January 28, 2007 Posted January 28, 2007 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
Noobster24 Posted January 28, 2007 Posted January 28, 2007 (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 January 28, 2007 by Noobster24 Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.
BALA Posted January 28, 2007 Posted January 28, 2007 (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 January 28, 2007 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
Immensee Posted January 28, 2007 Author Posted January 28, 2007 Wow, thanks, it was the $ES_READONLY command, didn't saw that in the AutoIt Help thanks alot, - me
Moderators SmOke_N Posted January 28, 2007 Moderators Posted January 28, 2007 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 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now