EAGLE Help Light

dlgReset()

Funkce
Resets all dialog objects to their initial values.

Zápis
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().

Viz také dlgReject, dlgDialog, A Complete Example

Příklad


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


OBSAH Translation © 2001 ELCAD v.o.s., Copyright © 2001 CadSoft Computer GmbH