Home » Developing U++ » UppHub » Docking: BUG + FEATURE: Disable Close completely
Re: Docking: BUG + FEATURE: Disable Close completely [message #25608 is a reply to message #25587] |
Wed, 03 March 2010 18:29   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
Hi! I'm glad you're using the code.
The fix for the missing title text is:
if (!s.title_font.IsNull()) {
Ctrl *c = GetLastChild();
while (c && !c->IsShown() && c->GetParent())
c = c->GetPrev();
if (s.handle_vert)
r.top = c ? c->GetRect().bottom - m.top : r.top - m.top;
else
r.right = c ? c->GetRect().left - m.right : r.right - m.right;
w.Clip(r);
WString text = IsNull(dc->GetGroup()) ? dc->GetTitle() : (WString)Format("%s (%s)", dc->GetTitle(), dc->GetGroup());
w.DrawText(p.x, p.y, s.handle_vert ? 900 : 0, text, s.title_font, s.title_ink[focus]);
w.End();
} The clipping rect was being incorrectly calculated when there were no buttons.
Thanks for your other bug reports:
Animate config - This check box was added before the feature was split and I obviously forgot to change it. I'll add a second checkbox to the config form to independently control them.
Config dialog tree - I'll have to look at this, it used to work but as Koldo has said there seem to have been some changes to TreeCtrl.
Closing buttons and stuff - This is pretty complicated, the correct solution involves removng the X button from floating windows and all of the Close, Close Group and Close All options from the menus.
I haven't looked at the code for a while and as you can see it's pretty complicated , but I'll try and get all the fixes incorporated by the end of the week.
There is also an outstanding bug with certain window manager settings on Linux, but I have yet to find a solution to that one.
[Updated on: Wed, 03 March 2010 18:29] 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: Mon Jul 07 10:46:54 CEST 2025
Total time taken to generate the page: 0.03923 seconds
|