Frederick Posted May 5, 2021 Share Posted May 5, 2021 I have three controls that have their TabStop properties set to False at design time. When I set the TabStop properties to True at runtime, I cannot tab from control to control. Is this a bug? Interestingly, if the TabStop properties are True at design time and I set the TabStop properties to False at runtime, the behaviour is correct, in that I cannot tab from control to control. P.S. I have attached the testcase. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1549) tabruntime.mp4 tabruntime.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 5, 2021 Share Posted May 5, 2021 1 hour ago, Frederick said: P.S. I have attached the testcase. Hello, We will check your testcase. Quote Link to comment Share on other sites More sharing options...
Frederick Posted May 5, 2021 Author Share Posted May 5, 2021 Thanks Quote Link to comment Share on other sites More sharing options...
Frederick Posted February 28, 2022 Author Share Posted February 28, 2022 What is the status of this report? I am now using UniGUI 1.90.0.1558 and setting TabStop to False in the OnShow event during runtime still does not result in the control being bypassed when I press ENTER to move from control to control. If I set the control to False at design time, the behaviour of bypassing the control is correct. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 28, 2022 Share Posted February 28, 2022 2 hours ago, Frederick said: setting TabStop to False in the OnShow event during runtime still does not result Hello, Try OnReady event instead. Quote Link to comment Share on other sites More sharing options...
Frederick Posted February 28, 2022 Author Share Posted February 28, 2022 3 hours ago, Sherzod said: Hello, Try OnReady event instead. Ok, thanks. This works. Quote Link to comment Share on other sites More sharing options...
Frederick Posted August 5, 2022 Author Share Posted August 5, 2022 On 2/28/2022 at 6:27 PM, Sherzod said: Hello, Try OnReady event instead. I am using version 1.90.0.1562 and this suggestion that used to work before no longer does. Please confirm this. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 6, 2022 Share Posted August 6, 2022 On 8/5/2022 at 12:09 PM, Frederick said: I am using version 1.90.0.1562 and this suggestion that used to work before no longer does. Please confirm this. Hello, I don't understand what is not working for you. The test case does not give a complete picture of what is not working. Please check again. Quote Link to comment Share on other sites More sharing options...
Frederick Posted August 6, 2022 Author Share Posted August 6, 2022 6 hours ago, Sherzod said: Hello, I don't understand what is not working for you. The test case does not give a complete picture of what is not working. Please check again. I have created a simpler project. All four controls have their TabStop properties disabled at design time. In the OnReady event of the form, I enabled the TabStop properties for all controls. When I try to tab from control to control during runtime, nothing happens. tabruntime.7z Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 6, 2022 Share Posted August 6, 2022 Ok. We will check. Quote Link to comment Share on other sites More sharing options...
Frederick Posted August 6, 2022 Author Share Posted August 6, 2022 Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 6, 2022 Share Posted August 6, 2022 1 hour ago, Frederick said: tabruntime.7z 54.1 kB · 0 downloads Okay. Confirmed. But why do you need such a case. For now, you can set this at designtime, and optionally set it to false/true at runtime. Quote Link to comment Share on other sites More sharing options...
Frederick Posted August 6, 2022 Author Share Posted August 6, 2022 6 hours ago, Sherzod said: Okay. Confirmed. But why do you need such a case. For now, you can set this at designtime, and optionally set it to false/true at runtime. I have 3 users who are not allowed to edit fields and 1 user who is allowed. At design time, I set all fields to ReadOnly:=True and TabStop:=False. When the 1 user who is allowed to edit the fields logs in, I set the fields to ReadOnly:=False and TabStop:=True. As you have tested, setting the TabStop:=True at runtime does not work. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 7, 2022 Share Posted August 7, 2022 6 hours ago, Frederick said: As you have tested, setting the TabStop:=True at runtime does not work. If in desingtime is set to false. So: 12 hours ago, Sherzod said: For now, you can set this at designtime, and optionally set it to false/true at runtime. Set to true. Quote Link to comment Share on other sites More sharing options...
Frederick Posted August 7, 2022 Author Share Posted August 7, 2022 5 hours ago, Sherzod said: Set to true. Where else should I set it to True? The following code does not work:- procedure TfrmMain.UniFormReady(Sender: TObject); begin edt1.TabStop:=True; cbo1.TabStop:=True; edt2.TabStop:=True; edt3.TabStop:=True; edt1.SetFocus; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 7, 2022 Share Posted August 7, 2022 53 minutes ago, Frederick said: Where else should I set it to True? In designtime. Quote Link to comment Share on other sites More sharing options...
Frederick Posted August 7, 2022 Author Share Posted August 7, 2022 Sherzod, I do know that I can set the TabStop to True at designtime. I can even set this property at runtime in VCL and it will work. However, I am looking for a solution in UniGUI on how to set it during runtime and work. If you have a solution now or if it will be fixed in the next build, please let me know. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 7, 2022 Share Posted August 7, 2022 2 hours ago, Frederick said: if it will be fixed in the next build We will check. 2 hours ago, Frederick said: If you have a solution now On 8/6/2022 at 9:08 PM, Sherzod said: For now, you can set this at designtime, and optionally set it to false/true at runtime. Quote Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted August 7, 2022 Share Posted August 7, 2022 2 hours ago, Frederick said: Sherzod, I do know that I can set the TabStop to True at designtime. I can even set this property at runtime in VCL and it will work. However, I am looking for a solution in UniGUI on how to set it during runtime and work. If you have a solution now or if it will be fixed in the next build, please let me know. I think @Sherzodis suggesting to not change the tabstop property at design time (leave it with the default true value) and change it only at designtime. Roberto 1 Quote Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted August 7, 2022 Share Posted August 7, 2022 1 minute ago, Roberto Nicchi said: I think @Sherzodis suggesting to not change the tabstop property at design time (leave it with the default true value) and change it only at designtime. Roberto ... only at runtime Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 7, 2022 Share Posted August 7, 2022 20 minutes ago, Roberto Nicchi said: ... only at runtime Yes. Quote Link to comment Share on other sites More sharing options...
Frederick Posted August 8, 2022 Author Share Posted August 8, 2022 I did more testing and this is weird but it works. 1. Set the TabStop properties for all controls to True at designtime 2. At runtime, I was able to change the TabStop properties to False and back to True at will. Note: It does not have to be from the OnReady event of the form. If the controls' TabStop properties are False at designtime, I cannot change the TabStop properties at runtime. Quote Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted August 9, 2022 Share Posted August 9, 2022 Seems to me that if tabstop is false at designtime the html tabindex attribute is missing in html. I guess this is the problem... Quote Link to comment Share on other sites More sharing options...
Frederick Posted August 9, 2022 Author Share Posted August 9, 2022 Thanks for the informative explanation. I guess technical support should be able to narrow down and fix the problem fairly quickly. 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.