Profile Picture

NRichTextLabel mnemonic and font support

Posted By Craig Swearingen 9 Years Ago
Author
Message
Craig Swearingen
Question Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 99, Visits: 654
1) When I use an NRichTextLabel I've noticed that it doesn't honor its Font property.  It's using a different font.  When I put both a Label and an NRichTextLabel on my Form which has the same text string in it I can see it looks different.  When I change the text in the NRichTextLabel to be "<font size='8.25' face='Microsoft Sans Serif'>my comparison string</font>" thinking this is the same font as the Label is using while it does look similar its spreading the string out much further than the Label does.  Am I coding the size and face values correctly?

2) A common feature in a Label control is to use the ampersand(&Wink character to denote the mnemonic. When the user presses the Alt+mnemonic character focus goes to the control after the Label.  Is this support a part of the NRichTextLabel?  I was also looking at the NEntryContainer and I suspect it uses an NRichTextLabel for its label portion.  In the Nevron C# Examples program the toolkit provides it has an "Entry Controls" subtree showing two nice looking forms using the NEntryContainer but in a complete UX these forms would need mnemonic support.  Is there some way to accomplish this on those forms?

Nevron Support
This post has been flagged as an answer
Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hello Craig,

You can display underline using RichText mode too. All you need to do is to surround the desired text or character with <u> tag (<u><\u> ).
However, the NRichTextLabel does not support real mnemonic functionality as it is in the standard Label control.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic