Tree view

  • Thread starter Thread starter Boni
  • Start date Start date
B

Boni

Dear all,
is it possible to use two fonts in one context menu item text.
I.e
ItemTextFont1,ItemTextFont2.
I would need something like a richtextbox for text of context menu items. Is
it possible?
Thanks,
Boni
 
Hi,

Make the menu items in the context menu owner drawn so have
control what font is used.

http://msdn.microsoft.com/library/d...emwindowsformsmenuitemclassownerdrawtopic.asp

http://www.windowsformsdatagridhelp.com/default.aspx?ID=8bec4468-a8a7-4672-88a2-3eba4f4ed55d

Ken
---------------------------
Dear all,
is it possible to use two fonts in one context menu item text.
I.e
ItemTextFont1,ItemTextFont2.
I would need something like a richtextbox for text of context menu items. Is
it possible?
Thanks,
Boni
 
Thaank you,
I see that I mixed 2 questions. Now it is clear for context menu.
But how can I do the same for tree view nodes.
There is no TreeNode.OwnerDraw property. ( I want to have 2 fonts for a text
of treenode)
 
As I understand you want RichText style formatting in a TreeView node.
You may want to take a look at our TList component instead of standard
TreeView.
TList has direct support for RTF formatted text in any node.
You can specify RTF formatting for all nodes or just for specific nodes
To set as default for all nodes just write
TList.DefItemCellDef.RTFStyle = RTFStyle.RTF
Now add your RTF formatted text using the same RTF codes you would for
RichTextbox.
You can mix fonts, fontstyles, colors, multiple images, ....
Check it out at www.Bennet-Tec.com

* * Please include a copy of this message with your reply

Jeff Bennett
Jeff @ Bennet-Tec.Com

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com

=================== ===================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top