Hi,
I am testing fltk layout using Fl_Pack, but I have an issue I did not succeed
to solve.
If I resize manually my window, everything is fine, but if I use the
window-size method (launching the exe with an arg), my buttons resize too...
which is different from the manual resizing.
Can
I suspect (i.e. I haven't looked all that closely) that the problem is
the order of events...
int main( int argc, char** argv ) {
Fl_Window* second = SecondTry( 350,50);
if ( argc 1 ) second-size(800,600);
second-show();
If argc is 1 then size() is called before the second window is
I suspect (i.e. I haven't looked all that closely) that the problem is
the order of events...
int main( int argc, char** argv ) {
Fl_Window* second =3D SecondTry( 350,50);
if ( argc 1 ) second-size(800,600);
second-show();
If argc is 1 then size() is called before the second
I suspect (i.e. I haven't looked all that closely) that the
problem is
the order of events...
int main( int argc, char** argv ) {
Fl_Window* second =3D SecondTry( 350,50);
if ( argc 1 ) second-size(800,600);
second-show();
If argc is 1 then size() is called before
Huh?
OK, I just tested, and it does work - but they window has to be
mapped first, so simply calling show() on it is not enough, the
window actually has to have been drawn...
Ok. My fault, I misunderstood mapped.
I have done size() after show() but without a pause.
I though show was
On 12.12.2011 17:36, MacArthur, Ian (SELEX GALILEO, UK) wrote:
OK, I just tested, and it does work - but they window has to be mapped
first, so simply calling show() on it is not enough, the window actually
has to have been drawn...
Yep, that's one of the problems with Fl_Pack I discussed
[...]
// resize the window programaticaly, after it is mapped
else if (argc == 1)
{
Fl::check();
Fl::check();
second-size(900,700);
}
I believe that I tested it, but I deleted it before finishing this
posting.
It works fine.
Anyway, I agree with Ian that using
On 12.12.2011 20:15, David FLEURY wrote:
[...]
// resize the window programaticaly, after it is mapped
else if (argc == 1)
{
Fl::check();
Fl::check();
second-size(900,700);
}
I believe that I tested it, but I deleted it before finishing this
posting.
It
[...]
It's easy to do spacing with a minimal subroutine to save current
positions, add some pixels, or do anything you like.
I though that was the goal of Fl_Pack here.
But ok.
Don't write
coordinates literally - that *will* become a nightmare if you want
to add widgets later. Did you
[...]
It's easy to do spacing with a minimal subroutine to save current
positions, add some pixels, or do anything you like.
Here my 10 minutes attemp before sleep...
You were right quite easy. I will try to make one that can be use nested.
Thanks.
#include FL/Fl.H
#include
Thought I'd join in; does this use of Fl_Pack help?
For demo purposes, I changed the first two buttons to
change the size() of the window.
This maybe can avoid having a custom packer, lets you use
Fl_Pack to organize the buttons, and lets you resize the
11 matches
Mail list logo