On 22 mar, 22:42, Eric <[email protected]> wrote:
> Is there any reasonable way to determine the user's OS (independent of
> the browser's user agent setting)? I just realized that every version
> of WIndows shows dialog boxes with the OK button to the left of the
> Cancel button (in ltr locales, of course). The Macintosh OS use the
> opposite convention: Cancel is left of OK.  I've never used Apple
> Safari on a Windows box, so I don't know whether it works like Windows
> or like Macs.
>
> If I could find this out, then I could decide how to fill my dialog
> boxes based on the natural tendency of the OS. However, I fear this
> information is not part of the user agent setting.

Have you tried: Window.Navigator? its getPlatform() method might prove
useful, otherwise getUserAgent()... You'd either use it in your code
an generate new permutations with a <define-property> and its
associated <property-provider>
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/Window.Navigator.html#getPlatform()
See http://code.google.com/p/doctype/wiki/NavigatorPlatformProperty
(make sure you follow the MSDN link too)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to