Client: mIRC v7.82.866 (beta)
OS: Windows 11 23H2 x64
![[Linked Image from i.ibb.co]](https://i.ibb.co/GvPLQzmz/mirc-dialog-ghost-text.png)
alias dtest { dialog -m dtest dtest | did -f dtest 3 }
dialog dtest {
title "Dialog ghost text"
icon $mircexe,0
option pixels
size -1 -1 306 160
edit "", 1, 8 12 290 60, multi optional "Enter some text here..."
edit "NOTE: If the value is empty, ghost text will be displayed.", 2, 8 81 290 18, disable
edit "Normal text", 3, 8 99 290 21, autohs optional "Ghost text..."
button "&OK", 4, 142 130 76 23, ok
button "&Cancel", 5, 223 130 76 23, cancel
}
Everything is almost good/perfect, except that when using custom ghost text, only the characters that were specified in quotes should be displayed, without modification. In this code example, I have specified a custom ghost text starting with a capital letter and without brackets, however, in the dialog box it displays with brackets and the first word starts with a lowercase letter.
So, it is assumed/expected that by default, when using the style
optional, the ghost text in the dialog box should be displayed as
(optional), and when adding custom text in quotes after the style, the text should be displayed in its original form, as the developer/designer of the script code wants to do, without additional brackets and in the specified letter case.