1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
<html>
<head>
<title>EAGLE Help: dlgRedisplay()</title>
</head>
<body bgcolor=white>
<font face=Helvetica,Arial>
<hr>
<i>EAGLE Help</i>
<h1><center>dlgRedisplay()</center></h1>
<hr>
<dl>
<dt>
<b>Function</b>
<dd>
Redisplays the dialog after changing values.
<p>
<dt>
<b>Syntax</b>
<dd>
<tt>void dlgRedisplay(void);</tt>
<p>
<dt>
<b>Description</b>
<dd>
The <tt>dlgRedisplay</tt> function can be called to immediately refresh the
<a href=291.htm>dlgDialog</a> after changes have been made to the variables
used when defining the <a href=287.htm>dialog objects</a>.
<p>
You only need to call <tt>dlgRedisplay()</tt> if you want the dialog to be refreshed
while still executing program code. In the example below the status is changed
to "Running..." and <tt>dlgRedisplay()</tt> has to be called to make this change
take effect before the "program action" is performed. After the final status
change to "Finished." there is no need to call <tt>dlgRedisplay()</tt>, since
all dialog objects are automatically updated after leaving the statement.
<p>
</dl>
<b>See also</b> <a href=315.htm>dlgReset</a>,
<a href=291.htm>dlgDialog</a>,
<a href=318.htm>A Complete Example</a>
<p>
<b>Example</b>
<pre>
string Status = "Idle";
int Result = dlgDialog("Test") {
dlgLabel(Status, 1); // note the '1' to tell the label to be updated!
dlgPushButton("+OK") dlgAccept(42);
dlgPushButton("Cancel") dlgReject();
dlgPushButton("Run") {
Status = "Running...";
dlgRedisplay();
// some program action here...
Status = "Finished.";
}
};
</pre>
<hr>
<table width=100% cellspacing=0 border=0><tr><td align=left><font face=Helvetica,Arial>
<a href=index.htm>Index</a>
</font></td><td align=right><font face=Helvetica,Arial size=-1>
<i>Copyright © 2005 CadSoft Computer GmbH</i>
</font></td></tr></table>
<hr>
</font>
</body>
</html>
|