|
|
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 ] | |
|
| |