Print Page | Close Window

How do I bold a single menu item?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=9111
Printed Date: 08 October 2024 at 11:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do I bold a single menu item?
Posted By: nighthawk
Subject: How do I bold a single menu item?
Date 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.



Replies:
Posted By: joeliner
Date Posted: 24 December 2007 at 4:21am
Hi,

Control.DefaultItem = True


Posted By: nighthawk
Date Posted: 24 December 2007 at 1:11pm
That looks like it will work.  Thanks!


Posted By: gaudetm
Date 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


Posted By: joeliner
Date 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 :)


Posted By: nighthawk
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net