Customize treeview control nodes ???

G

Guest

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
 
J

John Bailo

serge said:
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.
 
G

Guest

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
 
J

John Bailo

Ciaran said:
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.
 
G

Guest

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
 
G

Grant

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
 
G

Guest

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
 

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

Top