set dialog [toplevel $parent -class Dialog]
wm transient $dialog $owner
catch {wm attributes $dialog -type dialog}Note that if you need a messagebox then you should use tk_messageBox which will use the native messagebox dialogs on windows and MacOSX.For quick and dirty (and ugly) general purpose dialogs see the tk_dialog command.There are some built-in dialogs which may defer to system native equivalents where available. See:
incr Widgets also has a dialog command - see the docs at http://incrtcl.sourceforge.net/iwidgets/iwidgets/dialog.html and http://purl.org/tcl/home/man/iwidgets3.0/dialog.n.html .LV When using wish, there are at times errors reported in what I presume are dialog boxes. When these boxes appear, the user is unable to copy and paste the information about the error into another file. Is there anything which a developer can do in these cases to make the error reporting better?
See also A file properties dialog and "The Humble Dialog Box" [1].
A little value dialog
Another little value dialog
An option dialog
See also the dialog in the tklib widget package. [2]
[bugant] tk-goodies provides a nice dialogs package and they look more cleaner and beauty than the tk_dialog ones. For more info, screenshot and download visit tk-goodies website [3]

