Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CommandBar with icon and caption
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommandBar with icon and caption

 Post Reply Post Reply
Author
Message
pstack12 View Drop Down
Newbie
Newbie


Joined: 04 December 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote pstack12 Quote  Post ReplyReply Direct Link To This Post Topic: CommandBar with icon and caption
    Posted: 16 August 2008 at 10:02am

Is there any sample code on how to create a menu (popup) that looks like this one from MS Word?  If I resort to using the DrawItem event, I'll lose the cool highlighting as I move the cursor over the items in the list.  Can this be done with XAML markup?

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: 18 August 2008 at 2:11am
Hello,
 
Yes, you need DrawItem. To Draw Highlight rectangle use CommandBars.PaintManager.DrawRectangle method.
 
See code in RibbonSample\frmMain.frm
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.203 seconds.