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 » Tree Control - how to access properties of node.ctrl?
Re: Tree Control - how to access properties of node.ctrl? [message #10432 is a reply to message #10424] Mon, 09 July 2007 10:13 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
LayerOption* ptr = (LayerOption*)~node.ctrl;

should work.

Anyway, depending on what exactly your code is doing, maybe you should consider accessing your Array<LayerOption> directly (especially if some node removal is involved). You should be able to do it by:

- creating the node without Ctrl just to get node id (which is int)
- then use the node id you got with Array::At method to create (or recycle) the widget, use GetNode/SetNode to assign Ctrl
- then you can use the id of node as index to the array

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Two problems (1 serious) with TreeCtrl
Next Topic: Right Clicking Tree Nodes?
Goto Forum:
  


Current Time: Thu Aug 21 14:41:37 CEST 2025

Total time taken to generate the page: 0.04559 seconds