Who can help me with splitter

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hi,
I have a splitter control between tabcontrol and
listview. It works. I want to keep the ratio by which the
splitter divide the screen when I maximize the window.
Sometimes I maximized d the window and then set the
spillter near the bottom of the screen. Then I restored
the windows to its original size, I couldn't find the
splitter unless I maximized the window again. how can I
resolve this problem?
Thank you!
 
Set MinSize and MinExtra to ensure that the splitter doesn't approach the
boundaries of being invisible. I'm not sure from your message, but it
sounds like you have some resize code that maintains ratio'ed distances,
however, when going from a larger area to a smaller area you are losing
resolution and thus your numbers are causing your splitter to appear outside
of the bounds of the smaller screen. MinSize and MinExtra are easy ways to
fix this, but you may have a flaw in your resizing algorithm as well that
might make more sense in your case.
 
Back
Top