Public Member Functions |
|
__init__ () | |
WantsEvent () | |
32 - 127, are the ascii codes for numbers,
letters standard punctuation, etc. |
|
SetEditable () | |
Override this method so we can change
background colour when field is read-only. |
|
OnContextMenu () | |
When the field is not editable then this
method should be attached to the EVT_CONTEXT_MENU event. |
TextCtrl.TextCtrl.__init__ | ( | ) |
TextCtrl.TextCtrl.WantsEvent | ( | ) |
32 - 127, are the ascii codes for numbers, letters standard punctuation, etc.
TextCtrl.TextCtrl.SetEditable | ( | ) |
Override this method so we can change background colour when field is read-only.
TextCtrl.TextCtrl.OnContextMenu | ( | ) |
When the field is not editable then this method should be attached to the EVT_CONTEXT_MENU event.
This will prevent the context menu from being displayed. The reason we don't want the context menu to be shown is there's a bug in the internal wxWidget code that displays the paste menu item enabled when it should be disabled. When the field is not editable we are preventing the entire menu from being displayed.