473,397 Members | 2,099 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,397 software developers and data experts.

TreeView: Now to maintain selection rectangle when it loses focus?

I've got a TreeView on the left of my screen. As the user navigates the tree, I
load corresonding detail info into the rest of the screen.

Works ok, but when the user clicks on a detail field, the TreeView's selection
rectangle goes away and the user is left wondering what happened.

Seems like there ought TB a way to preserve that rectangle. The optimal would
be to have it go grey when the control loses focus and return to blue whe focus
returns...but I'll take what I can get...

Anybody?

Larry D - maybe you could flip this to that group where the guy who lives and
breathes TreeViews hangs out?
--
PeteCresswell
Nov 13 '05 #1
5 3292
Sure. But you can easily do the same. Just look at the Newsgroups line
above ... Have you poked about in the other Access newsgroups?

HTH
--
-Larry-
--

"(Pete Cresswell)" <x@y.z> wrote in message
news:oc********************************@4ax.com...
I've got a TreeView on the left of my screen. As the user navigates the tree, I load corresonding detail info into the rest of the screen.

Works ok, but when the user clicks on a detail field, the TreeView's selection rectangle goes away and the user is left wondering what happened.

Seems like there ought TB a way to preserve that rectangle. The optimal would be to have it go grey when the control loses focus and return to blue whe focus returns...but I'll take what I can get...

Anybody?

Larry D - maybe you could flip this to that group where the guy who lives and breathes TreeViews hangs out?
--
PeteCresswell

Nov 13 '05 #2
> Sure. But you can easily do the same. Just look at the Newsgroups line
above ... Have you poked about in the other Access newsgroups?


Not yet, but I will... thanks
Nov 13 '05 #3
> Seems like there ought TB a way to preserve that rectangle. The optimal would
be to have it go grey when the control loses focus and return to blue whe focus


Got it. .HideSelection=False. Somehow it was (defaulted?) to True.
Nov 13 '05 #4
Go**********@FatBelly.com (PeteCresswell) wrote:
Seems like there ought TB a way to preserve that rectangle. The optimal would
be to have it go grey when the control loses focus and return to blue whe focus


Got it. .HideSelection=False. Somehow it was (defaulted?) to True.


Thanks for asking and posting. I hadn't worked in Treeview for years and suddenly
just now I needed this exact information.

Sure as heck ain't obvious!

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #5
> >Got it. .HideSelection=False. Somehow it was (defaulted?) to True.

Thanks for asking and posting. I hadn't worked in Treeview for years and suddenly
just now I needed this exact information.

Sure as heck ain't obvious!


SO!...It *does* default to .HideSelection=True.... I thought I'd
fat-fingered it somewhere along the line.

Another little tidbit: Don't expect a Tree to work if it's on a form
that's based on and empty RS. First clue will be that myTree.Nodes
won't exist....
Nov 13 '05 #6

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

Similar topics

1
by: (Pete Cresswell) | last post by:
I'm using a subform as a navigation list. On the left side of the screen is a subform containing people's names. The right side of the screen is loaded with information about the...
2
by: Sean | last post by:
Hi all, I have a treeview and because I subclass the treeview and allow multiple selection to be done on the treeview, I have a problem changing the background color of the treeview. The...
0
by: Claire | last post by:
Is it possible please? I'm using the treeview as a complex list box and I don't want the selected node to be unhighlighted when the control loses focus thanks
4
by: Phill | last post by:
Here's what I'm doing to make the right context mnue show up based on what node was cliked: private void tvwMenu_MouseUp(object sender, MouseEventArgs e) { //Select Node When Right Clicked &...
3
by: John | last post by:
I have overridden the default DrawNode (OwnerDrawText mode) to allow me to draw an extra icon at the front of the text block, while still using the built-in icon list for another icon. The problem...
2
by: Pucca | last post by:
Hi, When the user select a tree node, right click and select the "Rename" option in my context menu, I would like to create the Edit Label ability for the user. I would like to have the blinking...
2
by: bg_ie | last post by:
Hi, I have a treeview where the user selects a node before editing it. The problem is that when the user clicks on the text box to edit the node, the treeview loses its focus and the node is no...
18
by: =?Utf-8?B?TGkgV2VuZw==?= | last post by:
Hi, Is there a way for TreeView to have multiple selections? But I am not talking about its checked boxes. I want a way similar to ListView with MultiSelect = True. So I can use or key and...
1
by: =?Utf-8?B?TG9yZW4=?= | last post by:
I’m having a couple of problems using the TreeView control on a windows form. I feel as if I’m missing something very obvious, but I not seeing it! Any suggestions would be appreciated. 1....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.