Print Page | Close Window

TabControl - Causes validation?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11197
Printed Date: 16 November 2024 at 9:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControl - Causes validation?
Posted By: ijwelch
Subject: TabControl - Causes validation?
Date Posted: 25 June 2008 at 12:57am
Please see attached sample.

uploads/20080625_005603_Test_Tabs.zip - 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?



Replies:
Posted By: Oleg
Date 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


Posted By: ijwelch
Date 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.



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