Skip to content

Commit

Permalink
Update Dialogs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef authored Feb 27, 2024
1 parent ffef23e commit 6d42fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dialogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ This shows a message at a default location (basically near the pointer). If you
});
```

All the previously mentioned functions have to variants, one with _default() suffix which doesn't require coordinates, and the other without which requires coordinates.
All the previously mentioned functions have 2 variants, one with _default() suffix which doesn't require coordinates, and the other without which requires coordinates.
Some dialogs return a value, like choice, input, and password. Input and password return the inputted text, while choice returns an index of the chosen value:
```rust
use fltk::{prelude::*, *};
Expand Down Expand Up @@ -416,4 +416,4 @@ but.set_callback(|widget| {
}
});
```
Here it's just printing the button's image and specifying where it shows on the paper. You can pass any widget (mostly like a TextEditor widget) as the printed widget.
Here it's just printing the button's image and specifying where it shows on the paper. You can pass any widget (mostly like a TextEditor widget) as the printed widget.

0 comments on commit 6d42fe8

Please # to comment.