Re: More points for the technical discussion

Glynn Clements <[email protected]>
Newsgroups gmane.comp.lang.haskell.gui
Message-ID <[email protected]>
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 <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.