FLTK logo

RE: [fltk.general] Re: Fl_Tree

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

RE: Re: Fl_Tree "'Philip Rose' via fltk.general" Feb 26, 2021  
 

Could you call the Fl_Tree::handle() before the callback is invoked? That would make sure the active item gets identified and there might be other stuff that gets done.

 

Phil.

 

Sent from Mail for Windows 10

 

From: lifeatt...@gmail.com
Sent: 26 February 2021 14:26
To: fltk.general
Subject: [fltk.general] Re: Fl_Tree

 

>item is however not pointing to the item which I clicked.

 

I'm just looking at the FL_Tree handle() code. To find the active item, it calls:

 

 Fl_Tree_Item *item = _root->find_clicked(_prefs, 0);

_root and _prefs look like they won't be accessible so you'll need to use the accessor methods.

 

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/1b9966b1-c567-46bf-8bc8-48c459bf9c66n%40googlegroups.com.

 

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/60390af1.1c69fb81.7756e.b3e6SMTPIN_ADDED_BROKEN%40gmr-mx.google.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.