473,670 Members | 2,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2602
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
8039
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 treeview which build its notes accordind to XML object too how can I do that?
1
4478
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 access this (and any other) extra controls, and how can I learn about them? I use Access 2000 and Access 97. Thank you, Oliver
5
8121
by: Mark Goldin | last post by:
Anybody can shart some working samples of using that control on Windows form? Thanks
2
2254
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 all the children from a database of a sort. Then once this is complete I clear the nodes, then add the TreeNode so it should be the only root node. The only problem is that for some very VERY strange reason there are two root nodes, with...
1
2123
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
2478
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 render it within my control it crashes and burns. I've even tried placing it within another control (a PlaceHolder) and tried to render the PlaceHolder to no avail. Any ideas on how to fix this problem? Here's my code:
1
4921
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 nodes 1 to 10, but when the user clicks , the tree will display nodes 11 to 20. Page 1 will is loaded when the page that contains the ascx (parent of the treeview) is loaded. This is all cool. The treeview displays correctly. When I click the ...
1
2232
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 problems populating the treeview nodes initially, but am somewhat flustered as to how I should go about keeping the treeview control current with the dataset. After the dataset has been refreshed, I can, of course, clear the treeview nodes and...
0
3298
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. Provide following view properties to listview, through View menu a. Tile b. Icon
0
8386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8814
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8592
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7419
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6213
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5684
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4391
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2042
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.