![]() |
Toolbar right-alignment problem |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() 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/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
try xtpControlStretch flag for toolbar and xtpFlagControlStretched for label.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |