Print Page | Close Window

Restrict Toolbar docking orientation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=24411
Printed Date: 10 May 2024 at 3:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Restrict Toolbar docking orientation
Posted By: Duane
Subject: Restrict Toolbar docking orientation
Date Posted: 28 July 2023 at 9:54am
I have a CXTPToolbar from a CommandBar that has a couple of combo boxes.  When the user drags them to dock vertically the combo boxes are not shown.  It would be acceptable to allow only horizontal orientation when docking.  Is this possible?



Replies:
Posted By: cpede
Date Posted: 31 July 2023 at 9:40am
//-----------------------------------------------------------------------
// Summary:
//     Call this method to set docking flags.
// Parameters:
//     dwFlags - Flags for docking. Can be any of the values listed in the Remarks section.
// Remarks:
//     dwFlags parameter can be one or more of the following:
//     * <b>xtpFlagAlignTop</b>: Allows docking at the top of the client area.
//     * <b>xtpFlagAlignBottom</b>: Allows docking at the bottom of the client area.
//     * <b>xtpFlagAlignLeft</b>: Allows docking on the left side of the client area.
//     * <b>xtpFlagAlignRight</b>: Allows docking on the right side of the client area.
//     * <b>xtpFlagFloating</b>: Allows floating.
//     * <b>xtpFlagHideWrap</b>: Allows to hide wrapped controls.
//     * <b>xtpFlagStretched</b>: Indicates the bar is stretched.
//-----------------------------------------------------------------------
void EnableDocking(DWORD dwFlags = xtpFlagAlignAny | xtpFlagFloating | xtpFlagHideWrap);



-------------
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



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