FLTK logo

Re: [fltk.general] Re: How do I do this properly

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: How do I do this properly roger tunnicliffe Oct 06, 2022  
  Thanks for your effort  (not sure your name)
I think you will strungle without the copy files so here they are..
Thanks again
Roger


On Friday, October 7, 2022 at 11:21:54 AM UTC+11 er...@seriss.com wrote:


On 10/6/22 15:04, roger tunnicliffe wrote:
Thx for the replies people.

I've checked and I don't believe I have done this wrong:-
        * Child widgets are created outside their parent's xywh boundaries

    I'm working on reducing your app so it'll compile without the .cpy stuff.
    You do have to watch out for things like this:

                win2_tabs         = new  Fl_Tabs(x,y+25,x+400,y+200);
                        win2_grp1 = new Fl_Group(x,y+50,x+400,y+200,"Transaction");

    If you look closely, you'll see that the win_grp1's height is too large
    for the parent; its 'y' position is 25 pixels lower than the parent, but the
    height is the same, which means it'll extend 25 pixels beyond the bottom
    of the parent win2_tabs.

    To fix the above you'd use instead:

                win2_tabs         = new  Fl_Tabs(x,y+25,x+400,y+200);
                        win2_grp1 = new Fl_Group(x,y+50,x+400,y+200-25,"Transaction");

    I haven't checked the code yet, still working on reducing the code
    to just the GUI code, so it'll build.

--
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/5febfc71-b19c-4cdf-9f35-fe987e23dbd5n%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'.