Lisp HUG Maillist Archive

capi:popup-confirmer question

hi,

I'm using popup-confirmer like this:

   (popup-confirmer
     (make-instance 'password-pane)
     "You have been inactive for a while, please enter your password:"))

This works fine, except that the behaviour isn't quite as I want it
in my linux and mac versions:

 - in the windows version, typing <return> after the password will submit
   (e.g. is equivalent to clicking OK)
 - in the mac version, typing <return> *twice* will submit
 - in the linux version, one has to click the ok button.

I have solved similar problems before by adding a :callback to the input
pane, but that sort of breaks the simplicity of using popup-confirmer.

Any suggestions?

- Ah, and a similar problem:

  I have forms with multiple text input panes as well. In the linux version,
  navigating with <tab> between the input panes doesn't work out-of-the-
  box, I have to supply :completion-functions, like:

                 :completion-function 
                 (lambda(pane text)
                   (set-pane-focus (next-input-pane
                                    (top-level-interface pane)
                                    slot search-p))
                   text)

  (where next-input-pane is my own gf).

(I'm using LWL 4.2.7 and OpenMotif 2.1 on debian)
-- 
  (espen)


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________

Re: capi:popup-confirmer question

Unable to parse email body. Email id is 1252

Re: capi:popup-confirmer question

David Fox <davef@xanalys.com> writes:

> This should give you equivalent behavior on all platforms:
> 
> (popup-confirmer
>  (make-instance 'password-pane :callback 'exit-confirmer)
>  "You have been inactive for a while, please enter your password:"))

thanks!

> Does Tab move the focus (instead of doing completion) if you turn off
> the completion gesture in your application's X resources (look for
> "Tab" in app-defaults/Lispworks)?
> 
> Also note that Ctrl+Tab moves the focus in the X/Motif GUI.

Of course. Silly me.
-- 
  (espen)


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________

Updated at: 2020-12-10 08:59 UTC