BBjEditBox::isPasswordVisible

Description

In BBj 18.00 and higher, this returns whether the password in this password-style BBjEditBox is visible.

Syntax

Return Value

Method

boolean

isPasswordVisible()

Parameters

None.

Return Value

Returns whether the password in this password-style BBjEditBox is visible (false = not visible (shows platform-defined fill characters, the default), true = visible).

Remarks

This method is only available on password-style BBjEditBox controls. By default, the password in a password-style BBjEditBox is not visible; it shows platform-defined fill characters (e.g. '*' or '•').

Example

rem ' BBjEditBox::isPasswordVisible

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,300,150,"isPasswordVisible",$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
window!.addStaticText(101,5,30,65,25,"Password:",$8000$)
password! = window!.addEditBox(102,75,25,200,25,"xyzzy",$0400$)
visible! = window!.addCheckBox(103,75,75,200,25,"setPasswordVisible",$$)
visible!.setCallback(visible!.ON_CHECK_ON,"visible")
visible!.setCallback(visible!.ON_CHECK_OFF,"invisible")
process_events

eoj:
release

visible:
    password!.setPasswordVisible(1)
    print "isPasswordVisible? ",password!.isPasswordVisible()
return

invisible:
    password!.setPasswordVisible(0)
    print "isPasswordVisible? ",password!.isPasswordVisible()
return

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

BBjEditBox::setPasswordVisible

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.