IonicWind Software

Creative Basic => GUI Programs => Topic started by: GWS on September 22, 2007, 03:08:16 PM

Title: Color Selection - Snarling Sheep Colors
Post by: GWS on September 22, 2007, 03:08:16 PM
This is a clever program by Snarling Sheep which allows any color from the desktop to be selected in RGB, Hexadecimal, or Decimal values.  You can also set up any color you require by using the slider controls.

I've made one slight change to it, to set the Hex color display to BBGGRR format.

best wishes, :)

Graham
Title: Re: Color Selection - Snarling Sheep Colors
Post by: SnarlingSheep on September 23, 2007, 06:26:40 PM
Wow.. I forgot about that, lol.
Thanks for posting it :)
Title: Re: Color Selection - Snarling Sheep Colors
Post by: pistol350 on September 24, 2007, 04:48:12 AM
That one was and still is great.

Cheers,
Peter
Title: Re: Color Selection - Snarling Sheep Colors
Post by: Hobo on September 08, 2008, 03:14:43 PM
Would you tell me what part of your program tells the window to stay on top of all?

Thanks,

Hobo
Title: Re: Color Selection - Snarling Sheep Colors
Post by: aurelCB on September 08, 2008, 11:38:51 PM
Very good GWS ;)
Title: Re: Color Selection - Snarling Sheep Colors
Post by: SnarlingSheep on September 09, 2008, 06:46:52 AM
Quote from: Hobo on September 08, 2008, 03:14:43 PM
Would you tell me what part of your program tells the window to stay on top of all?
With the API Function 'SetWindowPos':
Declare it with:

DECLARE "user32.dll",SetWindowPos(hwnd:INT,hWndInsertAfter:INT,x:INT,y:INT,cx:INT,cy:INT,wFlags:INT),INT


Then I used it like:

'Set main window ontop
SetWindowPos(w1,-1, 0, 0, 0, 0,0x1|0x2)

The 2nd Param, -1 is the constant for HWND_TOPMOST
0x1|0x2 at the end is how you put together the Flags: SWP_NOSIZE and SWP_NOMOVE, so you don't change the placement or size of your window, just the Z-Order.
The rest are 0's for the placement and size.
Title: Re: Color Selection - Snarling Sheep Colors
Post by: Hobo on September 09, 2008, 09:34:55 AM
Thank you, that worked beautifully.
BTW, the Color Selection program is a great tool to have to get the proper code for the proper color.  :)

Thanks again,

Hobo