Help - Search - Members - Calendar
Full Version: Color Picker Panel Version 3.2
Desktop Sidebar Forums > Customizations > Panel Announcements
Pages: 1, 2, 3, 4, 5
Prism
Color Picker Panel for Desktop Sidebar

Version 3.2, released on February 27th, 2006.

DOWNLOAD (from the Extension Exchange)

Version 3.2 includes (February 27th, 2006):
  • This version was developed by kdam who fixed a bug in the details window which crashed DS when using the panel in builds 109+.

Version 3.1 includes (June 14th, 2005):Version 3.0 includes (April 25th, 2005):
  • Cross in the center of the zoom box, to indicate the mouse cursor.
  • Details window has a link to open the Windows' color chooser (thanks to KeithI smile.gif ).
  • Details window is auto-pinning.
  • Flickering is reduced.
  • Change the update frequency of the panel. Values are in milliseconds: 1000 ms = 1 second.
  • Memory optimization.
Version 2.3 includes:
  • Resizing of the zoom box - independent from the color box size.
  • Fixed a little problem with the installation - not something serious.
Version 2.2 includes:
  • Zooming, including change of the zooming rate.
  • Resizing of the color box.
  • Click on the state line changes the panel state from locked to unlocked and reversal.
Version 2 includes:
  • New rectangle with the color of the hovered pixel and the former selected color.
  • New display of locked / unlocked.
  • New Details Window with the last five selected colors.
  • Improved resource usage.
  • The panel saves its status and the last picked color.
  • Fixed a bug when moving a panel, the hotkeys stop functioning.
  • Panel adds fields also when it's locked.
You may need to restart your computer after installation. This is not very clear right now, and I'd like to hear reports about the installation.
Special thanks to antu^jamban, my beta-tester and main ideas-creator and GoMa and Keith who helped me alot with bug fixes.

IMPORTANT: If you upgrading from version 1.0 or 1.1 please restart DS and Windows after the panel installation, since a GDI leak has been discovered in the previous versions.

Version 1.5 new features:
  • Fixed a bug in the hot keys feature.
  • A new hot key (Win + C) for copying the panel content - similar to clicking on the panel.
Version 1.3 new features:
  • Details window is now updating together with the panel itself, as requested. Special thanks for GoMa for telling me how idiot I am. biggrin.gif
Version 1.2 new features:
  • Fixed a GDI objects leak, which causes very strange bugs in DS and Windows. Please, UDGRADE to the new version as soon as possible.
  • German translation has been added thanks to chrisskhc.
Version 1.1 new features:
  • Panel defines unique strings for translations - fix the conflict with How Long Until panel.
  • New panel format - 16-bit integer as requested.
Translators - pay attention! The new version changes some dslang values.

Panel features:
  • Shows RGB values of the pixel which your mouse is hovering on.
  • Shows Hexdecimal value (for HTML developers).
  • Shows the mouse coordinates.
  • Details window shows the RGB values, the hex value and a box which is covered with the selected color.
  • Pressing WinKey + Z will stop updating the panel. Pressing again will refresh it.
  • When clicking on the panel, RGB value or Hex value is copied to the clipboard (user can choose the RGB format).
  • Multilingual panel.
I want to thank mattisking for examining the panel and helping me.

Any suggestions, requests and feedbacks will be gladly accepted. smile.gif

Have fun!
marines
there is sth bad with this link, i.e. it doesn't work tongue.gif
Prism
Not my problem tongue.gif
Maybe Neil knows what the problem is.
yyy
Remove the link and then add it again.
Prism
Already tried.
yyy
Meanwhile put a link to the File Forum and add the new version to there.
Prism
It still doesn't work.
yyy
hairpull.gif pcpunch.gif common003.gif How did you do it? I can't believe that even the File Forum doesn't work with it. Try to change the name of the dspackage and see if it still do it. I have no idea why this happens.
GoMa
Strange!
yyy
That's exactly like this emoticon: pcpunch.gif biggrin.gif
ph34r.gif Someone tries to prevent you from distrobuting this panel laugh.gif Just kidding.
Indian_Mayhem
Nada for me as well.
Prism
QUOTE (yyy @ Aug 21 2004, 11:51 PM)
hairpull.gif pcpunch.gif common003.gif How did you do it? I can't believe that even the File Forum doesn't work with it. Try to change the name of the dspackage and see if it still do it. I have no idea why this happens.

I don't think that I can. DS installs the package into the file name directory. It will cause chaos. biggrin.gif
yyy
Not if you change the xml file. You should read my explanation about how to create an instalation file for a panel in the SDK forum smile.gif You should change $PACKAGE to the name of you panel. That way you can change the dspackage name however you want.
Prism
Sure, but I'm lazy. smile.gif
yyy
Ok, I just tried to help. Have you already asked Neil ?
Prism
I changed first post. It works now.
Prism
Neil, why does the forum reject colorpicker.dspackage?
yyy
I ment that you should have send him a PM but nevermind.
It works but it doesn't add the panle after installation. (Maybe I did something wrong).

There are also some problems with the properties menu. You should check it.

Nice panel. I just wish it could show the selected color inside the panel and not in the details window.
NeilN
What's the issue? The panel downloaded and installed perfectly for me.
Prism
I submitted here a file called "colorpicker.dspackage".
When people started to d/l it, they got "page not found" error.
Now I changed the file name, and everything's OK.
Prism
QUOTE (yyy @ Aug 22 2004, 12:59 AM)
There are also some problems with the properties menu. You should check it.

What problems?
Indian_Mayhem
Okay...I got it. Prism - Note when I added it, the panel title was How Long Until Panel.
NeilN
Beautiful little panel. Now I can design my windows for certain resolutions by looking at the cursor position.

A request: One of the programming languages I use requires colours to be specified this way: (65536 * Blue) + (256 * Green) + (Red)

Can you add that as a display option or better yet (although more complicated) allow the user to enter a calculation and display the results of that calculation?
eitaneko
One bug....
When I select all the options (show RGB, show HEX, and show position), only the last selected item gets shown. For example, if I check RGB and screen coordinates, only the X and Y values are shown.

Otherwise, the detailwindow display is very nice. The Win+Z key feature is great as well. Nice job. Like I_M said, when you add the panel, it has the name "How Long Until Panel" by default. I think you forgot to change it in the SetCaption method....Well done!
GoMa
Very nice!
One option I would like to see though is when you pin the details window, its values (and the preview) will change. Right now when you pin the details window and move your mouse, the value stays the same.
Prism
Concerning the How Long Until panel name - I think it's DS bug.
My panel use this code in order to set the caption:

CODE

CTranslator m_translator = m_sidebar.GetTranslator();
panelname = m_translator.msg("PanelName");

   m_panelParent.SetCaption(cookie, panelname);


The How Long Until panel uses a message which is also called "PanelName" in the dslang file. I dunno why, but DS takes the panel name from HowLongUntil.dslang file instead of ColorPicker.dslang.
The weirdest thing is that the dsplugin file specifies the path of the ColorPicker.dslang file.
Prism
QUOTE (eitaneko @ Aug 22 2004, 04:59 AM)
One bug....
When I select all the options (show RGB, show HEX, and show position), only the last selected item gets shown. For example, if I check RGB and screen coordinates, only the X and Y values are shown.

I don't understand. Could you please explain here step by step what you have done?
GoMa
QUOTE (Prism @ Aug 22 2004, 10:43 AM)
Concerning the How Long Until panel name - I think it's DS bug.

I'm not having problems with this one. It shows Color Picker.
Prism
Did you install the How Long Until panel?
GoMa
I think so, I'll check when I get home.
EDIT: Yes, I have the How Long Until installed.
Prism
Could you please launch Color Picker, and then launch How Long Until?
GoMa
If I do that, I see "Color Picker" as the caption of HowLongUntil. smile.gif When I remove the ColorPicker HowLongUntil still stays with its wrong caption. If I then add another HowLongUntil, it has "Color Picker" as its caption as well.
If I then remove them both, and add another HowLongUntil, it still displays as "Color Picker". If I add a ColorPicker, it's displayed as "Color Picker" (not "How Long Until"). common003.gif The captions do not change when I restart DS.
Prism
I think that DS loads the dslang files, and stores in memory all the messages.
For example, my both panels use "PanelName" message in different dslang files.
If DS loads the How Long Until panel first, it'll use its "PanelName" message, instead of the same message in the right dslang file.

I think that DS should load the messages only from the dslang file which is specified in the dsplugin file, and not refer to previous loaded dslang files.
GoMa
You're right with your explanation I think.
It's like DSSKIN - you have to name your items, for example, ColorPicker.Item1, instead of just Item1, to ensure there are no conflicts with other panels.
Look at the main language file - the panel specific object are named panelName.actionName.
Prism
I think I'll release the panel again.
However, IMHO, it should be fixed.
Prism
QUOTE (NeilN @ Aug 22 2004, 01:14 AM)
A request: One of the programming languages I use requires colours to be specified this way: (65536 * Blue) + (256 * Green) + (Red)

Sorry, but nope.

However, I can insert a new option for this format. How should I call it? Neil's format or <could you please give me your app's name> format? biggrin.gif
GoMa
I think you should call it "Combined integer values", not sure though.
P.S.
Neil, are you sure it's not (65536 * Blue) | (256 * Green) | (Red) (bitwise OR instead of addition)?
NeilN
The app in question is PowerBuilder.

GoMa: Yes. (65536 * Blue) + (256 * Green) + (Red) gives a unique integer value for any 16-bit colour.
Prism
So to prevent misunderstandings - let's take (200, 100, 50) as an example.

You say that the calculation should be like this:

65536 * 50 + 256 * 100 + 200 = 3276800 + 25600 + 200 = 3302600.

Am I right?
eitaneko
QUOTE (Prism @ Aug 22 2004, 03:46 AM)
QUOTE (eitaneko @ Aug 22 2004, 04:59 AM)
One bug....
When I select all the options (show RGB, show HEX, and show position), only the last selected item gets shown.  For example, if I check RGB and screen coordinates, only the X and Y values are shown.

I don't understand. Could you please explain here step by step what you have done?

Yes, here is what I mean.

If I select all 3 options (rgb, hex, x/y) the panel only shows x/y. If I select only 2 options (rgb, x/y) panel shows x/y, or (rgb/ hex) panel only shows hex values. If I select on only one of the options, it shows properly. I assumed that having all items checked would mean that the panel would have 3 lines each showing the proper data.

Was that clearer?
NeilN
QUOTE (Prism @ Aug 22 2004, 10:31 AM)
So to prevent misunderstandings - let's take (200, 100, 50) as an example.

You say that the calculation should be like this:

65536 * 50 + 256 * 100 + 200 = 3276800 + 25600 + 200 = 3302600.

Am I right?

That's correct.
Prism
Well, here's a known issue:
If you stop the panel from refreshing, and then change the information which it'll show, the panel won't update the view.
Therefore, before changing anything please check if the panel is in refreshing mode.
Prism
QUOTE (NeilN @ Aug 22 2004, 05:34 PM)
QUOTE (Prism @ Aug 22 2004, 10:31 AM)
So to prevent misunderstandings - let's take (200, 100, 50) as an example.

You say that the calculation should be like this:

65536 * 50 + 256 * 100 + 200 = 3276800 + 25600 + 200 = 3302600.

Am I right?

That's correct.

OK, I'll work on it.

Would you like also a view mode for this value or only copy option?
eitaneko
it is most certainly updating
marines
little-hacker version tongue.gif tongue.gif tongue.gif
(Blue << 0x10) + (Green << 0x08) + (Red)
anyway in hex such calculations look less complicated laugh.gif
Prism
QUOTE (eitaneko @ Aug 22 2004, 05:37 PM)
it is most certainly updating

Well, I tried to remove all lines, then played with it, but not experienced any problems.
Prism
QUOTE (marines @ Aug 22 2004, 05:38 PM)
little-hacker version tongue.gif tongue.gif tongue.gif
(Blue << 0x10) + (Green << 0x08) + (Red)
anyway in hex such calculations look less complicated laugh.gif

Maybe for you. smile.gif rolleyes.gif
marines
U see decimal numbers and multiply operation, but look at it like on bits and shift operation - it really looks less complicated and is much easier to understand smile.gif
NeilN
QUOTE (Prism @ Aug 22 2004, 10:36 AM)
Would you like also a view mode for this value or only copy option?

View option too please.
eitaneko
Here is what it looks like...(Unrelated, the panel properties dialog has the "How Long Until" caption as well)

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.