wip: docs wip
This commit is contained in:
@@ -115,7 +115,7 @@
|
||||
|
||||
<h2>Overview</h2>
|
||||
<p>
|
||||
The dialogs library provides the following system dialogs across apps:
|
||||
The dialogs library (at 0:/os/libdialogs.lib) provides the following system dialogs across apps:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
@@ -127,7 +127,7 @@ The dialogs library provides the following system dialogs across apps:
|
||||
|
||||
<h2>Message Box</h2>
|
||||
<p>
|
||||
<code>message_box</code> displays a popup window with text and buttons.
|
||||
<i>message_box</i> displays a popup window with text and buttons.
|
||||
</p>
|
||||
|
||||
<pre><code>gui::dialogs::MessageBoxResult message_box(
|
||||
@@ -140,20 +140,20 @@ The dialogs library provides the following system dialogs across apps:
|
||||
<h3>Button Sets</h3>
|
||||
<table>
|
||||
<tr><th>Value</th><th>Buttons</th></tr>
|
||||
<tr><td><code>MESSAGE_BOX_OK</code></td><td>OK</td></tr>
|
||||
<tr><td><code>MESSAGE_BOX_OK_CANCEL</code></td><td>OK, Cancel</td></tr>
|
||||
<tr><td><code>MESSAGE_BOX_YES_NO</code></td><td>Yes, No</td></tr>
|
||||
<tr><td><code>MESSAGE_BOX_YES_NO_CANCEL</code></td><td>Yes, No, Cancel</td></tr>
|
||||
<tr><td>MESSAGE_BOX_OK</td><td>OK</td></tr>
|
||||
<tr><td>MESSAGE_BOX_OK_CANCEL</td><td>OK, Cancel</td></tr>
|
||||
<tr><td>MESSAGE_BOX_YES_NO</td><td>Yes, No</td></tr>
|
||||
<tr><td>MESSAGE_BOX_YES_NO_CANCEL</td><td>Yes, No, Cancel</td></tr>
|
||||
</table>
|
||||
|
||||
<h3>Results</h3>
|
||||
<table>
|
||||
<tr><th>Value</th><th>Meaning</th></tr>
|
||||
<tr><td><code>MESSAGE_BOX_RESULT_OK</code></td><td>The user selected OK.</td></tr>
|
||||
<tr><td><code>MESSAGE_BOX_RESULT_CANCEL</code></td><td>The user selected Cancel or closed a cancelable dialog.</td></tr>
|
||||
<tr><td><code>MESSAGE_BOX_RESULT_YES</code></td><td>The user selected Yes.</td></tr>
|
||||
<tr><td><code>MESSAGE_BOX_RESULT_NO</code></td><td>The user selected No, or closed a Yes/No dialog.</td></tr>
|
||||
<tr><td><code>MESSAGE_BOX_RESULT_NONE</code></td><td>The dialog could not be loaded or invoked.</td></tr>
|
||||
<tr><td>MESSAGE_BOX_RESULT_OK</td><td>The user selected OK.</td></tr>
|
||||
<tr><td>MESSAGE_BOX_RESULT_CANCEL</td><td>The user selected Cancel or closed a cancelable dialog.</td></tr>
|
||||
<tr><td>MESSAGE_BOX_RESULT_YES</td><td>The user selected Yes.</td></tr>
|
||||
<tr><td>MESSAGE_BOX_RESULT_NO</td><td>The user selected No, or closed a Yes/No dialog.</td></tr>
|
||||
<tr><td>MESSAGE_BOX_RESULT_NONE</td><td>The dialog could not be loaded or invoked.</td></tr>
|
||||
</table>
|
||||
|
||||
<h3>Example</h3>
|
||||
@@ -172,7 +172,7 @@ void show_confirm() {
|
||||
|
||||
<div class="figure">
|
||||
<img src="assets/discard_dialog.png" width="337" height="181" alt="Message box asking whether to discard unsaved changes">
|
||||
<p>Example <code>MESSAGE_BOX_YES_NO_CANCEL</code> dialog.</p>
|
||||
<p>Example <i>MESSAGE_BOX_YES_NO_CANCEL</i> dialog.</p>
|
||||
</div>
|
||||
|
||||
<h2>File Dialogs</h2>
|
||||
@@ -256,7 +256,7 @@ bool print_file(
|
||||
<pre><code>#include <gui/dialogs.hpp></code></pre><br>
|
||||
|
||||
<hr>
|
||||
<p class="center">Copyright © 2026 Montauk Operating System. All rights reserved.<br><br>Page last revised 22 April 2026.</p>
|
||||
<p class="center">Copyright © 2026 Montauk Operating System. All rights reserved.<br><br>Page last revised 26 May 2026.</p>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user