Print Page | Close Window

Change caption on TabWorkspace

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4375
Printed Date: 21 June 2025 at 7:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Change caption on TabWorkspace
Posted By: mxcolin
Subject: Change caption on TabWorkspace
Date Posted: 08 June 2006 at 9:41am

I want to change the caption on the TabWorkspaceItem when I handle the NewItem Event. However I have potentially different form types that are loaded. There is only however the handle property that is passed to the NewItem event in the TabControlItem that refers to the actual form that is being shown. So I have no way of telling what type of form is actually being shown to get the correct caption.

I would use the caption property but if I set it after the form has been shown then the blue XP caption bar appears in the workspace which obviously isn't right.

Any ideas how I can get the type of form being shown or stop the caption bar from appearing.

Colin




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