Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Docking pane works (znakeeye was drunk)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Docking pane works (znakeeye was drunk)

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Docking pane works (znakeeye was drunk)
    Posted: 29 October 2009 at 5:41pm
pPane->SetMaxTrackSize(CSize(250, 0));
 
Later when I dock this pane, its height becomes 0 pixels - and cannot be resized vertically!
Definitely not good since I have to limit its width!
 
ZERO should mean "unlimited", like it did in previous releases :(
 
 
Not sure what you changed, but it certainly is a disaster bug.
Just tried your PaneSample. "Pane5" suffers from the same problem, right after startup (linking statically)!
Even in floating mode, it's impossible to resize it!
 
 
Impossible to resize Pane 5...
 
 
Blablabla... it works. Period.
Oleg is right! :D
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2009 at 8:37am
Hi,
 
0 was never unlimited for SetMaxTrackSize.
32000 or more was unlimited.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2009 at 12:20pm
Yeah, but if you look at your sample, there is no SetMaxTrackSize call for Pane5.
 
Hence, the height is limited to 0 pixels from start. Right or wrong?
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2009 at 7:58am
Hi,
 
Here what we have in constructor of CXTPDockingPane
 
 m_ptMinTrackSize = CPoint(0, 0);
 m_ptMaxTrackSize = CPoint(32000, 32000);
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2009 at 8:00am
Hi,
 
btw, I can't reproduce problem with our sample :( Are you sure you didn't change it ? Try remve registry settings, maybe you chnaged something and didn't restore.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2009 at 4:28am
Can't reproduce it without doing the following:
pwndPane5->SetMaxTrackSize(CSize(200, 0));
 
But if this is correct behavior, then we can close this issue :)
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2009 at 7:47am
Hi,
 
just don't use "0" - its not unlimited and never was.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 17 November 2009 at 12:46pm
Just tried to reproduce this with a clean registry. After some clicking, I managed to get into the state I have described.
 
Please load attached registry settings and see what's wrong! Using PaneSample 13.2.1.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2009 at 7:32am
Hi,
 
So you sure you removed pwndPane5->SetMaxTrackSize(CSize(200, 0)); line ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2009 at 7:35am
Hi,
 
I see your reg file still have it:
"MaxTrackX"=dword:000000c8
"MaxTrackY"=dword:00000000
 
So Don't set it to 0 - it was never default for Unlimited !!!!
Seriously.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.