467,075 Members | 930 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

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
  • viewed: 2385
Share:
6 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by serge calderara | last post: by
1 post views Thread by Oliver | last post: by
5 posts views Thread by Mark Goldin | last post: by
2 posts views Thread by Kristopher Wragg | last post: by
1 post views Thread by | last post: by
reply views Thread by apenly@gmail.com | last post: by
1 post views Thread by doemon@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.