IonicWind Software

IWBasic => GUI Central => Topic started by: Brian on July 18, 2019, 07:48:35 AM

Title: GetSysColors
Post by: Brian on July 18, 2019, 07:48:35 AM
Hello,

I was looking at GetSysColors, and trying to determine which colour I wanted. I thought it would be easiest to put them all together in one program

The MS API call GetSysColors(number) run from 0 to 30. If a call returns a value that is not usable, ie, GetSysColors(8), it returns 0, which is black, and still a valid RGB colour

Some values return the same colour. It was easier to put 0 to 30 in a loop, rather than sift out the values that don't do anything

No includes needed - should just compile as is

Brian

PS: Doesn't like 8 in parenths, it seems!