Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Resize Event and MDI Tabs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Resize Event and MDI Tabs

 Post Reply Post Reply
Author
Message
Woody View Drop Down
Newbie
Newbie


Joined: 07 July 2004
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote Woody Quote  Post ReplyReply Direct Link To This Post Topic: Resize Event and MDI Tabs
    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.

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.140 seconds.