I have a NSSearchFieldMBS control which I have to set in focus when the user
press a key. So my window will handle the KeyDown event, set the focus to the
NSSearchField and set its text to the key typed (which was handled by the
Window.Keydown event).
The code:
MySearchField.setFocus
NSTextFieldCellMBS(Searching(MySearchField.View).cell).StringValue = key
The problem is setting the text, it also select it and the user can't continue
to write, but need to retype the first key to wipe the selection or click with
the mouse to unselect the text.
Is there a method to unselect the text and put the insertion point to the end
of the field?
Thanks,
Massimo Valle
SACO Software and Consulting GmbH, Mühlgasse 5, D-97840 Hafenlohr
Tel.: ++49 9391 90890-0, Fax: ++49 9391 90890-99, E-Mail: [email protected]
Amtsgericht Würzburg HRB 5410, Geschäftsführer: Peter Schubert,
Dipl.-Wirt.ing.(FH) Thorsten Beck
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info