|
From: Joe E. <jen...@fl...> - 2005-07-27 21:13:37
|
Damon Courtney wrote: > [...] > Of course, I'm not exactly sure how to name that dialog. > > MessageDlg .m -type yesnonotallyestoallcancel > > Just doesn't seem like the right thing to do. 0-] > Great googly moogly no, that wouldn't be right at all :-) I think the approach taken by [ttk::dialog] is pretty close -- it's not *exactly* the right thing (I don't like the -labels option much), but it's close. In particular, taking an open-ended list of -buttons, and making '-type' a shorthand/compatibility feature that specifies a predefined set of other option/value pairs seems to me like a pretty good way of doing things. Take a look at the the (undocumented) ttk::dialog::stockButton and ttk::dialog::stockDialog procedures for ideas -- and if you can improve on them, let me know :-) --Joe English jen...@fl... |