Be the first to rate this file! 221 downloads (last 30 days) File Size: 4.47 KB File ID: #3326

GETSYSCOL.m

by Richard Medlock

 

24 Apr 2003 (Updated 28 Apr 2003)

No BSD License  

Returns a list of all available system colours.

Download Now | Watch this File

File Information
Description

GetSysCol(format,color)

GETSYSCOL

Returns a structure containing all the default system colors.

GETSYSCOL('matlab') - default
       Returns colors in the standard matlab color format 0-1.

GETSYSCOL('rgb') - not case sensitive
       Returns colors as individual RGB values using the range 0-255.

GETSYSCOL(format,color)
       Returns the specified color from the list below in the specified
       format ('matlab' or 'rgb')

 Colors returned by this function:

ActiveBorder, HotTrackingColor,
ActiveTitle, InactiveBorder
AppWorkSpace, InactiveTitle
Background, InactiveTitleText
ButtonAlternateFace, InfoText
ButtonDkShadow, InfoWindow
ButtonFace, Menu
ButtonHilight, MenuBar
ButtonLight, MenuHilight
ButtonShadow, MenuText
ButtonText, Scrollbar
GradientActiveTitle, TitleText
GradientInactiveTitle, Window
GrayText, WindowFrame
Hilight, WindowText
HilightText

Only works on windows platform.

MATLAB release MATLAB 6.5 (R13)
Other requirements Tested on Windows XP Professional, may not work on other versions.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
28 Apr 2003

Just modified the description so you can read the color names a bit better.

Tag Activity for this File
Tag Applied By Date/Time
system Richard Medlock 22 Oct 2008 07:00:20
colors Richard Medlock 22 Oct 2008 07:00:20
colours Richard Medlock 22 Oct 2008 07:00:20
ui Richard Medlock 22 Oct 2008 07:00:20
controls Richard Medlock 22 Oct 2008 07:00:20
background Richard Medlock 22 Oct 2008 07:00:20
foreground Richard Medlock 22 Oct 2008 07:00:20
windows Richard Medlock 22 Oct 2008 07:00:20
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com