473,382 Members | 1,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Tree view

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
Nov 21 '05 #1
3 1387
Hi,

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

http://msdn.microsoft.com/library/de...rdrawtopic.asp

http://www.windowsformsdatagridhelp....2-3eba4f4ed55d

Ken
---------------------------
"Boni" <oilia@nospam> wrote in message
news:um**************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #2
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)
"Ken Tucker [MVP]" <vb***@bellsouth.net> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

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

http://msdn.microsoft.com/library/de...rdrawtopic.asp

http://www.windowsformsdatagridhelp....2-3eba4f4ed55d

Ken
---------------------------
"Boni" <oilia@nospam> wrote in message
news:um**************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #3
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

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

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: imani_technology_spam | last post by:
We need to present hierarchical data on a web page, the same way the tree view shows files in Windows Explorer. Here's the catch: that tree view needs to be bound to a SQL Server database. How...
0
by: Tree menu using XML | last post by:
I have one XML file that has nodes and sub node and each and every node has the attribute call visible if its value is true then diplay this node else don't display thid node, but this condition i...
1
by: Jesper DK | last post by:
Hi, I have docked a tree view to the left on a form. When I start to populate this tree view with nodes, a horizontal scroll box appears in the bottom of the tree view even though thee tree...
3
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
1
by: Kaye | last post by:
It seems that when I dynamically resize items in a tree-view control, using TVM_SETITEM and the TVITEMEX iIntegral member, things go awry. The window draws properly, but it seems like the RECTs for...
10
by: dwok | last post by:
Does anyone know of a good article that discusses creating a "Tree View" control in ASP.NET? Or perhaps a Tree View Control that comes with source code? I have come across a lot of tree controls...
0
by: rinishrk | last post by:
Hi, I have a web application that contains subfolders Admin and User with related webpages inside them. Within the Admin folder I have a page containing a Tree View Control.I want this tree view...
3
by: gmail | last post by:
Hi Friends, Can any body suggest me on this. I am working on .NET 2005 Frame work 2.0 . I am facing problem using the tree stucture. I created the site map.Now i want use the site map in every...
1
by: BeginingOfLife | last post by:
i am using a java script to create a tree view in my html page. i got that script from this link : http://destroydrop.com/javascripts/tree/ given script is static script creations for tree...
1
by: happy.john1234 | last post by:
Hi, i have got large xml file which i have to show in tree view windows form.I tried with loading all those data at once to tree view but it took a long time to render that tree view.Now i am...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.