The ampersand is a mnemonic on windows. When our lexing control plugin has the
keyboard focus, typing into it is a no brainer, the keydown behavior callback
is not fired, but only when the arrow keys are being used. We handle the this
appropriately, but we cannot find a mechanism to capture the ampersand
mnemonic. We tried to subclass the REALcontrol, or tried to subclass the parent
of it (the REALwindow), we tried to subclass the Lexing control itself, but in
all cases when for example a pushbutton's caption is &d the lexing control's
LostFocus callback is fired.
Also, while subclasssing the REALcontrol, parent or the lexing's underlying
WndProc, we never get the "WM_GETDLGCODE"; this would be the way to tell that
we want either one of the following
// DLGC_WANTARROWS 0x0001 Control wants arrow keys
// DLGC_WANTTAB 0x0002 Control wants tab keys
// DLGC_WANTALLKEYS 0x0004
// DLGC_WANTCHARS 0x0080
So, what is the appropriate way to prevent REALbasic to respond to the mnemonic
of a pushbutton's caption?? Or how should a REALcontrol be set, we use:
REALcontrolIsHIViewCompatible
| REALcontrolOwnsCursor
| REALcontrolRequiresComposite
| REALdontTryHIViewize
| REALcontrolAcceptFocus
- Alfred Van Hoek
[email protected]
http://web.mac.com/vanhoek
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>