CommandBar text and expanded button |
Post Reply |
Author | |
kanlaw
Groupie Joined: 03 August 2004 Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 31 August 2004 at 11:20pm |
1. I make a commandbar with style of text under button, the text will disappear when button is in the expanded bar. Could I keep the text at this situation. (pic for your reference) 2. The expanded bar includes all the buttons that can not be displayed at the same line command bars, Could I limit just include itself button. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
1 and 2. You must create custome commandbars class: class CCommandBars : public CXTPCommandBars virtual void GetHiddenControls (CXTPToolBar* pToolBar, CXTPCommandBar* pExpandBar); IMPLEMENT_DYNCREATE(CCommandBars, CXTPCommandBars) void CCommandBars::GetHiddenControls(CXTPToolBar* pToolBar, CXTPCommandBar* pExpandBar) int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) ... // Initialize the command bars
ps. be sure CXTPCommandBars::GetHiddenControls is virtual (see XTPCommandBars.h) it was changed only in 9.10. If it is not so, add "virtual" keyword manually.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
kanlaw
Groupie Joined: 03 August 2004 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Thanks
|
|
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 |