Print Page | Close Window

Right-aligned menu item

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=24474
Printed Date: 21 November 2024 at 8:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Right-aligned menu item
Posted By: Mirek
Subject: Right-aligned menu item
Date Posted: 06 May 2024 at 4:50am
Is there a simple way to have one menu item on the right side of the MenuBar? 
See example below, where "Logout" is actually a popup menu. Thank you.
+-------------------------------------------------------------------+
| File Edit View Help                                        Logout |
+-------------------------------------------------------------------+




Replies:
Posted By: Mirek
Date Posted: 07 May 2024 at 12:15pm
I managed to solve it, here is the solution:
CXTPControl* pLoginSubmenu = ... (get pointer to the "Login" CXTPControl)
pLoginSubmenu->SetFlags(pLoginSubmenu->GetFlags() | xtpFlagRightAlign);



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