Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TreeCtrl » IsSelected(id)
Re: IsSelected(id) [message #18968 is a reply to message #18953] Sun, 02 November 2008 20:41 Go to previous messageGo to previous message
sapiency is currently offline  sapiency
Messages: 56
Registered: September 2008
Member
HI Mirek,

mmh, I think I give you just much too less information ..

luzr wrote on Sun, 02 November 2008 15:09

I guess GetCursor is quite ok here, is not it?

Mirek


I've got a tree without root:

-group1
--element1
--...
-group2
--element2
--element3
--...
-group3
--elementn
--...

there should be called a function when a user LeftClick on an element, but not when clicked on a group. I used a callback to start the action and tried "WhenSel". The Callback-Funktion checks if parent == 0 or not. But I didn't find a solution to recognize if the user only moves over an element or clicked with the left button on the element. It is only allowed to choose one element, not more.

looking at the documentation for IsCursor():
Returns true if there is cursor in the tree

But the work ought to be done only when LeftDown/LeftUp - Action happens on an element ...

IsSelected(id) checks Item.sel if true .. But this is not set from DoClick(...) or?

I hope it's more clear what I want to do.

regards

reinhard
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cursor doesn't refresh
Next Topic: Bug changing text after node insertion
Goto Forum:
  


Current Time: Wed May 15 22:42:05 CEST 2024

Total time taken to generate the page: 0.01646 seconds