Jump to content

Disabling Edit Control


 Share

Recommended Posts

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Moderators

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.

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...