May 08, 2024, 12:05:36 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Color Selection - Snarling Sheep Colors

Started by GWS, September 22, 2007, 03:08:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GWS

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
Tomorrow may be too late ..

SnarlingSheep

Wow.. I forgot about that, lol.
Thanks for posting it :)

pistol350

That one was and still is great.

Cheers,
Peter
Regards,

Peter B.

Hobo

Would you tell me what part of your program tells the window to stay on top of all?

Thanks,

Hobo


SnarlingSheep

September 09, 2008, 06:46:52 AM #5 Last Edit: September 09, 2008, 06:50:37 AM by SnarlingSheep
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.

Hobo

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