Detect System colors and Fonts

Source: Internet
Author: User
Tip: The following example shows how to obtain the user's window color.

Your settings Use name Description
Activeborder Border of the activity window
Activecaption Activity title bar
Appworkspace ApplicationProgramBackground
Background Desktop
Buttonface Button Surface
Buttonhighlight Button highlight
Buttonshadow Button shadow
Buttontext Button font
Captiontext Title Font
Graytext Gray text
Highlight Select status background
Highlighttext Select status font
Inactiveborder Inactive window border
Inactivecaption Inactive window title
Inactivecaptiontext Inactive window title Font
Infobackground Background
Infotext Prompt font
Menu Menu background color
Menutext Menu font
Scrollbar Scroll bar background color
Threeddarkshadow Dark color of stereo object
Threedface Surface of a three-dimensional object
Threedhighlight Highlights of stereoscopic objects
Threedlightshadow Highlights of a stereo object
Threedshadow Shadow of a three-dimensional object
Window Background of the window
Windowframe Window framework
Windowtext Window Font

Tip: The following example shows how to obtain the font of the user window.

Font Name Description
No value Default font
Caption Title Font
Icon Font below the icon
Menu Menu font
MessageBox Font of the dialog box
Smallcaption Prompt font
Statusbar Font of the status bar

easy to use: Style = "Background: Name", for example, the background color of the text box shows the color of the window frame.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.