Print Page | Close Window

Toolbar right-alignment problem

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=14653
Printed Date: 22 June 2024 at 9:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar right-alignment problem
Posted By: znakeeye
Subject: Toolbar right-alignment problem
Date Posted: 30 June 2009 at 4:41am
XTP 13.0.
 
I have two toolbars, and I want the second one to be right-aligned. This is how I do it:
 
if (m_pBar1->GetControls()->GetCount() == 0)
    m_pBar1->GetControls()->Add(xtpControlLabel, 0); // Dummy!
 
m_pBar1->GetControls()->GetAt(m_pBar1->GetControls()->GetCount() - 1)->SetWidth(1886);
DockRightOf(m_pBar2, m_pBar1);
 
My screen resolution is 1920x1440. If I increase 1886 to 1887, my right-most button disappears:
 
1886:
 
1887+:
 
 
I have no problem calculating this value from SM_CXSCREEN, but I sense you have a sizing bug here. It should be possible to put the toolbar to the right using a more 'general' value, such as 10000.


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: Oleg
Date Posted: 01 July 2009 at 8:12am
Hi,
try xtpControlStretch flag for toolbar and xtpFlagControlStretched for label.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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