Redocking Tab windows |
Post Reply |
Author | ||
xsensordev
Groupie Joined: 19 August 2021 Location: Canada Status: Offline Points: 24 |
Post Options
Thanks(0)
Posted: 29 August 2022 at 5:44pm |
|
So CXTPTabClientWnd::MDITile can be used to programmatically tile tab clients when grouping is enabled.
Is there a way to programmatically undo this tiling and place all the clients back in the tab bar? This is with ToolkitPro V20.3.0
|
||
xsensordev
Groupie Joined: 19 August 2021 Location: Canada Status: Offline Points: 24 |
Post Options
Thanks(0)
|
|
I was wrong when I thought being an active subscriber would at least get a comment from the developer.
Oh well. Guess not every developer is attentive to their clients as I am. |
||
Fredrik
Senior Member Joined: 22 June 2005 Status: Offline Points: 235 |
Post Options
Thanks(1)
|
|
You have maximize the active frame window and then call ShowWorkspace(TRUE) on your CXTPTabClientWnd member.
They way I have solved it is to implement OnSysCommand for my CMDIChildWnds. If the mdi frames gets maximized, then I show tabs, otherwise the tabs are hidden. You may want to always see the tabs of course.
But you will also need to add code when the last frame window is closed to hide the workspace, and then also to hide the workspace when you cascade, restore and tile windows. I also had to add code to close frame windows with middle mouse button and double click to maxmi |
||
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
|
||
xsensordev
Groupie Joined: 19 August 2021 Location: Canada Status: Offline Points: 24 |
Post Options
Thanks(0)
|
|
Thank you Fredrik, that sets me off in a good direction!
|
||
xsensordev
Groupie Joined: 19 August 2021 Location: Canada Status: Offline Points: 24 |
Post Options
Thanks(0)
|
|
Thanks again Fredrik, your answer basically confirmed that there is no method to undo the tiling. This freed me to make my own. In the case where tearoffs are not used. (ie: CMainFrame is derived from CXTPMDIFrameWnd and _MTIClientWnd.EnableTearOff() is not called: Toggling between MDI tiled and tabbed is as easy as:
In the case where tearoffs are used, (ie: CXTPMDIFrameWndEx), I rolled my own solution with the following toolkit modifications:
|
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |