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 #16954 is a reply to message #16942] Wed, 23 July 2008 10:10 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
cbpporter wrote on Tue, 22 July 2008 06:10


Now all works pretty much as expected. All I need to do is make the control select the item that is clicked upon. Any suggestions how to do this with OptionTree?


Well, this is deep trouble... Either you can have Option to respond to mouse or TreeCtrl to respond.

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.

Other possibility is to use create your own Option and somewhat connect clicks to Option's text to TreeCtrl selection. Then use plain TreeCtrl with this new creation.

Mirek

P.S.: Added GetLabel, in this simple form:
TreeCtrl::
	String GetLabel(int id) const                   { return option[id]->GetLabel(); }


and GetLabel to Pusher as well (being there, GetFont too...)

[Updated on: Wed, 23 July 2008 10:16]

Report message to a moderator

 
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: Wed Aug 27 14:19:52 CEST 2025

Total time taken to generate the page: 0.08943 seconds