wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
5.77k stars 1.7k forks source link

Right-aligned field not grayed out when disabled #20229

Closed wxtrac closed 2 years ago

wxtrac commented 21 years ago

Issue migrated from trac ticket # 864

component: wxPython | priority: normal

2003-03-16 16:58:16: dmilenko created the issue


For a righttextfield widget in PythonCard, when I do self.components.myrighttextfield.enabled = 0, the widget is disabled but it isn't grayed out. To the user, it appears to still be enabled. This seems to be just a minor visual problem. I'm marking this as Trivial but an eventual fix would still be appreciated.

ka's diagnosis: Good catch. The problem is the underlying wxRightTextCtrl in wxPython\lib\rightalign.py. The OnPaint handler is what does the actual drawing when the user isn't editing. In order for the control to look right while disabled, the OnPaint method will have to be updated.

wxtrac commented 20 years ago

2003-06-11 00:03:25: @RobinD42 commented


Done for 2.4.1