Print Page | Close Window

Tabcontrol Tabindex

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=11673
Printed Date: 18 June 2024 at 8:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tabcontrol Tabindex
Posted By: markmark
Subject: Tabcontrol Tabindex
Date Posted: 31 July 2008 at 4:58am

Hi

 

The controls on tabs that are NOT selected do not appear on the tab index.

What I would like to do is, if a user is tabbing between controls and the next control is in a hidden tab on the tabcontrol then the gotfocus on the control will set the correct Tab selected index.

 

Does that make sense?

If I manually set the focus of a control

txtText1.setfocus that is on a NON visible tab I get an error.

Only if that control is visible on the tab does it work.

 

If I look at the .visable property I see that a NON visible tab the controls are set to .visible = false, which explains the error.

 

So how do I getting the tab order to display the correct Tab?

 

Thanks for your help.

 
 
MArk
 


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0



Replies:
Posted By: jpbro
Date Posted: 31 July 2008 at 11:12am
Don't set the focus to controls that aren't visible, so:


With Me.ControlName
   If .Visible Then
      .SetFocus
   End If
End With


If I misunderstood, then maybe you have a sample project that is causing the error that I could look at?


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net