Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - TabControl - Causes validation?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabControl - Causes validation?

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


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Topic: TabControl - Causes validation?
    Posted: 25 June 2008 at 12:57am
Please see attached sample.

uploads/20080625_005603_Test_Tabs.zip

I would expect tab control to not allow user to switch to another tab when an invalid port is entered.

I imagine I can handle this in BeforeItemClick event in this case (it's a pain though - especially when multiple controls to check).

Is this a bug and can it be fixed?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2008 at 4:14am
Hi,
 
Yes, you have catch BeforeItemClick
 
Private Sub TabControl1_BeforeItemClick(ByVal Item As XtremeSuiteControls.ITabControlItem, Cancel As Variant)
Cancel = Not txtPort.IsValid
End Sub
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2008 at 4:44am
Yeah, I did that so my immediate problem is resolved.

I was just really bringing the issue to your attention so you can get it fixed if you agree with me that it's wrong behaviour.
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.172 seconds.