![]() |
make toolbar fill a row of dockbar |
Post Reply
|
| Author | |
blueseaing
Groupie
Joined: 14 June 2004 Status: Offline Points: 42 |
Post Options
Thanks(0)
Quote Reply
Topic: make toolbar fill a row of dockbarPosted: 23 January 2005 at 1:15am |
|
I want to implement a CXTPToolbar which can auto fill a row of dockbar , the toolbar contain some controls which can stretch such as CXTPComBox, I realize such code: //the above code can stretch the toolbar if(pControl->IsKindOf(RUNTIME_CLASS(CXTPContr olComboBox)) pCombox->SetWidth(pCombox->GetWidth( )+nAddedWidth); but my problem lies in: when I make a toolbar fill a row of dockbar, the drag action |
|
![]() |
|
blueseaing
Groupie
Joined: 14 June 2004 Status: Offline Points: 42 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 January 2005 at 1:21am |
|
I think the change should include the above: CSize CXTPToolBar::CalcDynamicLayout(int nLength, DWORD nMode); void CXTPDockContext::Move(CPoint pt); BOOL CXTPCommandBars::DockCommandBar(CXTPToolBar* pBar, LPRECT lpRect, CXTPDockBar* pDockBar); |
|
![]() |
|
blueseaing
Groupie
Joined: 14 June 2004 Status: Offline Points: 42 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 January 2005 at 9:00am |
|
no one can help me? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 January 2005 at 5:37am |
|
Please wait next version. It will be new xtpFlagControlStretched flag.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kinook
Groupie
Joined: 13 May 2003 Location: United States Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 March 2005 at 9:34am |
|
How is xtpFlagControlStretched used? I have a combo on a command bar that I want to size automatically to the size of the command bar rather than being fixed in size. I tried this in the WordPad sample in CMainFrame::CreateToolBars()
pFormatBar->GetControls()->FindControl(ID_COMBO_FONT)- >SetFlags(xtpFlagControlStretched); but it had no apparent effect. I can't find any samples using it either, and the docs just say "Indicates the control is stretched in the parent command bar". |
|
![]() |
|
kinook
Groupie
Joined: 13 May 2003 Location: United States Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 March 2005 at 10:02am |
|
Oops, I now see that my IssueTrak issue was responded to (never received an email notification of it). The missing code was
pFormatBar->EnableDocking(x tpFlagAlignAny|xtpFlagFloating|xtpFlagStretched); Unfortunately, it doesn't help me, because I don't want the toolbar to take up the entire row and not allow other toolbars to be docked beside it. |
|
![]() |
|
docman
Newbie
Joined: 07 May 2005 Location: China Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 May 2005 at 11:03am |
|
I have the same problem.anybody resolved?
|
|
![]() |
|
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 |