CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Q: CSizingBar positioning

    I'm using CSizingBar to get some cool docking windows,
    however I have a small problem positioning my control
    bars as I want them, take a look at this screenshot of
    my jeMediaBrowser application:
    http://www.omtanken.se/valheru/jmb.html

    You see the three topmost control bars? To get them like
    that I have to manually drag them to those positions,
    otherwise they are just placed below one each other.

    How can I programmatically put one control next
    to another?
    Perhaps there is a way I don't know about?

    I'd need something like:
    a_bar->DockToLeftOf(another_bar) and
    a_bar->DockToRightOf(another_bar) etc?




  2. #2
    Join Date
    May 1999
    Posts
    28

    Re: Q: CSizingBar positioning

    Check out the article for Docking Toolbars Side-by-side at:
    http://www.codeguru.com/toolbar/demo_toolbar_d.shtml
    With a little fiddling, this code will do what you want; although, I haven't yet figured out how to make the windows the size I want. If you figure that out, let me know, please!!

    Good luck!

    Chris R. Wheeler, MCP
    Pensacola Christian College
    Desktop Programmer
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured