Lena Posted April 27, 2015 Posted April 27, 2015 Hi. On Form: UniEdit1 TabOrder=1 UniEdit2 TabOrder=2 //OK focus UniEdit3 TabOrder=3 //OK focus UniBitBtn TabOrder=4 //I can not set the focus by pressing TAB I show this Form ShowModal() In event UniFormShow code UniEdit1->SetFocus(); Then I press key TAB 3 times. Button does not want to receive focus. How correctly? Thanks. Quote
Administrators Farshad Mohajeri Posted April 27, 2015 Administrators Posted April 27, 2015 While tabbing only form controls (such as edit, combo and etc) receive focus. Quote
rullomare Posted April 28, 2015 Posted April 28, 2015 Hi Lena, I had the same problem. Two solutions for your case: 1) add to UniEdit3 ClientEvents.ExtEvents.specialkey: if (! (e.shiftKey) && (e.getKey () == 9)) { e.stopEvent (); MainForm.UniBitBtn1.focus (); } 2) Create a new component Tuniedit with a new property onBlurControl. SEE EXAMPLE. NewEdit.zip Regards Quote
molla2005b Posted December 19, 2015 Posted December 19, 2015 Hi it is not work for me. I have use Tab-able Jquery now. https://github.com/marklagendijk/jQuery.tabbable which does just this. It uses the ':tabbable' selector of jQuery UI to find the next 'tabbable' element and selects it. Example usage: // Simulate tab key when element is clicked $('.myElement').bind('click', function(event){$.tabNext();return false;}); Regards Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.