FLTK logo

Re: [fltk.general] Can't set focus on child widget in Fl_Tabs

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: Can't set focus on child widget in Fl_Tabs matthiasm May 21, 2006  
 

On May 21, 2006, at 11:29 PM, William Knight wrote:

I've created a tabbed dialog using fluid and I want to set the focus on an Fl_Input widget when the dialog is shown. But the focus is always set to the 'Ok' button instead.

Make sure that the correct Tab is visible initially (Fl_Tab->value (myGroup)), then call Fl::focus(myTextWidget). A good time to do this is right after "show()"

http://www.fltk.org/documentation.php/doc-1.1/Fl.html#Fl.focus

----
http://robowerk.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'.