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 » Bug changing text after node insertion
Re: Bug changing text after node insertion [message #16958 is a reply to message #16954] Wed, 23 July 2008 10:53 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
luzr wrote on Wed, 23 July 2008 09:10


Partial solution is to not use Option's Label (leave it empty) and put its text to Node's Value (haha, back at it again Smile. Then clicking the option box will toggle the option, clicking the text will do selections.

You have to do it like this anyway, otherwise the Option obscures the highlight rect.

Quote:

I am afraid this might not be consistent with interface behaviour e.g. in case there are EditFields in the TreeCtrl...

To be honest I think it makes as much sense as anything else in that situation, and it will only change behaviour when using multiselect and ctrls.

The existing way, where the current selection is cleared whenever a ctrl gets focus is broken. For instance, currently the selection is cleared if focus changes to another window then back again.
Quote:


What makes me wonder, BTW, is how the Option gets the focus?!

The sequence is:
LeftDown
DoClick
SetCursorLine
SetWantFocus on the ctrl
ChildGotFocus
SetCursorLine
SelectOne (obviously clears any other selected items)

Perhaps a better solution would be to stop the first CursorLine being called when using CTRL-key and multiselect, but the behaviour is definitely wrong.
 
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
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
Read Message
Read Message
Read Message
Previous Topic: IsSelected(id)
Next Topic: Clear() and external controls as nodes
Goto Forum:
  


Current Time: Tue Jun 11 13:54:28 CEST 2024

Total time taken to generate the page: 0.01299 seconds