|  | 
| Toolbar on View Draw trouble | 
| Post Reply   | 
| Author | |
| jimmy   Senior Member   Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |  Post Options  Thanks(0)  Quote  Reply  Topic: Toolbar on View Draw trouble 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   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 20 January 2009 at 8:09am | 
| 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 |  Post Options  Thanks(0)  Quote  Reply  Posted: 20 January 2009 at 8:35am | 
| 
   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 |  Post Options  Thanks(0)  Quote  Reply  Posted: 20 January 2009 at 9:04am | 
| 
   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 |