|
From: Armel on 20 Apr 2008 10:56 Hello, i'd like to set the position of the splitter at the middle of the wxSplitterWindow, and have it constantly there unless the user moves the sash "by hand". current code uses gravity only to 'grow' the sides, and as such if the user enlarges by odd amounts (for example on XP, if content is displayed while dragging, most increases in size are only +1), 1*0.5 for left side = 0 (integer...) (0.5 gravity quite logical for the middle) ends up adding nothing and the sash gets out of sync with the middle of the wxSplitterWindow. I'd like to improve that, so that the gravity could be really respected. Any idea? I think that there is something like a 'theoretical position' to maintain such that any move will actually respect what the interface/doc tells wxSplitterWindow does. I saw in the Wiki the wxProportionalSplitterWindow, which could actually do the wanted job by the way. should the main distrib have this proportional splitter window, or should gravity work? Best regards Armel --
|
Pages: 1 Prev: How do you use __WXFUNCTION__? Next: wxLocale "cannot set locale" |