EAGLE Help

dlgReset()


Function
Resets all dialog objects to their initial values.

Syntax
void dlgReset(void);

Description
The dlgReset function copies the initial values back into all dialog objects of the current dlgDialog.

Any changes the user has made to the dialog values will be discarded.

Calling dlgReject() implies a call to dlgReset().

See also dlgReject, dlgDialog, A Complete Example

Example

int Number = 1;
int Result = dlgDialog("Test") {
               dlgIntEdit(Number);
               dlgPushButton("+OK")    dlgAccept(42);
               dlgPushButton("Cancel") dlgReject();
               dlgPushButton("Reset")  dlgReset();
               };

Index Copyright © 2005 CadSoft Computer GmbH