![]() |
ALT customization |
Post Reply ![]() |
Author | |
gmail ![]() Groupie ![]() Joined: 24 February 2008 Status: Offline Points: 45 |
![]() ![]() ![]() ![]() ![]() Posted: 18 December 2008 at 4:38am |
Although I've looked at all of your samples it seems that my ALT key dragging customization doesn't work. Below is code snippet and I can't seem to find what am I doing wrong. Please help.
CXTPCommandBar* pMenuBar = pCommandBars->SetMenu(_T("Main Menu"), IDR_MAINFRAME); LOGFONT font={24,0,0,0,FW_NORMAL,0,0,0,EASTEUROPE_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,DEFAULT_PITCH,_T("font")}; pMenuBar->GetPaintManager()->SetCommandBarsFontIndirect(&font,0); pMenuBar->SetShowGripper(0);XTPImageManager()->SetIcons(images,ToolId,sizeof(ToolId)/sizeof(UINT),CSize(48,48),xtpImageNormal); CXTPToolBar* pVr=(CXTPToolBar*)pCommandBars->Add(_T("name"),xtpBarTop); pVr->GetControls()->Add(xtpControlButton, ID_PRO)->SetStyle(xtpButtonIconAndCaption); pVr->GetControls()->GetAt(0)->SetCaption(_T("")); pVr->GetControls()->GetAt(0)->SetWidth(140); pVr->GetControls()->GetAt(0)->SetFlags(xtpFlagManualUpdate); pVr->ShowExpandButton(FALSE); pVr->SetShowGripper(0); pVr->EnableDocking(0); CXTPCommandBarsOptions* pOptions=pCommandBars->GetCommandBarsOptions(); pOptions->szIcons=CSize(48, 48); pOptions->szPopupIcons=CSize(48, 48); pOptions->szLargeIcons=CSize(96, 96); pOptions->bLargeIcons=TRUE; pOptions->bAltDragCustomization=1; |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
In Message Map add ON_COMMAND(XTP_ID_CUSTOMIZE, OnCustomize)
and some OnCustomize method.
|
|
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 |