Hi Khaled,
It would be useful to have a condition to define that filling in the edit box is optional.
dialog name {
title "ChanServ"
size -1 -1 306 155
text "Enter the reason for the kick:", 2, 10 12 290 14
edit "", 3, 8 92 290 22, autohs
button "&OK", 4, 142 124 76 23, ok
button "&Cancel", 5, 223 124 76 23, cancel
}
edit "text", id, x y w h, style (left, right, center, multi, pass, read, return, hsbar, vsbar, autohs, autovs, limit N, rich)
For example add optional:
(left, right, center, multi, pass, read, return,
optional, hsbar, vsbar, autohs, autovs, limit N, rich)
This information appears in the edit box and disappears when text is added.
Example:
edit "", 3, 8 92 290 22, autohs optional
![[Linked Image from i.ibb.co]](https://i.ibb.co/G4kkfQfD/dialog.png)