FLTK logo

Re: [fltk/fltk] possible incoherence in Fl_Tree_Item drawing (Issue #298)

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] possible incoherence in Fl_Tree_Item drawing (Issue #298) erco77 Nov 28, 2021  
 

Had some time -- here's a proof of concept using the above technique. I included your eye icon and made an eye open/closed version of it, and instanced it twice in the custom item, so each can be clicked to toggle them separately. tree-with-justified-eye-icons.cxx.txt
tree-with-justified-eye-icons
The screenshot shows where I clicked the right hand eye icon in MyItem-002 to toggle it.
I turned off the drawing of the selection color because I didn't bother to make proper alpha channels for the antialiased icons so they'd draw properly when selected, but you can do that with pngs.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

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