Lena Posted April 27, 2015 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 27, 2015 Administrators Share Posted April 27, 2015 While tabbing only form controls (such as edit, combo and etc) receive focus. Quote Link to comment Share on other sites More sharing options...
Lena Posted April 27, 2015 Author Share Posted April 27, 2015 ОК, thank you! Quote Link to comment Share on other sites More sharing options...
rullomare Posted April 28, 2015 Share 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 Link to comment Share on other sites More sharing options...
Lena Posted April 28, 2015 Author Share Posted April 28, 2015 Thank you very much! I will try. Quote Link to comment Share on other sites More sharing options...
molla2005b Posted December 19, 2015 Share 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 Link to comment Share on other sites More sharing options...
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.