Print Page | Close Window

Resize Event and MDI Tabs

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=1164
Printed Date: 27 September 2024 at 3:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resize Event and MDI Tabs
Posted By: Woody
Subject: Resize Event and MDI Tabs
Date Posted: 10 September 2004 at 8:42am
All I could find on the Resize event was this:

Occurs any time the layout of any command bars component changes.  For example, when the windows is resized, a tab is closed in the tab workspace, or the status bar is hidden.

Can you give an example of how to use this to detect when a tab is closed in the tab workspace, and  get the Tab ID / reference.




Replies:
Posted By: SuperMario
Date Posted: 10 September 2004 at 8:55am
This should be used to reposition and resize the different components of your application.  It is called when a tab is closed because the commandbars, specifically, the tabworkspace needs to be redrawn/resized.

To detect a tab being closed, I would put some code in the execute event when the close button that you added to your right click menu has been clicked.  And you can place some code in your MDIChild's form unload event.



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