30.04.2013 Views

wIntegrate 6.2.0: Host Subroutines Reference - Rocket Software

wIntegrate 6.2.0: Host Subroutines Reference - Rocket Software

wIntegrate 6.2.0: Host Subroutines Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

WIN.DBCHECK<br />

Syntax<br />

WIN.DBCHECK ( DBX, NAME, TEXT, X, Y, W, D )<br />

Description<br />

WIN.DBCHECK<br />

This subroutine adds a square check box to a dialog box. A check box can be turned<br />

on or off. When a check box is turned on, it displays an "x", when it is turned off, it is<br />

empty.<br />

Note: When you want the user to be able to select more than one of several options,<br />

use radio buttons in a group box.<br />

Parameters<br />

The following table describes the parameters of the WIN.DBCHECK command:<br />

Parameter Description<br />

DBX This is the <strong>wIntegrate</strong> "handle" for a dialog box.<br />

NAME Specifies the checkbox name.<br />

TEXT Specifies the text for the check box caption.<br />

X Specifies the check box column position.<br />

Y Specifies the check box position.<br />

W Defines the check box width. The default width is<br />

40<br />

D Defines the check box depth. The default is 14.<br />

Example<br />

The following example as part of the WIN.DBDEMO program. Run this program<br />

from your database prompt<br />

CALL WIN.DBNEW(DBX, DLG.NAME, "Demonstration of Dialog boxes",<br />

10,10,200,160, '','')<br />

*<br />

CALL WIN.DBLABEL(DBX,"Label 1",4,4,'','','')<br />

50 <strong>Host</strong> <strong>Subroutines</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!