Home » Developing U++ » UppHub » Docking: BUG + FEATURE: Disable Close completely
Re: Docking: BUG + FEATURE: Disable Close completely [message #25628 is a reply to message #25615] |
Thu, 04 March 2010 15:37   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
Ah, good find.
To fix the title not updating you need to change DockableCtrl.h:
DockableCtrl& Title(const char *_title) { title = _title; if (GetParent()) GetParent()->RefreshFrame(); return *this; }
DockableCtrl& Title(const WString& _title) { title = _title; if (GetParent()) GetParent()->RefreshFrame(); return *this; }
And this change in DockCont.h makes it keep the new title when it's detached/floated:
void StateFloating(DockWindow& dock) { State(dock, STATE_FLOATING); Title(GetTitle()); When floating you still won't able to dynamically change the window title though. There just isn't any obvious way for the DockCont window to be notified. I'll think about it though.
The issue with just blocking the Close action as you have is that surely the option is still visible in all the menus? It's just that when the user slects it nothing happens?
It should be possible to remove the close box in Upp now, the option seems to have appearred in the code as NoCloseBox. This change in DockCont.cpp makes it disappear:
void DockCont::WindowButtons(bool menu, bool hide, bool _close)
{
AddRemoveButton(windowpos, menu);
AddRemoveButton(autohide, hide);
AddRemoveButton(close, _close);
NoCloseBox(!_close);
SyncButtons();
}
No idea whether this works on Linux yet. I'll put these changes into the SVN when I've had time to integrate everything.
[Updated on: Thu, 04 March 2010 15:38] Report message to a moderator
|
|
|
 |
|
Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Fri, 26 February 2010 14:49
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Fri, 26 February 2010 15:17
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Tue, 02 March 2010 14:27
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Tue, 02 March 2010 14:42
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Tue, 02 March 2010 15:04
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: mrjt on Wed, 03 March 2010 18:29
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Wed, 03 March 2010 22:16
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: mrjt on Thu, 04 March 2010 15:37
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Thu, 04 March 2010 20:02
|
 |
|
another thing
By: kohait00 on Fri, 05 March 2010 09:34
|
 |
|
Re: another thing
By: mrjt on Tue, 09 March 2010 11:42
|
 |
|
Re: another thing
By: kohait00 on Fri, 09 April 2010 09:47
|
 |
|
Re: another thing
By: kohait00 on Fri, 09 April 2010 15:00
|
 |
|
Re: another thing
|
 |
|
Re: another thing
By: mrjt on Wed, 05 May 2010 16:01
|
 |
|
Re: another thing
|
 |
|
Title() Bug
|
 |
|
Re: Title() Bug
By: mrjt on Mon, 17 May 2010 13:35
|
 |
|
Re: Title() Bug
|
 |
|
Re: Title() Bug
|
 |
|
Re: Title() Bug
By: mrjt on Tue, 18 May 2010 12:50
|
Goto Forum:
Current Time: Thu Jul 03 03:21:58 CEST 2025
Total time taken to generate the page: 0.03457 seconds
|