Print Page | Close Window

Ribbon glitch or wrong usage?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9622
Printed Date: 22 December 2024 at 6:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon glitch or wrong usage?
Posted By: znakeeye
Subject: Ribbon glitch or wrong usage?
Date Posted: 18 February 2008 at 5:02pm
I made a simple sample to demonstrate my problem.

Open RibbonMDISample and change to the following code:
 
void CMainFrame::OnViewFullscreen()
{
    ModifyStyle(WS_CAPTION | WS_THICKFRAME, 0);
    ModifyStyle(0, WS_CAPTION | WS_THICKFRAME); 
}
 
1) Run the application, click on View->Full Screen.
2) Click on the taskbar (should be "Always on top").
3) Click on the caption of RibbonMDISample.
 
This is the result:
 
 
How do I fix this?



Replies:
Posted By: Oleg
Date Posted: 19 February 2008 at 1:10am
Hi,
don't use this code to fix it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 19 February 2008 at 2:29am
Lol!
 
I need this code when I show another window in fullscreen mode. Just as in the GUI_VisualStudio sample, but with a ribbon!
 
1-1. Your call


Posted By: Oleg
Date Posted: 20 February 2008 at 1:43pm
Hi,
When you call ModifyStyle(WS_CAPTION | WS_THICKFRAME, 0); it will not remove caption from Ribbon. Ribbon already run this code to remove it. Sorry, There is no way to hide Ribbon caption. You need disable Office2007frame, hide it, when show and enable again.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 21 February 2008 at 4:43am
Ok, so if I want to show a pane's child in full screen mode I would do the following:
 
Enter full screen:
1) Disable office 2007 frame AND hide it?
2) pPaneChild->SetParent( GetParentFrame() );  // To get WM_KEYDOWN etc
 
Exit full screen:
1) Enable office 2007 frame AND show it?
2) pPaneChild->SetParent( pPreviousParent /*pane window!*/ );
 
Thanks!


Posted By: Oleg
Date Posted: 21 February 2008 at 8:30am
Send request to support@codejock.com

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 28 February 2008 at 1:11pm

Sent a while back - from an old e-mail address. Still no response. Is the sender's (my) address of importance?



Posted By: Oleg
Date Posted: 01 March 2008 at 7:28am
Hi,
What issue number was assigned?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 01 March 2008 at 9:06am
Funny, can't find my sent mail. I'll resend it when I have time to describe my problem - again! :P


Posted By: znakeeye
Date Posted: 09 March 2008 at 8:01am
Issue #16415. Can you please take a look? This is a high priority issue for me.


Posted By: rdhd
Date Posted: 02 October 2020 at 4:28pm
Hi znakeeye,

I saw your post after I found OnViewFullScreen in the MDI sample had no code. I added those two lines and stepped thru the code when I press the button on the view tab. But, nothing is happening because one line removes styles and the next line adds them right back.

I have stepped over the second line since it just adds the styles back but there is minimal change and some bad clipping of the ribbon.

I implemented a "full screen" mode for our app long ago and wanted to see if CJ made it easy to implement full screen mode when I saw themethod in the sample today.

I use the F11 key to go in and out of full screen in our MDI app. My code isn't too bad. I just set the MDI client window position so it takes the entire monitor and remove the client edge. I set the ribbon in minimized mode. I had to worry about the Windows app bar. That was a bit tricky and and causes a bit of flashing. I didn't find a way at the time to only affect the app bar on the monitor on which my app sits.

I do see CMDIFrameWndEx has enable full screen mode capability with our without the menu/ribbon being affected but CJ doesn't use it or CFrameWndEx which also has full screen capability.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net