FLTK logo

Re: [fltk.general] Focus

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: Focus imm Mar 28, 2007  
 
On 28 Mar 2007, at 18:24, Millan wrote:

Then I'll check it again. I've deduced previous conclusion, that call to timeout function is crucial alone, by commenting out timeout function call and leaving only overridden "handle()" method in your program, and it didn't worked, but simply commenting out may not be the best way to test this.

Sorry, I think you may have misunderstood me: The example I posted only has a partial implementation of the handle method (just enough to cause the browser window to be closed when the main window exits) it does not implement all the functions you would need. I just wanted to indicate that it was a possible approach.

The "timeout" was simpler to do for a quick demo - but it lacks style, I think, and the "proper" thing to do would be to extend the handle method of your window (and probably of your input widget too) to handle the passing of focus as you require. The timeout approach is just a bit of a hack...!



What do you mean by STR?

Software Trouble Report: http://www.fltk.org/str.php



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