FLTK logo

Re: [fltk/fltk] Tooltip causing Window to "unfocus" on Windows (#261)

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.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Tooltip causing Window to "unfocus" on Windows (#261) Webb Hinton Jul 27, 2021  
 

I'm guessing what's going has something to do with the tooltip being "outside of" the window. Putting a window inside of a window does not cause a new window to show up in the taskbar, or cause the unfocusing effect.

Simple example in rust:

fn main(){
    let app = App::default();
    let mut win = Window::new(200, 200, 500, 300, "Event Trickle");
    let win2 = Window::new(100,50, 200, 200, "WINDOW IN WINDOW");
    let mut button= Button::new(0,0,250,200,"button in window 2");
    button.set_color(Color::Red);
    win2.end();
    win.end();
    win.show();
    app.run().unwrap();
}

I think for a design perspective however, this "window in a window" approach might not be great because our tooltip will be clipped off at the boundaries of the parent window.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

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'.