![]() |
How do I bold a single menu item? |
Post Reply
|
| Author | |
nighthawk
Senior Member
Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
Quote Reply
Topic: How do I bold a single menu item?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.
|
|
![]() |
|
joeliner
Senior Member
Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 December 2007 at 4:21am |
|
Hi,
Control.DefaultItem = True |
|
![]() |
|
nighthawk
Senior Member
Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 December 2007 at 1:11pm |
|
That looks like it will work. Thanks!
|
|
![]() |
|
gaudetm
Senior Member
Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
joeliner
Senior Member
Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
Quote Reply
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 :)
|
|
![]() |
|
nighthawk
Senior Member
Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |