Print Page | Close Window

Multiple Toolbars on Top row by default

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3615
Printed Date: 29 August 2025 at 5:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiple Toolbars on Top row by default
Posted By: Warren
Subject: Multiple Toolbars on Top row by default
Date Posted: 07 February 2006 at 10:37am

I have 4 fairly short toolbars (just plain-vanilla CXTPToolbar toolbars). There is MORE than enough room to fit them all across one row on the screen (I separate them into separate toolbars, for logical/layout reasons) .

By default, when the application initially starts up, the toolbars stack vertically, and the arrangement I get is:
1
2
3
4
(with tons of space to the right of all of the toolbars)

The arrangement I want is:
1 2 3 4

The user can drag the toolbars into place, but it gives an ugly first impression. How do I do this programmatically?

 

 




Replies:
Posted By: SuperMario
Date Posted: 07 February 2006 at 11:28am
    //---------------------------------------------------------- -------------
    // Summary:
    //     This member function will re-dock a toolbar specified by 'pBarToDock'
    //     to the right of a newly docked toolbar specified by 'pBarOnLeft'.
    // Parameters:
    //     pBarToDock - A CXTPToolBar pointer to the toolbar to be docked.
    //     pBarOnLeft - A CXTPToolBar pointer to the already docked toolbar.
     //---------------------------------------------------------- -------------
    void DockRightOf(CXTPToolBar* pBarToDock, CXTPToolBar* pBarOnLeft)


Example:
DockRightOf(pFormatBar, pStandardBar);



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net