Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - ribbon groups height
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ribbon groups height

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


Joined: 04 September 2009
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote feffe Quote  Post ReplyReply Direct Link To This Post Topic: ribbon groups height
    Posted: 03 November 2009 at 4:10am
Hi
 
I need to decrease the height of a ribbon group: it is formed by
a tab with two buttons. I've tried to do this calling "SetGroupsHeight",
and it works but there is a problem: when the mouse is over the button,
the "yellow rectangle" showing the selection doesn't seem to decrease its size.
 
How can i decrease it, or alternatively remove the darker strip in the bottom of the tab?
 
 
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: 03 November 2009 at 7:21am
Hi,
 
Try manually set xtpButtonIcon or xtpButtonIconAndCatpion for buttons.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
feffe View Drop Down
Groupie
Groupie


Joined: 04 September 2009
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote feffe Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2009 at 9:48am
I'm using xtpButtonIconAndCaptionBelow...
 
EDIT: Writing my customized CXTPRibbonTheme, now I can eliminate
the caption bar from my groups.
 
However, I still can't resolve 2 problems:
 
1. Button icons are not centered: they remain on the top of the group rect;
 
2. If I set my new RibbonTheme (SetTheme) during the call OnCreate of the Frame Window of
my application, it doesn't work; if I set it later, the caption become not visible. The same
happens when I try to resize groups height (SetGroupsHeight). So, where should these
methods be called? 
 
Thanks for your help
Back to Top
feffe View Drop Down
Groupie
Groupie


Joined: 04 September 2009
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote feffe Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2009 at 11:17am
This is the problem: "selection" rectangle is bigger than the button
and the image is not centered.
 
 
 
Please help, this is the last thing I must face for finishing my program.
 
 
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.047 seconds.