01.09.2014 Views

WM Basic™ User's Manual - Classes

WM Basic™ User's Manual - Classes

WM Basic™ User's Manual - Classes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

182 Working Model Basic <strong>User's</strong> <strong>Manual</strong><br />

DlgVisible (function)<br />

Syntax<br />

Description<br />

Example<br />

See Also<br />

Platform(s)<br />

DlgVisible(ControlName$ | ControlIndex)<br />

Returns True if the specified control is visible; returns False otherwise.<br />

The ControlName$ parameter contains the name of the .Identifier parameter<br />

associated with a control in the dialog box template. Alternatively, by<br />

specifying the ControlIndex parameter, a control can be referred to using its<br />

index in the template (0 is the first control in the template, 1 is the second, and<br />

so on).<br />

A runtime error is generated if DlgVisible is called with no user dialog is<br />

active.<br />

If DlgVisible("Portrait") Then Beep<br />

If DlgVisible(10) And DlgVisible(12) Then<br />

MsgBox "The 10th and 12th controls are visible."<br />

End If<br />

DlgControl (statement); DlgEnable (function); DlgEnable (statement);<br />

DlgFocus (function); DlgFocus (statement); DlgListBoxArray (function);<br />

DlgListBoxArray (statement); DlgSetPicture (statement); DlgText<br />

(statement); DlgText (function); DlgValue (function); DlgValue (statement);<br />

DlgVisible (function).<br />

Windows and Macintosh.<br />

DlgVisible (statement)<br />

Syntax<br />

Description<br />

Comments<br />

DlgVisible {ControlName$ | ControlIndex} [,isOn]<br />

Hides or shows the specified control.<br />

Hidden controls cannot be seen in the dialog box and cannot receive the focus<br />

using Tab.<br />

The isOn parameter is an Integer specifying the new state of the control. It<br />

can be any of the following values:<br />

1 The control is shown.<br />

0 The control is hidden.<br />

Omitted<br />

Toggles the visibility of the control.<br />

Option buttons can be manipulated individually (by specifying an individual<br />

option button) or as a group (by specifying the name of the option group).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!