By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,836 Members | 2,056 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,836 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
> 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

P: n/a
> 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

P: n/a
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

P: n/a
> >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 discussion thread is closed

Replies have been disabled for this discussion.