FLTK logo

Re: [fltk/fltk] Tree & delete node (as button), 1.3.6, linux (#251)

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.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Tree & delete node (as button), 1.3.6, linux (#251) Ivan Baidakou Jul 13, 2021  
 

Yeah, auto-deleting underlying widget when tree item is removed, seems expected/reasonable behavior by default for me. I'm a bit surprised, that it is not.

(So, when the whole tree is deleted, the custom widgets in tree items still live... ??? ).

Will try your solution, seems a bit better workaround...

The reason why this happens is because the button is not deleted when the tree item is removed. It's invisible, but it's still there.

Why so? OK, I understand that the button is not deleted, however I'd not expect, that it will receive clicks, when it's container (tree-item) is deleted/removed.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

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'.