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 Greg Ercolano Oct 06, 2022  
 



On Friday, October 7, 2022 at 11:57:12 AM UTC+11 roger tunnicliffe wrote:
Thanks for your effort  (not sure your name)
I think you will struggle without the copy files so here they are..

    Yes, mainly I needed the definition of menu_items.
    I was able to strip out all the other stuff and just use fake values.

    Since the issue seems to be focused on the "account no" widget(s)
    not displaying properly, I focused on those.

    Hmm, it looks like there's two widgets.. a spinner and an output widget,
    but based on their x,y positions.. they're in the same position?

           win2_accountNo          = new Fl_Spinner(x+50,y+25,60,20,"Account No...:");
           win2_accountNoX         = new  Fl_Output(x+50,y+25,46,20);

    Widgets really shouldn't overlap unless for sure one is set to hide()
    while the other is set to show(). But I think both are being shown
    at the same time, which would surely lead to drawing problems.

    Note that deactivate() and hide() are not the same things;
    deactivate() just "grays out" the widget and makes it ignore events
    such as clicks and keyboard input, whereas hide() makes the widget
    not draw at all, and is not involved in event handling at all.

--
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/da420070-c860-12b2-4017-4cbf0e3ce5d1%40seriss.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'.