How to change split window's size dynamicly?

Ivan.Zhang
2011-01-18
2013-05-28
  • Ivan.Zhang

    Ivan.Zhang - 2011-01-18

    Hi, David,
    From splitter sample, I try to change ListDocker's size like this:
            m_pDockList->SetDockSize(50);
            m_pDockTree->Dock(m_pDockList, dwStyle | DS_DOCKED_RIGHT);

    When the ListDocker is docked already, I execute the above code, strange behaviour will appear when dragging the splitbar.
    If I hide the ListDocker at first( m_pDockList->Hide(); ), it works well.
    Is this a bug?
    Can I change the docker's size without hiding it at first ?

    Thank you.

     
  • David

    David - 2011-01-21

    Hi,

    Currently the docking software doesn't cater for resizing a docked docker (except by dragging the splitter bar of course). The SetDockSize function wasn't intended for this purpose when it was written. It was intended for internal use by CDocker (perhaps it should have been made private).

    Anyway I'll add support for dynamically resizing a docked docker in the next version. I'll post another reply to this forum when the code is written.

    Best regards,
    David

     
  • Ivan.Zhang

    Ivan.Zhang - 2011-01-21

    Hi, David
    Thank you very much, looking forward the new version.

     
  • David

    David - 2011-04-02

    Hi,

    Just a quick note to advise that I've submitted an update which now supports dynamic resizing of Dockers using the SetDockSize function. The latest code can be downloaded with Tortoise SVN.

    Best regards,
    David

     
  • Ivan.Zhang

    Ivan.Zhang - 2011-04-02

    Thank you for the update :)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks