Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How do I bold a single menu item?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I bold a single menu item?

 Post Reply Post Reply
Author
Message Reverse Sort Order
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post Topic: How do I bold a single menu item?
    Posted: 28 December 2007 at 6:57pm
As a long-time Windows user, I don't think I have ever thought about double-clicking a menu title in order to perform the action of a "default" menu item.  It doesn't seem like having a default menu item is normal behavior for a program (I haven't found one yet that implements this).  I'm not too worried about this in my program so I can live with using the default item option in order to bold a single menu item.  

I also found the loophole for having more than one default item.  It seems that double-clicking will execute the first visible default item.  I thought I could disable the double-click by by having the first default menu item being a invisible option that doesn't do anything but it wasn't fooled.

Make that two votes for having a font property for each menu item.
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2007 at 9:26am
seems i can also have two default items in a menu items list, which to me(according to marc's explanation) can be a loop hole. guess we shud have specific property for font :)
Back to Top
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post Posted: 27 December 2007 at 5:58pm
but don't forget that this make the menuitem default one meaning that if i clic on the menu title twice then this is the menuitem that would be clicked.
 
Marc
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post Posted: 24 December 2007 at 1:11pm
That looks like it will work.  Thanks!
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 24 December 2007 at 4:21am
Hi,

Control.DefaultItem = True
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2007 at 2:57pm
How do I bold a single menu item?  I know how to control the font for the whole CommandBars object but I want to control the font for a single menu item.  I want this item to stand out and I figured bolding it would work well but there are no font controls for individual menu items.
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.