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,

Have you tried to set the font as follows:

NCommand nCommand = new NCommand();

...

nCommand.Properties.Font = new Font(Font, FontStyle.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