Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Handle events with Ribbon ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Handle events with Ribbon ?

 Post Reply Post Reply
Author
Message
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Topic: Handle events with Ribbon ?
    Posted: 05 August 2008 at 12:39am
Hello,
 
I have two questions with Ribbon on CommandBar:
 
- How to handle event when i click one on one button of group of tab. I use Ribbon to create tabs.
 
- Is there any ways to use Ribbon for Dialog based app ?
 
I need your helps !
 
Thank you so much !
I love ToolkitPro, Suite Pro ! Thanks Codejock !
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 August 2008 at 1:37am
Hi,
 
- Add ON_COMMAND handler for button Id
- See DialogSample - it creates simple toolbars, using same way you can create Ribbon.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Posted: 05 August 2008 at 8:35pm
thank Oleg,
 
i built successfully ribbon with dialog based app. But i still have a little problem with Ribbon.
- When i move the cursor on symbol of Ribbon on top-left corner, no tooltip appears. How to display tooltip on symbol of Ribbon and how to resize symbol of Ribbon.
- If i use Ribbon with dialog based app, i can't use SetResize function to resize my controls such as: Button, Edit, Radio, Check box...How to resize such controls ?
 
Thank you so much ! Your help is very useful !
 
I love ToolkitPro, Suite Pro ! Thanks Codejock !
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2008 at 2:46am
1.So Set Some tooltip for this control...
pSystemButton->SetID(...);
pSystemButton->SetTooltip(...);
 
2. If you copy same code we use in our DialogSample it have work.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2008 at 5:12am
Thanks Oleg,
 
1. I mean, screentip not tooltip. I want snapshot of menu appears when i move mouse on Systembutton. With your help, only tooltip appear, not screentip
 
2. If i copy Dialogsample, all controls resize properly excepting Dockingpane. I try more code but i couln't understand why my dockingpanes disappears .
 
Thank you so much !
 
 
I love ToolkitPro, Suite Pro ! Thanks Codejock !
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2008 at 2:08am
Hi,
1. its same. Add Description and Icon for this control.  See our Ribbon sample.
 
2. you have CommandBar and DockingPanes in dialog ? Think its easy for you instead dialog use simple CFrameWnd + CFormView.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2008 at 11:03pm
Thank Oleg,
 
Now i have  another problem with Ribbon for Dialog based app. I have solved docking panes with Ribbon. When i use Ribbon for Dialog based, Commandbar and controls in my dialog has the same theme, but my dialog's background is not. My dialog likes:
 
 
Although i have used LoadSkin to apply Office2007.cjstyles but  dialog's backgound still has the theme differing with Commandbar and controls.
 
Can you assist me in applying offfice2007 theme for dialog's background ?
 
Thank you so much !
I love ToolkitPro, Suite Pro ! Thanks Codejock !
Back to Top
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Posted: 10 August 2008 at 10:41pm
Oleg ! Pls help me !
 
Thanks
I love ToolkitPro, Suite Pro ! Thanks Codejock !
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 August 2008 at 2:29am
Hello,
 
Yes, unfortunatelly you have manually handle it. Add WM_CTLCOLOR handler and return blue brush.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.