Re: Where is this found in documentation "setWindowBackColor( ToolWin, getSysColor(COLOR_DESKTOP) )"

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
Selgor said...

Selgor here

I am wondering just where in Win32Lib documentation

that I might find such things as

getSysColor(COLOR_DESKTOP)

I am aware of the setBackColor

"such things" being system commands, functions ??

In anticipation.

Cheers Selgor..

  • Open index.htm in the DOCS folder.
  • Click on the "Index" link
  • Scroll down to "getSysColor"
  • Click the "getSysColor" link

And I found ...

[func] 
getSysColor ( window, color ) 
Return atom with value of a system color. 
Returns: ATOM:Returns the RGB value of the specified system color. 
Category: System Attributes 
 
 
The system colors in Windows are listed here.  
 
COLOR_SCROLLBAR  
COLOR_BACKGROUND  
COLOR_DESKTOP  
COLOR_ACTIVECAPTION  
COLOR_INACTIVECAPTION  
COLOR_MENU  
COLOR_WINDOW  
COLOR_WINDOWFRAME  
COLOR_MENUTEXT  
COLOR_WINDOWTEXT  
COLOR_CAPTIONTEXT  
COLOR_ACTIVEBORDER  
COLOR_INACTIVEBORDER  
COLOR_APPWORKSPACE  
COLOR_HIGHLIGHT  
COLOR_HIGHLIGHTTEXT  
COLOR_BTNFACE  
COLOR_BTNSHADOW  
COLOR_GRAYTEXT  
COLOR_BTNTEXT  
COLOR_INACTIVECAPTIONTEXT  
COLOR_BTNHIGHLIGHT  
COLOR_3DDKSHADOW  
COLOR_3DLIGHT  
COLOR_INFOTEXT  
COLOR_INFOBK  
COLOR_HOTLIGHT  
COLOR_GRADIENTACTIVECAPTION  
COLOR_GRADIENTINACTIVECAPTION  
COLOR_MENUHILIGHT  
COLOR_MENUBAR  
 
Example:  
 
          -- Set the window to the button color 
           setWindowBackColor( MyWindow, getSysColor( COLOR_BTNFACE ) ) 


I didn't think that was two hard to find.


Well that was only 4 simple steps, so I would agree, that wasn't really very hard FOUR anyone to find! smile

Dan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu