FLTK logo

Re: [fltk.general] Re: Scrollable Table Not Rendering Child Widgets Correctly

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: Scrollable Table Not Rendering Child Widgets Correctly Mo_Al_ Jun 16, 2021  
  Yes. I originally had posted similar code in the fltk-rs examples folder. I realize now it's wrong. Replacing things with a scroll widget and maybe a pack of packs would be better.

On Saturday, June 12, 2021 at 8:42:32 PM UTC+3 Ian MacArthur wrote:
On Sat, 12 Jun 2021, 00:22 Greg Ercolano wrote:

I think most of us can't read rust, but offhand it looks like you're creating the buttons in the table's draw code which I wouldn't recommend: the table's draw function only triggers for visible items, and are called repeatedly during redraws.

I agree with Greg, the rust code's probably not the primary skillset around here. Maybe Mo Al can pitch in? I think the rust port is his thing... ?

And, again, it does *look* (to my C programmer eyes) like you are creating widgets inside of the draw method... Which is just wrong...
--
Ian
From my Fairphone FP3

--
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/f936641b-535a-4157-8cc8-3a40aefcc8efn%40googlegroups.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'.