MDI Tabs - Ensure Visible |
Post Reply |
Author | |||
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
Posted: 09 December 2003 at 9:09am |
||
When using the MDI Tabs with the CommandBars, is there a way to ensure that a particular tab is visible? For example, imagine you have 30 windows open and only 5 can be displayed. If the user switches to that window using the Window List in the menu, I would like to ensure that the MDI Tab for that window is visible in the tab strip. Also, there is a cosmetic bug when you close child windows. If you have a lot of windows opened, you can scroll the MDI Tabs to the right to see more tabs. If you scroll all the way to the right and then start closing child windows, the scrolled position of the MDI Tabstrip doesn't change and eventually there are no viewable MDI tabs until you scroll back to the left. As child windows are closed, the scrolling tabstrip should adjust to be no further than the right-most visible MDI Tab. Finally, the 'ShowTabWorkspace' method returns a reference to a 'TabWorkspace' object. This object has only one memeber, 'Flags'. The ActiveX documentation does not document what the available flags are. Could you please share this information? Thank you for your feedback. |
|||
tomhermolle
Newbie Joined: 22 October 2003 Location: United Kingdom Status: Offline Points: 9 |
Post Options
Thanks(0)
|
||
Hear hear! More information on the TabWorkspace object would be much appreciated, as would a way of being able to either switch off, or dynamically set, the colour of the tabs.
|
|||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
||
Please wait 8.62 release. It will be a lot of enhancements of TabWorkspace. |
|||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|||
vladsch
Newbie Joined: 04 February 2004 Location: Canada Status: Offline Points: 30 |
Post Options
Thanks(0)
|
||
Hi Boyd: I don't know if you are still looking for this functionality but I just implemented it in a copy of CXTPTabWorkspace for myself. Mind you my version of Tabworkspace is changed a lot because I need a lot of non-standard functionality. I only included the items needed to make the tabs visible. Here is the long version: Add a member function to CXTPTabWorkspace:
In void CXTPTabWorkspace::OnLButtonDown(UINT nFlags, CPoint point) right after sending WM_CLOSE to the MDI Child add the code after comment // insert the code below:
Also insert the call to MakeTabVisible in the following, I am including surrounding lines to make it ieasier to see the context. Just the call to MakeTabVisible needs to be inserted
Partially visible tab is scrolled into view when you release the left mouse button after a click. Also partially visible (or invisible) tabs will scroll into view after close button is pressed.
|
|||
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
|
||
Hi vladsch, Thank you for the detailed information about your implementation. Unfortunately, I'm using the ActiveX version and don't have access to the source code. Looks like I'll have to wait for 8.62 release. Thanks anyway! |
|||
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 |