473,396 Members | 1,775 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,396 software developers and data experts.

Customize treeview control nodes ???

Dear all,

I was wondering is there is a way to customise the treView control in order
to get any Control as a Node. What I try to do is having a Progress bar as a
treeview node object.

Is that possible ?

regards
serge
Nov 15 '06 #1
6 2596
serge calderara wrote:
Dear all,

I was wondering is there is a way to customise the treView control in order
to get any Control as a Node. What I try to do is having a Progress bar as a
treeview node object.

Is that possible ?

regards
serge
I know you can attach right-click popup menus and manage the events
results of those.

--
The Texeme Construct
http://you-read-it-here-first.com
Nov 15 '06 #2
You cant add controls directly to a node. You can owner draw the node however
and either draw your own progress bar on it, or have a hidden progress bar
and try to convince it to draw itself onto an image. There should be at least
a win32 call to create a device context for the image and tell the control to
draw on it. I know there are samples like that about for taking screen dumps
so you could probably modify those.

HTH

Ciaran O'Donnell
"serge calderara" wrote:
Dear all,

I was wondering is there is a way to customise the treView control in order
to get any Control as a Node. What I try to do is having a Progress bar as a
treeview node object.

Is that possible ?

regards
serge
Nov 16 '06 #3
Ciaran O''Donnell wrote:
You cant add controls directly to a node. You can owner draw the node however
and either draw your own progress bar on it, or have a hidden progress bar
and try to convince it to draw itself onto an image. There should be at least
a win32 call to create a device context for the image and tell the control to
draw on it. I know there are samples like that about for taking screen dumps
so you could probably modify those.
He might want to consider just having a form that responds to the
selection of the node...that is what my smart client does...as the user
selects a node in the tree, it calls a web service and updates fields on
the main form. He should be able to do this, or launch a small
subform with a mouseover or click.

>
HTH

Ciaran O'Donnell
"serge calderara" wrote:

>>Dear all,

I was wondering is there is a way to customise the treView control in order
to get any Control as a Node. What I try to do is having a Progress bar as a
treeview node object.

Is that possible ?

regards
serge

--
The Texeme Construct
http://you-read-it-here-first.com
Nov 17 '06 #4
The thing I am looking for to do is as follow:
I have a treeview object whcih has different nodes.
When my user select each of this nodes, a particular long operation can be
done on each of them asynchronously. For that reason I would like that when
operation is goiing on on that selected node (ex: getting data from
database), the default node bitmap is replaced by a progress bar to have
independant process status of each node..

In a similar way when you are using an FTP programme and upload a certain
amount of files, then you have progress of each file.. This is what I try to
reached with tree nodes.

thnaks for help if any idea?

regards
serge

"John Bailo" wrote:
Ciaran O''Donnell wrote:
You cant add controls directly to a node. You can owner draw the node however
and either draw your own progress bar on it, or have a hidden progress bar
and try to convince it to draw itself onto an image. There should be at least
a win32 call to create a device context for the image and tell the control to
draw on it. I know there are samples like that about for taking screen dumps
so you could probably modify those.

He might want to consider just having a form that responds to the
selection of the node...that is what my smart client does...as the user
selects a node in the tree, it calls a web service and updates fields on
the main form. He should be able to do this, or launch a small
subform with a mouseover or click.


HTH

Ciaran O'Donnell
"serge calderara" wrote:

>Dear all,

I was wondering is there is a way to customise the treView control in order
to get any Control as a Node. What I try to do is having a Progress bar as a
treeview node object.

Is that possible ?

regards
serge


--
The Texeme Construct
http://you-read-it-here-first.com
Nov 19 '06 #5
I think you'll probably have to look at a custom tree control to do
this. There are a number of commercial products that allow you to
embed controls in tree nodes. Most only support inserting custom
editor controls from the same vendor. Infralution's Virtual Tree
control supports using any .NET control (including progress bars) as an
editor. You can can get more information and download an evaluation
version from:

www.infralution.com/virtualtree.html

Regards
Grant Frisken
Infralution
serge calderara wrote:
The thing I am looking for to do is as follow:
I have a treeview object whcih has different nodes.
When my user select each of this nodes, a particular long operation can be
done on each of them asynchronously. For that reason I would like that when
operation is goiing on on that selected node (ex: getting data from
database), the default node bitmap is replaced by a progress bar to have
independant process status of each node..

In a similar way when you are using an FTP programme and upload a certain
amount of files, then you have progress of each file.. This is what I try to
reached with tree nodes.

thnaks for help if any idea?

regards
serge

"John Bailo" wrote:
Ciaran O''Donnell wrote:
You cant add controls directly to a node. You can owner draw the node however
and either draw your own progress bar on it, or have a hidden progress bar
and try to convince it to draw itself onto an image. There should be at least
a win32 call to create a device context for the image and tell the control to
draw on it. I know there are samples like that about for taking screen dumps
so you could probably modify those.
He might want to consider just having a form that responds to the
selection of the node...that is what my smart client does...as the user
selects a node in the tree, it calls a web service and updates fields on
the main form. He should be able to do this, or launch a small
subform with a mouseover or click.

>
HTH
>
Ciaran O'Donnell
>
>
"serge calderara" wrote:
>
>
>>Dear all,
>>
>>I was wondering is there is a way to customise the treView control in order
>>to get any Control as a Node. What I try to do is having a Progress bar as a
>>treeview node object.
>>
>>Is that possible ?
>>
>>regards
>>serge

--
The Texeme Construct
http://you-read-it-here-first.com

Nov 19 '06 #6
HI
thanks for the info..

I am not interresting to buy another tool or package just for adding
aprogress bar node. IN addition to the fact of adding a control as a Node, I
am more interresting on the way to do it that buying ready solution. Just for
personnal knowledge.

Any idea howto do that ?
regards
serge

"Grant" wrote:
I think you'll probably have to look at a custom tree control to do
this. There are a number of commercial products that allow you to
embed controls in tree nodes. Most only support inserting custom
editor controls from the same vendor. Infralution's Virtual Tree
control supports using any .NET control (including progress bars) as an
editor. You can can get more information and download an evaluation
version from:

www.infralution.com/virtualtree.html

Regards
Grant Frisken
Infralution
serge calderara wrote:
The thing I am looking for to do is as follow:
I have a treeview object whcih has different nodes.
When my user select each of this nodes, a particular long operation can be
done on each of them asynchronously. For that reason I would like that when
operation is goiing on on that selected node (ex: getting data from
database), the default node bitmap is replaced by a progress bar to have
independant process status of each node..

In a similar way when you are using an FTP programme and upload a certain
amount of files, then you have progress of each file.. This is what I try to
reached with tree nodes.

thnaks for help if any idea?

regards
serge

"John Bailo" wrote:
Ciaran O''Donnell wrote:
You cant add controls directly to a node. You can owner draw the node however
and either draw your own progress bar on it, or have a hidden progress bar
and try to convince it to draw itself onto an image. There should be at least
a win32 call to create a device context for the image and tell the control to
draw on it. I know there are samples like that about for taking screen dumps
so you could probably modify those.
>
He might want to consider just having a form that responds to the
selection of the node...that is what my smart client does...as the user
selects a node in the tree, it calls a web service and updates fields on
the main form. He should be able to do this, or launch a small
subform with a mouseover or click.
>
>

HTH

Ciaran O'Donnell


"serge calderara" wrote:


>Dear all,
>
>I was wondering is there is a way to customise the treView control in order
>to get any Control as a Node. What I try to do is having a Progress bar as a
>treeview node object.
>
>Is that possible ?
>
>regards
>serge
>
>
--
The Texeme Construct
http://you-read-it-here-first.com
>
>
>

Nov 20 '06 #7

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

Similar topics

2
by: serge calderara | last post by:
dear all, Is there an easy way to bind a treeview control with an XML object as datasource? In a similar way as the dataset is doing, and build columns accroding to XML node, I could imagine a...
1
by: Oliver | last post by:
I have seen mention of TreeView controls in other threads, but cannot find information about these in the Online Help. I feel that I might be missing out on some useful functionality. How can I...
5
by: Mark Goldin | last post by:
Anybody can shart some working samples of using that control on Windows form? Thanks
2
by: Kristopher Wragg | last post by:
I'm having some serious problems with the TreeView control. I've got a control that inherits TreeView and has some methods that firstly create a TreeNode then does some recursive procedure to add...
1
by: | last post by:
What's the best way to create new nodes on a treeview 2.0 and save them to an xml file? Thanks, Victor
0
by: apenly | last post by:
Hi all- I'm trying to Render a TreeView in a custom control, but I'm receiving a NullReferenceException at runtime. If I put the TreeView on the page it works fine, but as soon as I try to...
1
by: doemon | last post by:
Hi, I'm working on a pagination control and I need to dynamically rerender a treeview to display the next set of nodes depending on which page we're on. For example, page 1 will dispaly only...
1
by: echuck66 | last post by:
Hi, I have a Winforms 2.0 project that I'm working on that involves populating a treeview control from data contained in a fairly large dataset that has to be refreshed periodically. I have no...
0
by: divya1949 | last post by:
Create a windows c# application which will Read a xml file and populate nodes in the treeview. 1 On selection of treenode display the child nodes of that node in listview control 2. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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?
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.