|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
pascal bosquet
|
Mar 8, 2007 - 5:29 AM
|
hi there,
i’m still investigating with this controls, i need to do a POS program. As the employee can scan with a barcode reader or type directly in (they won’t use mouse much in this program module), i’m force to have a textbox which always got the focus. Before for doing this, i set the tabstop to false for every controls except my textbox. I tried the same with ribbon but no luck, any idea how to do this ?
regards
pascal
|
|
Technical Support
|
Mar 9, 2007 - 7:46 AM
|
If you place our text box on a form on into any other container but the ribbon and set tab stops like you described, you should get what you expect. In the case of ribbon, the text box must lost focus when the user presses Enter or Escape so the user can return to the main application workspace. Because of that it would not probably be a good idea to put such a special always-focused text box into the ribbon. Please let us know your point of view.
|
|
pascal bosquet
|
Mar 9, 2007 - 8:50 AM
|
i’d have prefered to put the textbox on the ribbon to spare some horizontal space, but it seems not possible after your explaination :<
the problem is the Enter or Escape key, i don’t see why there’s no way to override this behavior (this part of the program is keyboard driven only), i’ve specialised the textbox believing that i can override the processcmdkey, but it seems not even to be called anymore :s what do you think ?
thanks in advance
pascal
public class myTextbox:Elegant.Ui.TextBox {
protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData) { if(keyData==System.Windows.Forms.Keys.Return) return true; return base.ProcessCmdKey(ref msg, keyData); } }
|
|
Technical Support
|
Mar 9, 2007 - 9:52 AM
|
There is no problem with adding this feature but we can only add it in the next version (v.1.2).
|
|
pascal bosquet
|
Mar 9, 2007 - 12:52 PM
|
Great !!! that’d be awesome :)) any idea when the next version will be available ?
|
|
Technical Support
|
Mar 10, 2007 - 5:36 AM
|
v.1.2 is scheduled for release at the beginning of April.
|
|