![]() |
Toolbar on View Draw trouble |
Post Reply ![]() |
Author | |
jimmy ![]() Senior Member ![]() Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
![]() ![]() ![]() ![]() ![]() Posted: 20 January 2009 at 4:38am |
Hello,
We have a simple Tool on top of a view. VERIFY(InitCommandBars()); CXTPCommandBars* pCommandBars = GetCommandBars(); pCommandBars->SetPaintManager(new CXTPOffice2003Theme()); CXTPToolBar* pToolBar = pCommandBars->Add(_T("Global Online State Commands"), xtpBarTop); pToolBar->SetDefaultButtonStyle( xtpButtonCaption ); VERIFY(pToolBar->LoadToolBar(IDR_TOOLBAR_ONLINESTATE_GLOBAL)); pToolBar->EnableDocking(xtpFlagAlignTop); pCommandBars->GetCommandBarsOptions()->ShowKeyboardCues(xtpKeyboardCuesShowWindowsDefault); pCommandBars->GetCommandBarsOptions()->bShowExpandButtonAlways = FALSE; CXTPControls *pControls = pToolBar->GetControls(); CXTPControl *pControl = pControls->Add(xtpControlLabel, ID_ONLINESTATE_LABEL, 0, 0 ); if (pControl) pControl->SetCaption("All Safe-CPU(s)"); // pToolBar->OnRecalcLayout(); The toolbar has no Icons, only Caption. The caption strings are in the string resource table. On some computer (not all), some toolbar button does not show the text. there are empty buttons on the toolbar. The click on the empty button work correct. Any idea ? Jimmy |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Maybe you added pToolBar->SetDefaultButtonStyle( xtpButtonCaption ); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jimmy ![]() Senior Member ![]() Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg,
In this function we don't have a LoadCommandBars call. Jimmy |
|
![]() |
|
jimmy ![]() Senior Member ![]() Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
![]() ![]() ![]() ![]() ![]() |
Found the bug.
Some trouble with different resource language. Jimmy |
|
![]() |
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 |