Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Tabcontrol Tabindex
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tabcontrol Tabindex

 Post Reply Post Reply
Author
Message
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post Topic: Tabcontrol Tabindex
    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
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.