NContextMenu NCommand Font property not working


Author
Message
Brad Swearingen
Brad Swearingen
Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)
Group: Forum Members
Posts: 53, Visits: 3

I've created an NContextMenu that shows as expected.  I'd like to specify a different font for just one of my NCommands on the menu to indicate that it is the "default" menu item.  (The command which will issue during a double click.  Often shown using the current font but bold.)  I'm trying to set the font (NCommand.Properties.Font) but it doesn't use it though the menu seems to be reserving space for the font change.  Seems like something is preventing the font from being used when drawing it.

Sounds like I'm missing some understanding.  I'm using Win7 with the 11.1.17.12 build.  How can a default menu item like this be implemented?


Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hello Brad,

Could you send us an example application with the problem, because we cannot replicated on our site.
What I did was to drop a NContextMenu, add a new command, set its Font value as you described and add it to the context menu Commands collection.
When I display the context menu, the text of the command is displayed bold.

Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search