From: "Anthony Sorace" <anothy@gmail.com>
To: 9fans@cse.psu.edu
Subject: [9fans] libcontrol focus question
Date: Thu, 29 Nov 2007 01:47:14 -0500 [thread overview]
Message-ID: <509071940711282247r406f619fwef5c8e85da4953f2@mail.gmail.com> (raw)
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", entry[i].val);
It seems like it should be possible to explicity tell a control that
it has focus, separate from the clicktotype flag, which I understand
to determine how the controlset normally decides to send those
messages. That's my reading of control(2)'s discussion of messages,
anyway.
It's entirely possible I'm missing something with the interaction
between direct updates to the Controls, activate, and
resizecontrolset, which is what I'm going to look at in the morning,
but it seems prudent to ask if this is even possible.
Can one explicitly determine which Control in a set has focus?
Anthony
next reply other threads:[~2007-11-29 6:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 6:47 Anthony Sorace [this message]
2007-11-29 7:02 ` Federico G. Benavento
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=509071940711282247r406f619fwef5c8e85da4953f2@mail.gmail.com \
--to=anothy@gmail.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).