Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Was the width of top view saved in CC configure file?
MortenMacFly:
--- Quote from: Loaden on January 18, 2010, 08:21:04 am ---I open "default.conf", and can not find a key named "splitterWin".
--- End quote ---
You have to look for "splitter_pos" in the config file. splitterWin is the ID of the control in the XRC file.
ollydbg:
Find a discussion about setting sash bar: Nabble - wxPython-users - When to SetSashPosition of splitter ?
ollydbg:
Just a reminder, I get the wrong behavior in both "float window of Symbols browser" or "docked inside the management pane". Windows XP.
ollydbg:
In windows, I have debug these code in the constructor of ClassBrowser class:
--- Code: --- int pos = cfg->ReadInt(_T("/splitter_pos"), 250);
XRCCTRL(*this, "splitterWin", wxSplitterWindow)->SetMinSize(wxSize(-1, 200));
wxSize minSize;
minSize = XRCCTRL(*this, "splitterWin", wxSplitterWindow)->GetMinSize();
pos = XRCCTRL(*this, "splitterWin", wxSplitterWindow)->GetSashPosition();
XRCCTRL(*this, "splitterWin", wxSplitterWindow)->SetSashPosition(450, false);
pos = XRCCTRL(*this, "splitterWin", wxSplitterWindow)->GetSashPosition();
--- End code ---
it is quite strange:
I try to write the "450", but the next statement, I GetSashPosition, it is "pos=96".....
Jenna:
--- Quote from: ollydbg on February 26, 2010, 06:27:05 am ---In windows, I have debug these code in the constructor of ClassBrowser class:
--- Code: --- int pos = cfg->ReadInt(_T("/splitter_pos"), 250);
XRCCTRL(*this, "splitterWin", wxSplitterWindow)->SetMinSize(wxSize(-1, 200));
wxSize minSize;
minSize = XRCCTRL(*this, "splitterWin", wxSplitterWindow)->GetMinSize();
pos = XRCCTRL(*this, "splitterWin", wxSplitterWindow)->GetSashPosition();
XRCCTRL(*this, "splitterWin", wxSplitterWindow)->SetSashPosition(450, false);
pos = XRCCTRL(*this, "splitterWin", wxSplitterWindow)->GetSashPosition();
--- End code ---
it is quite strange:
I try to write the "450", but the next statement, I GetSashPosition, it is "pos=96".....
--- End quote ---
As I posted before:
--- Quote from: jens on January 18, 2010, 07:24:51 am ---The cause for the issue is, that wxWidgets checks if the requested sash position fits inside the windows actual or min-size.
Normally the min-size of the splitter window is the default min size (-1,-1) and the actual size is very small (If I remeber correctly it'S 20 or something like this).
That only happens for the symbols-browser if it is docked inside the management pane, not if it is free-floating.
For me it was enough to set min-height to 200, even if the requested sash-position is greater than 200.
If the min-height is to large, the sash might get hidden, if the management pane is resized.
--- End quote ---
As we see that does not work on windows.
I can debug this issue on windows, if I find the time.
Maybe it's possible to work around this issue.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version