NextPrevUpTopContentsIndex

password-pane

Class
Summary

The password pane is a pane designed for entering passwords, such that when the password is entered it is not visible on the screen.

Package

capi

Superclasses

text-input-pane

Initargs

:overwrite-character

A base-char .

Readers

password-pane-overwrite-character

Description

The password pane inherits most of its functionality from text-input-pane. It starts with the initial text and caret position specified by the arguments text and caret-position respectively, and limits the number of characters entered with the max-characters argument (which defaults to nil , meaning there is no maximum).

The password pane can be enabled and disabled with the text-input-pane accessor text-input-pane-enabled .

overwrite-character is a base-char which is the character to display instead of the real characters. The default value of overwrite-character is #\*.

Examples
(setq password-pane (capi:contain
                     (make-instance
                      'capi:password-pane
                      :callback 
                      #'(lambda (password interface)
                                (capi:display-message
                                "Password: ~A"
                                password)))))
(capi:text-input-pane-text password-pane)
(setq password-pane
      (capi:contain 
       (make-instance 'capi:password-pane
                      :max-characters 5
                      :text "abc"
                      :overwrite-character #\$)))
(capi:password-pane-overwrite-character password-pane2)
See also

editor-pane
text-input-pane


LispWorks CAPI Reference Manual - 25 Jul 2006

NextPrevUpTopContentsIndex