unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* help with customization widgets needed
@ 2005-10-01 20:40 Paul Pogonyshev
  0 siblings, 0 replies; only message in thread
From: Paul Pogonyshev @ 2005-10-01 20:40 UTC (permalink / raw)


Hello,

I need some help.  I need a customization widget which allows input of login
data for multiple accounts.  Basically, it looks like this:

[INS] [DEL] Language domain: [Value Menu] English (en)
            User name: [___________________]
            Password: [___________________]
[INS]

Each accounts is associated with a language domain, but not each language
domain may have a proper account.  I created a custom widget type like this:

(define-widget 'wikipedia-login-data 'lazy
  "Login data for a Wikipedia user."
  :type (eval-when-compile
	  `(alist
	    :key-type (choice :tag "Language domain"
			      ,@wikipedia-language-domains-for-customization)
	    :value-type 
	    (group (string :tag "User name") (string :tag "Password")))))

Everything works perfectly, but there is one nit-pick.  When adding a new
account, it automatically selects the first language domain from the list
of choices.  I don't like this and would like to force a selection on the
user.  I.e. I would like it to display something like "Choose one", but of
course "Choose one" shouldn't show up in the selection menu.  Is it possible?

Also, is it possible to align the text fields with different label/tag
widths?  I.e. like this:

            A very long and elaborate label: [___________________]
            A short label:                   [___________________]

Paul

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-01 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-01 20:40 help with customization widgets needed Paul Pogonyshev

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).