473,414 Members | 1,878 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,414 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 1388
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.