[fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-13 Thread Eugenio Bargiacchi
I've made within my main window a Fl_Scroll. Inside it there is a Fl_Group, which has two Fl_Input and a Fl_Pack. Inside of the Fl_Pack there is a Fl_Button, which, if pressed, adds a Fl_Input within the Fl_Pack and increases the size of the Fl_Group to house the increased Fl_Pack. Fl_Window

Re: [fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-14 Thread Greg Ercolano
On 05/13/12 18:17, Eugenio Bargiacchi wrote: > I've made within my main window a Fl_Scroll. > > Inside it there is a Fl_Group, which has two Fl_Input and a Fl_Pack. > > Inside of the Fl_Pack there is a Fl_Button, which, if pressed, adds a > Fl_Input within the Fl_Pack and increases the size of t

Re: [fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-14 Thread Eugenio Bargiacchi
My problem is that I have to swap the contents of the Scroll multiple times with custom Groups ( it depends on the selected Item of a Tree ). The Group is one of them, and I use it so that I can insert it and take it out with one line of code instead that of three ( for this one, I also have mor

Re: [fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-14 Thread Matthias Melcher
On 14.05.2012, at 03:17, Eugenio Bargiacchi wrote: > I've made within my main window a Fl_Scroll. > > Inside it there is a Fl_Group, which has two Fl_Input and a Fl_Pack. > > Inside of the Fl_Pack there is a Fl_Button, which, if pressed, adds a > Fl_Input within the Fl_Pack and increases the s

Re: [fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-14 Thread MacArthur, Ian (SELEX GALILEO, UK)
> > This happens as soon as the Fl_Scroll is scrolled. If I resize the > Window so that its new size is bigger than the Fl_Group, it is rendered > correctly, but as soon as I add more inputs and I try to scroll down, > nothing is rendered. > > > > Am I doing something wrong or is this a bug? If th

Re: [fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-14 Thread Eugenio Bargiacchi
Well it IS pretty convenient, for avoiding to precisely place every component. Less lines of code, less bloated. I've posted my code a couple of replies above, so tell me what you think of it! =) ___ fltk mailing list fltk@easysw.com http://lists.easys

Re: [fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-14 Thread Albrecht Schlosser
On 14.05.2012 16:41, Eugenio Bargiacchi wrote: Well it IS pretty convenient, for avoiding to precisely place every component. Less lines of code, less bloated. I've posted my code a couple of replies above, so tell me what you think of it! =) Fl_Scroll changes the x/y positions of its childr

Re: [fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-14 Thread Albrecht Schlosser
On 14.05.2012 20:41, Albrecht Schlosser wrote: > (2) rb (resize-box) was added to maintain the other widgets's sizes. I just checked another idea: instead of adding the resize box, just disable the group's own resizing by setting the group's resizable() to NULL. ... well, then you can also remov

Re: [fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-14 Thread Greg Ercolano
On 05/14/12 12:02, Albrecht Schlosser wrote: > On 14.05.2012 20:41, Albrecht Schlosser wrote: > Does this (see inline code below) work for you? Albrecht: I think your email program is word wrapping the code in your outbound messages. If you're using Thunderbird as I do, yo

Re: [fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-14 Thread Eugenio Bargiacchi
Thanks! It works now! It was simply the case of setting the resizable to null. I've one last problem though. This scrollbar, as you can see, it is a Vertical one. What I wanted to do is that if the Fl_Scroll is resized horizontally, this also resizes the Fl_Group inside. I've made a custom Fl_S

Re: [fltk.general] Fl_Scroll & Dynamic Widgets

2012-05-15 Thread Albrecht Schlosser
On 15.05.2012 00:29, Eugenio Bargiacchi wrote: > Thanks! It works now! It was simply the case of setting the resizable to null. You're welcome. I'm glad I could help. > I've one last problem though. This scrollbar, as you can see, it is a > Vertical one. What I wanted to do is that if the Fl_Scr