Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Difficult to change the window size in Ribbon samp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Difficult to change the window size in Ribbon samp

 Post Reply Post Reply
Author
Message
Shinonome View Drop Down
Groupie
Groupie


Joined: 18 July 2008
Status: Offline
Points: 78
Post Options Post Options   Thanks (1) Thanks(1)   Quote Shinonome Quote  Post ReplyReply Direct Link To This Post Topic: Difficult to change the window size in Ribbon samp
    Posted: 05 December 2013 at 4:17am
The Office2013 theme is difficult to change the window size in comparison with Windows7 theme in Ribbon sample program.
Edge of the left, top, right and bottom is difficult to change in particular.
Please fix this problem.
Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2013 at 1:11am
Thanks for bringing this to our attention we will work to get this addressed with the next scheduled release.
Kirk Stowell, President and CEO
CODEJOCK SOFTWARE SOLUTIONS<
Back to Top
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (1) Thanks(1)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2014 at 10:54am
Thumbs Up

Yes, a border of 1 pixel/line is definitivly too small and the intersection look very strong.
Office 2013 shows a small shadow and the grip area has a wide region.


One more suggestion is to support a additional Win8 theme with blue caption bar (if app activated) and thick borders like explorer for non Win 8 operation systems.


Everbody who wish this too, please back me.

Regards
Back to Top
Shinonome View Drop Down
Groupie
Groupie


Joined: 18 July 2008
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shinonome Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2014 at 8:27pm
Please Office 2013 !
Back to Top
Shinonome View Drop Down
Groupie
Groupie


Joined: 18 July 2008
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shinonome Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2014 at 12:33am
Please prevent MDIChild in RibbonMDISample sample from the trouble that RibbonSample had.
Back to Top
mikegb View Drop Down
Newbie
Newbie


Joined: 31 October 2013
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote mikegb Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2014 at 7:53pm
Any updates on this issue?
Back to Top
mikegb View Drop Down
Newbie
Newbie


Joined: 31 October 2013
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote mikegb Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2014 at 3:03pm
Originally posted by Shinonome Shinonome wrote:

The Office2013 theme is difficult to change the window size in comparison with Windows7 theme in Ribbon sample program.
Edge of the left, top, right and bottom is difficult to change in particular.
Please fix this problem.
I have come up with a temporary solution to the issue raised above.  It isn't perfect but good enough for now.  I replaced the paint manager with a derived CCommandBarsOffice2013Theme object:
CXTPPaintManager::SetCustomTheme(new CCommandBarsOffice2013ThemeSizerFix();
The sole purpose of the CCommandBarsOffice2013ThemeSizerFix is to create a new frame paint manager:
class CCommandBarsOffice2013ThemeSizerFix : public CXTPCommandBarsOffice2013Theme
{
public:
   CCommandBarsOffice2013ThemeSizerFix(void)
   {
      CXTPFramePaintManager *pFramePaintManager = new CXTPFrameThemeOffice2013SizerFix(this);
      SAFE_DELETE(m_pFramePaintManager);
      m_pFramePaintManager = pFramePaintManager;
   }
};
The frame paint manager is degined as:
class CXTPFrameThemeOffice2013SizerFix : public CXTPFrameThemeOffice2013
{
public:
   CXTPFrameThemeOffice2013SizerFix(CXTPPaintManager *pPaintManager);
   virtual CRect CalcFrameBorder(const CXTPCommandBarsFrameHook *pFrameHook) const;
   virtual void DrawFrameBorder(CDC *pDC, CXTPCommandBarsFrameHook *pFrameHook);
};
The trick is to have the CXTPFrameThemeOffice2013 object return a larger frame border.  Since the CXTPFrameThemeModernUI::CalcFrameBorder source code has a 1 pixel frame hard coded (i.e. return CRect(1,1,1,1)), the overridden CalcFrameBorder looks like this:
CRect CXTPFrameThemeOffice2013SizerFix::CalcFrameBorder(const CXTPCommandBarsFrameHook *pFrameHook) const
{
   CRect rc = __super::CalcFrameBorder(pFrameHook);
   if ( rc==CRect(1,1,1,1) )
   {
      int cxSizeFrame = ::GetSystemMetrics(SM_CXSIZEFRAME);
      int cySizeFrame = ::GetSystemMetrics(SM_CYSIZEFRAME);
      rc = CRect(cxSizeFrame,cySizeFrame,cxSizeFrame,cySizeFrame);
   }
   return rc;
}

The above gives me a slightly wider frame.  Not much but enough to make it usable.  I then have to handle drawing the frame myself in CXTPFrameThemeOffice2013SizerFix::DrawFrameBorder().  I had to make some special consideration for the status bar.  It's not 100% perfect but good enough for now.  Hopefully there will be a better option in the next toolkit release.

I too would like to see a Windows 8 themed ribbon / frame (i.e. Explorer look and feel)

Currently on 16.3.1.

Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 284
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2014 at 9:33pm
The issue has been fixed. The fix will be available in the next release from today and also in the next beta build.
Back to Top
SvenC View Drop Down
Groupie
Groupie


Joined: 02 February 2007
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote SvenC Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2014 at 1:08pm
The release notes of 16.4 beta 2 states for command bars:
  • Thin window borders are made easier to catch and resize using a mouse for resizing

Should that fix this resize problem as well?

I compiled and ran the Ribbon sample and there is still only one pixel to get the resize function when the Office 2013 theme is selected.
--
SvenC

Toolkit Pro 15.3.1, 16.2.4, 16.3.1, 16.4.0, 17.2.0, 17.3.0, 18.0.1, 18.2 with VC++ 2010, 2012, 2013, 2015, 2017
Back to Top
SvenC View Drop Down
Groupie
Groupie


Joined: 02 February 2007
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote SvenC Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2015 at 4:03am
Any news about a fix for the Office 2013 theme borders?

Maybe a new release like 16.5 oder 17.0?
--
SvenC

Toolkit Pro 15.3.1, 16.2.4, 16.3.1, 16.4.0, 17.2.0, 17.3.0, 18.0.1, 18.2 with VC++ 2010, 2012, 2013, 2015, 2017
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2015 at 9:56am
Please note that we cannot release with the v1640 where you added the "sticky" behavior on the frame borders. This is simply not possible to work with an application where you capture the cursor and makes it "sticky".

-cpede
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
snarfblatt View Drop Down
Groupie
Groupie


Joined: 28 April 2008
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote snarfblatt Quote  Post ReplyReply Direct Link To This Post Posted: 30 April 2015 at 12:58pm
Any update on when this will be fixed? Any new releases coming? We are working towards adding the ribbon to our app, but these bugs and lack of fixes is going to slow down our release schedule.
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2015 at 3:26pm
I'm surprised to see that is still an issue with the new v17 release.  :-(

Codejock has moved away from the "sticky mouse" behavior (which was unusable) by default, but the original problem still remains. Window frame borders are still far too thin to "grab" correctly when using any of the Office 2013 themes.
Back to Top
snarfblatt View Drop Down
Groupie
Groupie


Joined: 28 April 2008
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote snarfblatt Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2015 at 4:55pm
Yeah, this issue is really hanging us up right now as well. We really want to release with the Office2013 theme, but we can't seem to get the window resizing to work right.
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 284
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2015 at 10:55pm
v17 beta 2 has a completely redesigned solution for this problem, no sticky borders, all should work smoothly now. Please test and provide your feedbacks.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.