Home » Developing U++ » UppHub » Docking: ContexMenu behaviour
Docking: ContexMenu behaviour [message #27541] |
Thu, 22 July 2010 13:14 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
hi mrjt,
i noticed, that using Docking in tabbed view, one can close all tabs only, by right klicking some free space (where no tab field), 'Close all others' appears.
here is the general question, if a forwarder to TabBar::ContextMenu should be used in DockTabBar, since user it can break a lot, or do you support closing from TabBar point of view?
in case to look to: (here some proposals, not very thought through
DockTabBar.cpp:51
void DockTabBar::RightDown(Point p, dword keyflags)
{
if (GetHighlight() >= 0)
WhenContext(GetHighlight());
//no forward outside own tabs
// else
// TabBar::RightDown(p, keyflags);
}
DockTabBar.h:16
virtual void ContextMenu(Bar& bar) { /*TabBar::ContextMenu(bar);*/ }
hope it got bi clear
|
|
|
Re: Docking: ContexMenu behaviour [message #27543 is a reply to message #27541] |
Thu, 22 July 2010 16:08 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
The forwarding is now unnecessary (ContextMenu is exposed in TabBar now) but the concept is correct. Tabs can be closed from the tabbar menu without problems.
Well, in theory anyway. In practice the TabBar close handling had changed since the Docking code was written so I've committed the changes necessary to fix it.
Edit: The next thing you're going to say is 'I need to disable closing of tabs via the TabBar' yes?
[Updated on: Thu, 22 July 2010 16:10] Report message to a moderator
|
|
|
|
|
|
|
Goto Forum:
Current Time: Thu May 30 14:09:20 CEST 2024
Total time taken to generate the page: 0.01998 seconds
|