BBjEditBox::setPasswordVisible

Description

In BBj 18.0 and higher, this method sets whether the password in this password-style BBjEditBox is visible.

Syntax

Return Value

Method

void

setPasswordVisible(boolean visible)

Parameters

Variable

Description

visible

Specifies whether the password in this password-style BBjEditBox is visible.

 

false(0) = Not visible (shows platform-defined fill characters, the default)

true (1) = Visible

Return Value

None.

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::setPasswordVisible
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,300,150,"setPasswordVisible",$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::isPasswordVisible

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