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 » SetFocus with EditString as Node
Re: SetFocus with EditString as Node [message #41039 is a reply to message #41037] Wed, 23 October 2013 08:49 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
Well, last original issue fixed - I mean there was a bit of moving of items when going up/down, this now fixed.

As for your mouse problem, I am afraid it is not so easy to fix. The easier way I can see is to send the EditString 'syntetic' LeftDown event, based on current GetMousePos and EditString's GetScreenView (GetMousePos() - GetScreenView().TopLeft() is the mouse pos in widget's view - same coordinates as used for LeftDown).

Anyway, I think the much easier approach is not to try to wrangle with the original design of TreeCtrl and provide EditString for each Node (and not single one for the whole thing). Sure, EditString will eat something like 512 byte and makes all slower, so if you are going after a lot of data, your approach makes sense.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Hide expand/collapse ico
Next Topic: Node id calculation after removal ?
Goto Forum:
  


Current Time: Fri May 10 16:29:57 CEST 2024

Total time taken to generate the page: 0.02749 seconds