how to disable textbox generated by wxTextCt rl

Hi Eric,

I'm pretty certain you want to be using ctrl.Enable(False)

Cheers!!

Dermot Doran EMC
Sr Technical Support Engineer
Mobile: +31-6-55815258
Office: +353-21-4281500 (ext: 5474)

···

-----Original Message-----
From: Cire Anidem [mailto:guitarrorist@yahoo.com]
Sent: Monday, June 06, 2005 10:20 AM
To: wxpython-users@lists.wxwidgets.org
Subject: [wxPython-users] how to disable textbox generated by wxTextCtrl

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