Article # 43, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Uncommon key sequences to watch for in text objects.
Q. I want to have a read-only text object that lets the user select text. The field is also only single line and the text is longer than the field is wide, so scrolling is needed. What I've done is created a GenText object that is not set read-only but instead uses a VisTextCustomFilterData array to block all characters. This works fine, but certain keypresses still make it through: 1) Control-T seems to redraw the whole screen and focus is moved to top left. 2) Control-x, control-backspace and control-delete clear the text in currently selected text item. 3) Control-shift-m brings up a dialog "No menu available". A. You're going to have to subclass MSG_META_KBD_CHAR for the text class and capture those key sequences.