FLTK logo

Re: [fltk.general] Fl_Hold_Browser

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: Fl_Hold_Browser Ian MacArthur Sep 10, 2020  
 
On 10 Sep 2020, at 17:45, holm.haavard wrote:
> 
> Here is a small program, where my problem is exposed. I use the Set_Font routine to recusively set font in my program.
> Do anyone see the problem in my code ? The browser do not show all entries.


I haven’t actually tested your code, but just from looking at it I’m pretty sure the issue is that the height of widgets added to a Fl_Browser is measured when they are added to the browser, so if you then change their height after they were added, the height dependent calculations (like scrolling) will go a bit awry.

If you change the height of a widget, I think you need to remove it and then re-insert it (if you want it at the same place) or re-add it (if you don’t mind it going to the end) to get the browser height updated to use the new height.

Or just set the text size to the desired height before you add the widget to the browser in the first place should work too.




-- 
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/8B6A39AD-E6A2-4F25-A780-688140711693%40gmail.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'.