12-19-2024, 02:18 PM
(12-19-2024, 12:40 PM)Ofnuts Wrote: No to both if you are using the auto-generated UI. You can write your own dialog (especially here since you don't need the Gimp widgets) but it is somewhat more complicated. Then you can make it look like you want and perform the checks you want (typically, you disable the OK button as long as you haven't got everything filled correctly).
Otherwise my usual way to deal with the situation is to initialize the fields with sensible defaults and if they are empty (which requires some user effort) to reuse the defaults. Nice UIs are fine, but in such scripts handling the UI quickly becomes the most important part of the code.
Ofnuts,
Thanks for the reply.
David.