how to disable textbox generated by wxTextCtrl

Does .Disable() / .Enable() not work?

···

-----Original Message-----
From: Ray Pasco [mailto:pascor@hotpop.com]
Sent: Monday, June 06, 2005 10:18 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] how to disable textbox generated by wxTextCtrl

Yout could use .SetBackgroundColour()/SetForegroundColour() along with
wx.TE_read_only.

Ray Pasco

Cire Anidem wrote:

Hi there! I've been using wxWidgets for quite some
time now thru wxPython. My question is: is there a way
to disable the text box generated by single-line
wxTextCtrl? What I mean is that the text box is
grayed-out until for example the user clicks on a
button or checkbox which will put the textbox into the
normal, editable state. I've tried using the
wxTE_READ_ONLY flag but it doesnt make the textbox
grayed-out. So a user will still think that he/she
still needs to enter something in the textbox. It will
be nice it it can be grayed-out so that the user will
immmediately know that he/she doesnt need to enter
something in the textbox.

eric

__________________________________
Discover Yahoo!
Have fun online with music videos, cool games, IM and more. Check it out!
http://discover.yahoo.com/online.html

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org