472,805 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 software developers and data experts.

Tree View problem

Hi all,

I am having a small problem with a tree control I am playing with.

I have created a custom tree view that displays nodes with a linktext control to the right of the nodes. When the linktext is clicked the linktext control is hidden and a combo box appears in its place that allows the
user to choose an option. Once selected, the combo is hidden and the linktext control reappears displaying the new selection.

My problem is that when the tree view is scrolled my linktext controls stay where they are and no longer line up with the nodes. I couldn't find an treeview event to provide a mechanism for triggering the code to move
the linktext controls.

Anyone got any suggestions?

Thanks

Nick
Nov 15 '05 #1
1 1821
My problem is that when the tree view is scrolled my linktext controls stay where they are and no longer line up with the nodes. I couldn't find
an treeview event to provide a mechanism for triggering the code to movethe linktext controls.


I was looking this up in MSDN.
http://msdn.microsoft.com/library/de...us/shellcc/pla
tform/commctls/treeview/treeview.asp
The tree view has a WM_VSCROLL notification that is sent when scrolling
event occurs.
WM_VSCROLL : Scrolls the tree-view control. It returns TRUE if scrolling
occurs, or FALSE otherwise.

Looking up WM_VSCROLL in msdn.
http://msdn.microsoft.com/library/de...us/shellcc/pla
tform/commctls/scrollbars/scrollbarreference/scrollbarmessages/wm_vscroll.as
p
It says : The WM_VSCROLL message is sent to a window when a scroll event
occurs in the window's standard vertical scroll bar. This message is also
sent to the owner of a vertical scroll bar control when a scroll event
occurs in the control. A window receives this message through its
WindowProc function.
Hope this helps.
--
Adrian Mascarenhas, Developer Division

This posting is provided "AS IS" with no warranties, and confers no rights.

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Nov 15 '05 #2

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

Similar topics

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...
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...
0
by: Santosh | last post by:
Asp.Net tree view control font problem Dear all i am downloading MS tree view control . i want to change the font size and font name of the tree view control i am wrtitting code for it like ...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.