Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
wxSmith development
mandrav:
--- Quote from: byo ---Hope that change to wx 2.6 is permament ;)
--- End quote ---
That's the point of branching :)
The VERSION_1_0 branch will only accept bug-fixes. Feel free to experiment in the main trunk (HEAD).
Yiannis.
byo:
I have problem with one bug after migrating to docking panels.
New Notebook page added to Manager for wxSmith uses wxSplitterWindow, but after startup andafter docking Manager, sash position is set to 0 or sth like that (top window and sash are hidden). I used additional wxPanel with one sizer as background window for page but it didn't work out. The only way to see both panels is to use SetSashGravity and manipulate with size of manager.
Any ideas ?
rickg22:
Try memorizing the splitter position and restore it on docking (i just hope there's an event for that :P ). For startup, use a configmanager variable.
mandrav:
--- Quote from: byo ---I have problem with one bug after migrating to docking panels.
New Notebook page added to Manager for wxSmith uses wxSplitterWindow, but after startup andafter docking Manager, sash position is set to 0 or sth like that (top window and sash are hidden). I used additional wxPanel with one sizer as background window for page but it didn't work out. The only way to see both panels is to use SetSashGravity and manipulate with size of manager.
Any ideas ?
--- End quote ---
That was the exact erroneous behaviour I got when used wxDockit with the project manager which also uses a wxSplitterWindow.
The sash would move to position -22 hiding the open files list and the sash itself.
This turned out to be a bug of wxDockit, which I fixed and documented. When the layout was updated, wxDockit would first launch the wxEVT_LAYOUT_CHANGE and then actually perform the layout. I 've corrected it in the wxDockit sources in our CVS and everything started working fine.
I haven't checked wxSmith's code for a while, but are you using a wxSplitterWindow directly?
You might want to use a wxSplitPanel, created by Rick (in xtra_classes.h). See projectmanager.cpp for how it is used...
[edit]
Also, check out EditorManager::RefreshOpenFilesTree() which is called when the layout changes (it could be called by OnSize). This is what keeps the sash in sync after layout.
[/edit]
Yiannis.
cyberkoa:
I have extended my home leave for extra 2 weeks, still at Malaysia now.
byo , I think you already fix the bugs you mentioned right ? since I want to see the new version of CB , I hv downloaded the latest CVS and compile the latest version . I hv tried CVS dated 26/7/2005 still got problem but 27/7/2005 it seems like ok.
mandrav, I hv downloaded CB rc-1 and try , it works fine , but when I finished compile wxSmith , and try to run , it give me msg "Another CB process is running" , I hv tried to restart my PC , it give the same msg also.
so , I used back the final-beta version .
I am using winXP , wxwidgets-2.6.1
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version