[GUI] More points for the technical discussion

Glynn Clements glynn.clements@virgin.net
Sun, 16 Feb 2003 20:58:05 +0000

Nick Name wrote:

> >  Apple expressly forbids "Yes" and "No" as button labels - they 
> >  recommend using verbs ("Don't Save" - "Cancel" - "Save") instead.
> >  Might be too much work to bridge these differences, but who knows?
> > 
> dialogYesNoCancel verb otherArguments = ...
> on windows it would display verb in the titlebar and yes no cancel
> buttons, on osx and kde environments (yes, kde3 also has verbose dialog
> buttons) it would display "don't "++verb, verb, cancel.

User-visible text doesn't belong in the source code. On Windows, the
label text normally lives in the resource (.rc) file; with Xt-based
toolkits (Athena, Motif), it belongs in the app-defaults file.

Generally, you only set widget properties programmatically if you have
to (i.e. because the values are determined dynamically).

Glynn Clements <glynn.clements@virgin.net>