![]() |
resizing frame bug |
Post Reply
|
| Author | |
adrien
Senior Member
Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
Quote Reply
Topic: resizing frame bugPosted: 13 March 2008 at 6:16am |
|
Hi
Don't know if anyone else has noticed this.
We've got a 2007 frame using a ribbon. Pretty much copied out of examples.
If you try and grab the bottom of the frame to resize, the height you can grab is only 2px. This makes it very difficult to drag the bottom of the frame.
|
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 March 2008 at 10:39am |
|
Please attach sample project as it works fine for us, this way we can try to see if we can help.
|
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
adrien
Senior Member
Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 March 2008 at 5:22pm |
|
It doesn't seem to do it in the sample, but the code we call to create the frame is:
inside App::InitInstance
CMainFrame* pMainFrame = new CMainFrame();
m_pMainWnd = pMainFrame; if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
{ return FALSE; } // end if pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow(); then inside
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{ if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators, sizeof(indicators)/sizeof(UINT))) { TRACE0("Failed to create status bar\n"); return -1; // fail to create } // Initialize the command bars
if (!InitCommandBars()) return -1; // Get a pointer to the command bars object.
CXTPCommandBars* pCommandBars = GetCommandBars(); pCommandBars->SetTheme(xtpThemeRibbon);
m_wndStatusBar.SetFont(pCommandBars->GetPaintManager()->GetIconFont());
m_wndStatusBar.SetDrawDisabledText(FALSE); m_wndStatusBar.SetCommandBars(pCommandBars); m_wndStatusBar.GetStatusBarCtrl().SetMinHeight(22); m_wndStatusBar.GetPane(0)->SetMargins(8, 1, 2, 1); // Set "Always Show Full Menus" option to the FALSE CXTPToolTipContext* pToolTipContext = GetCommandBars()->GetToolTipContext(); pToolTipContext->SetStyle(xtpToolTipOffice2007); pToolTipContext->ShowTitleAndDescription(); pToolTipContext->SetMargin(CRect(2, 2, 2, 2)); pToolTipContext->SetMaxTipWidth(180); pToolTipContext->SetFont(pCommandBars->GetPaintManager()->GetIconFont()); pCommandBars->GetCommandBarsOptions()->ShowKeyboardCues(xtpKeyboardCuesShowWindowsDefault);
pCommandBars->GetCommandBarsOptions()->bAlwaysShowFullMenus = TRUE; pCommandBars->GetCommandBarsOptions()->bToolBarAccelTips = TRUE; pCommandBars->GetShortcutManager()->SetAccelerators(IDR_MAINFRAME); theApp.m_ActionAgent = new ActionAgent;
CMenu menu; menu.Attach(::GetMenu(m_hWnd)); SetMenu(NULL); CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*)pCommandBars->Add(_T("The Ribbon"), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar));
pRibbonBar->EnableDocking(0); CXTPControlPopup* pControlFile = (CXTPControlPopup*)pRibbonBar->AddSystemButton(0); pControlFile->SetCommandBar(menu.GetSubMenu(0)); nRibbonId = pRibbonBar->GetBarID();
pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_0, IDR_MAIN_0, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_1, IDR_MAIN_1, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_2, IDR_MAIN_2, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_3, IDR_MAIN_3, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_4, IDR_MAIN_4, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_5, IDR_MAIN_5, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_6, IDR_MAIN_6, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_7, IDR_MAIN_7, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_8, IDR_MAIN_8, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_9, IDR_MAIN_9, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_10, IDR_MAIN_10, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_11, IDR_MAIN_11, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_12, IDR_MAIN_12, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_13, IDR_MAIN_13, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_14, IDR_MAIN_14, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_MAIN_15, IDR_MAIN_15, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_WARN_0, IDR_WARN_0, CSize(32, 32), xtpImageNormal);
pRibbonBar->GetImageManager()->SetIcon(IDR_WARN_1, IDR_WARN_1, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_WARN_2, IDR_WARN_2, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_WARN_3, IDR_WARN_3, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_WARN_4, IDR_WARN_4, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_WARN_5, IDR_WARN_5, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_WARN_6, IDR_WARN_6, CSize(32, 32), xtpImageNormal); pRibbonBar->GetImageManager()->SetIcon(IDR_WARN_7, IDR_WARN_7, CSize(32, 32), xtpImageNormal); pRibbonBar->GetSystemButton()->SetIconId( IDR_MAIN_0, FALSE ); pRibbonBar->GetQuickAccessControls()->Add(xtpControlButton, ID_GOONLINE);
pRibbonBar->GetQuickAccessControls()->Add(xtpControlButton, ID_GOOFFLINE); pRibbonBar->GetQuickAccessControls()->CreateOriginalControls(); pRibbonBar->EnableFrameTheme(); PostMessage(WM_SYSCOLORCHANGE); ::PostMessage(m_hWnd, WM_COMMAND, ID_GOONLINE, 0);
return 0;
} // end OnCreate |
|
![]() |
|
adrien
Senior Member
Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 March 2008 at 7:42pm |
|
Hi
Actually it does the same thing in the ribbon sample.
I get a 1 or 2px window of opportunity to resize the frame from the bottom edge.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 March 2008 at 3:56am |
|
Hi,
yes, its true.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
adrien
Senior Member
Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 March 2008 at 10:39am |
|
Am I the only one who considers this to be a problem?
On all other edges you can easily resize, but on the bottom edge, it's very difficult.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 March 2008 at 8:22am |
|
Thanks, its fixed.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
adrien
Senior Member
Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 March 2008 at 2:18am |
|
Hi Oleg
Any chance you could post the code that fixes it please? We are close to a release, and need to fix this.
Thanks
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 March 2008 at 2:42am |
|
We just posted beta versions. Think you can use it to compile your application. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
adrien
Senior Member
Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 March 2008 at 5:56pm |
|
Hi
We can't ship with a beta version of CodeJock, so if you could let me know which file and func changed so I can patch our 11.2.2 would be appreciated. Thanks Adrien |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 March 2008 at 4:24am |
|
There was changes in 4 files. :(
Send request to support@codejock.com , I will send you diff.
|
|
|
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 |