Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Default Control Bar Position Collapse All
Subject Author Date
Sung Park Jul 23, 2004 - 6:04 PM

I’m trying to set the default position for two ExtControlBars docked to the right side. The problem is that I only can have one next to another, but I can’t set one at upper-right and the other at lower-right. I was able to  make that position at  runtime, but I couldn’t find a way to set it up as a default for the first time launching. The following code is what I have now.


RecalcLayout();


m_wndShortcutBar.SetInitDesiredSizeHorizontal( CSize( 700,200));


m_wndFTaskBar.SetInitDesiredSizeHorizontal( CSize( 700,200));


m_wndShortcutBar.SetInitDesiredSizeVertical( CSize( 300,200));


m_wndFTaskBar.SetInitDesiredSizeVertical( CSize( 300,200));


m_wndShortcutBar.DockControlBar( AFX_IDW_DOCKBAR_RIGHT, 1, this, false);


m_wndFTaskBar.DockControlBar( AFX_IDW_DOCKBAR_RIGHT, 2, this, false);


RecalcLayout();


 

Technical Support Jul 25, 2004 - 12:26 PM

It seems you just need to use AFX_IDW_DOCKBAR_BOTTOM instead of AFX_IDW_DOCKBAR_RIGHT when you call m_wndFTaskBar.DockControlBar.

Sung Park Jul 26, 2004 - 5:34 PM

Thanks for the quick response on this. To use AFX_IDW_DOCKBAR_BOTTOM instead of AFX_IDW_DOCKBAR_RIGHT, the problem is one is docked on the right side and the other is docked on the bottom. However what I want is both toolbar docked in the right side and one is upper right corner and the other one is bottom right corner.


I’ll appricate for your answer.


 

Technical Support Jul 27, 2004 - 5:29 AM

If you want to dock two resizable control bars into one column at the right side of the frame window, then your source code should look like this:

    m_wndResizableBar_First.DockControlBar(
        AFX_IDW_DOCKBAR_LEFT,
        1,
        this,
        false
        );
    m_wndResizableBar_First.DockControlBar(
        &m_wndResizableBar_Second,
        true,
        true,
        this,
        true
        );
The m_wndResizableBar_First control bar is docked with the right side. Then it docks the m_wndResizableBar_Second control bar into the same column.