Re: [9fans] libcontrol focus question

2007-11-28 Thread Federico G. Benavento
> Can one explicitly determine which Control in a set has focus? > Anthony try this and tell me how it goes :) clicktotype = 1; _ctlprint(cs->focus, "focus 0"); cs->focus = control;/* I want the focus on this control! */ _ctlprint(cs->f

[9fans] libcontrol focus question

2007-11-28 Thread Anthony Sorace
In my first experiment with control(2), I'm trying to get fgui to give the first entry box focus when the window is created (since in better than 90% of my cases, all that's needed is a password). I've tried a few methods, all of which basically boil down to: chanprint(cs->ctl, "%s focus 1