Print Page | Close Window

Click event on tabworkspace

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=2402
Printed Date: 01 November 2024 at 12:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Click event on tabworkspace
Posted By: Ajornet
Subject: Click event on tabworkspace
Date Posted: 19 June 2005 at 3:37pm
Hello,
How can we trap click events on TabWorkspace ? I see the help for the right-click but not for the click ? How can we do if we want change the GUI when the tab changes.

And how can we delete the little button at the right of a toolbar used for "Add or remove buttons" ? I don't need them.

Thank you
Daniel


-------------
Daniel



Replies:
Posted By: SuperMario
Date Posted: 19 June 2005 at 9:39pm
Set ShowExpandButtonAlways to False to hide button.
Use activate event of mdi child to determine when a tab is clicked.


Posted By: Ajornet
Date Posted: 20 June 2005 at 1:03am
Hello,

thanks for  'ShowExpandButtonAlways'.

The Activated Event is not useable on TabWorkSpace that are not used with MDI like here http://forum.codejock.com/forum_posts.asp?TID=2338 &PN=1, so how can I do in this case?

Daniel


-------------
Daniel


Posted By: SuperMario
Date Posted: 20 June 2005 at 4:17pm
How about using the SelectedChanged event to detect when a different tab is clicked?


Posted By: Ajornet
Date Posted: 21 June 2005 at 4:20am
Hello,

Originally posted by SuperMario SuperMario wrote:

How about using the SelectedChanged event to detect when a different tab is clicked?


No, I can't intercept this event. I've put  a MsgBox(e.item) but get nothing.

I've coded this TabWorkSpace as the other thread.

Daniel


-------------
Daniel


Posted By: Ajornet
Date Posted: 21 June 2005 at 4:46pm
Hello,
what about this lack ?

It seems the event is not fired, no ?

If it is, where i'm wrong ?

Daniel


-------------
Daniel


Posted By: Ajornet
Date Posted: 22 June 2005 at 1:39am
Hello,

Yes I was wrong, the event is well fired, but e.item is a TabControlItem not an Integer.

Daniel



-------------
Daniel



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