TabControl - Causes validation? |
Post Reply |
Author | |
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
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? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |