SU Menu Font and Size
-
How to find out the font used by SU menus? I want to use the same in a WebDialog for consistency.
-
Query the system for the font settings. Somewhere in the registry.
-
HKEY_CURRENT_USER\Control Panel ?
-
Never mind all that. I just remembered, since it's for webdialogs - there is CSS keywords for this: http://www.w3.org/TR/CSS2/fonts.html#font-shorthand
You even got a list of system colours: http://www.w3.org/TR/CSS21/ui.html#system-colors
-
Ah!
body { font; menu; }
seems to work. Is it portable?
-
Think so. It's part of the W3C standard - think it work across platforms. Though I've never used these keywords outside pure Windows environment so I don't know how well the support is. Will need to do some testing. I got an OSX and Linux box...
-
@thomthom said:
Will need to do some testing. I got an OSX and Linux box...
Here's a test page for the SystemColors:
http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/colors/sys_colors.htm
Advertisement