DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Last post Author Topic: NANY 2011 Release: Color Warlock  (Read 190,134 times)

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #25 on: January 04, 2011, 04:06 AM »
Updated to hopefully fix a few bugs that fenixproductions found. :Thmbsup:

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • Participated in NANY Challenge Four Times
Re: NANY 2011 Release: Color Warlock
« Reply #26 on: January 04, 2011, 06:57 PM »
@hamradio
Palettes work correctly when loaded from menu but there is still an error on startup.

To reproduce:
  • start Color Warlock,
  • from Custom menu choose some palette,
  • close application,
  • start CW again.
Note: after deleting settings.dat application can be started without errors again.

BTW I've attached all converted Inkscape palettes. In addition: there is also small command line converter within package (requires .NET 2.0).
Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero :)

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #27 on: January 04, 2011, 07:38 PM »
@hamradio
Palettes work correctly when loaded from menu but there is still an error on startup.

To reproduce:
  • start Color Warlock,
  • from Custom menu choose some palette,
  • close application,
  • start CW again.
Note: after deleting settings.dat application can be started without errors again.

BTW I've attached all converted Inkscape palettes. In addition: there is also small command line converter within package (requires .NET 2.0).

Getting there on that fix I think.

Should be fixed for now try and see for me please.  It was the first time it had a big file listing in it so it brought out a bug that wasn't noticeable with the small list.  :)
« Last Edit: January 04, 2011, 08:51 PM by hamradio »

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • Participated in NANY Challenge Four Times
Re: NANY 2011 Release: Color Warlock
« Reply #28 on: January 05, 2011, 01:14 AM »
@hamradio
Everything seems to be fine now.

Although I am thinking about other converters so new palettes could come and there is always a chance for new bugs ;)

BTW Few feature requests.

1. Would it be possible to add menu items grouping possibility? It would be nice feature for large lists scenario.

What I mean:
  • get Custom menu items count,
  • calculate height for all of them,
  • if its larger than screen height then create groups for letters (i.e. A-D, E-H, etc.).

2. Create custom palettes thumbnails and store them in cache file. Next time user clicks on palettes menu, he/she will be able to choose them more easily.

Something like:

menu.png

3. Please add "unique colours only" option for Chart Builder.

4. Please add Color Warlock icon for its executable. It is nicer something else than the one provided by system by default.
Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero :)
« Last Edit: January 05, 2011, 01:22 AM by fenixproductions »

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #29 on: January 05, 2011, 03:08 AM »
@hamradio
Everything seems to be fine now.

Although I am thinking about other converters so new palettes could come and there is always a chance for new bugs ;)

BTW Few feature requests.

1. Would it be possible to add menu items grouping possibility? It would be nice feature for large lists scenario.

What I mean:
  • get Custom menu items count,
  • calculate height for all of them,
  • if its larger than screen height then create groups for letters (i.e. A-D, E-H, etc.).

2. Create custom palettes thumbnails and store them in cache file. Next time user clicks on palettes menu, he/she will be able to choose them more easily.

Something like:
(see attachment in previous post)
3. Please add "unique colours only" option for Chart Builder.

4. Please add Color Warlock icon for its executable. It is nicer something else than the one provided by system by default.


#4. Ah guess cause I forgot and only had 256x256 icon in it. That it wont show on non vista or 7 machines for the icon. Download replaced still same version as no actual coding was did.
« Last Edit: January 05, 2011, 03:20 AM by hamradio »

belight

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 2
Re: NANY 2011 Release: Color Warlock
« Reply #30 on: January 12, 2011, 09:40 AM »
Thanks - I'm going to have a lot of fun with this one.

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #31 on: January 28, 2011, 06:34 PM »
Updated now with a screen eyedropper, a couple new generate color options, and a built-in update checker. You can also still use the dcupdate file with DcUpdater if you prefer that way also. See first post for download link. :)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: NANY 2011 Release: Color Warlock
« Reply #32 on: January 28, 2011, 06:42 PM »
Really nice, Ham.  Beautiful application.  :up:

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • Participated in NANY Challenge Four Times
Re: NANY 2011 Release: Color Warlock
« Reply #33 on: January 28, 2011, 09:53 PM »
@hamradio
Screen picker is not intuitive. Maybe you could add small info how to use it in ToolTip?
Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero :)

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #34 on: January 30, 2011, 09:07 PM »
Updated to have a few ToolTips in configuration builder (Magic Screen Eyedropper is one of those. ;D). :)
« Last Edit: January 31, 2011, 01:10 AM by hamradio »

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #35 on: February 03, 2011, 06:35 PM »
RECOMMENDED UPDATE:

1. A blend color tool has been added to the chart builder.
2. Remove Duplicate Colors in chart builder.
3. Reworked the color tools layout of the chart builder.
4. A few other changes.

:)

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • Participated in NANY Challenge Four Times
Re: NANY 2011 Release: Color Warlock
« Reply #36 on: February 03, 2011, 07:45 PM »
@hamradio
It is getting better and better :)

Any thoughts about sorting?
Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero :)

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #37 on: February 13, 2011, 03:31 AM »
@hamradio
It is getting better and better :)

Any thoughts about sorting?

Meant to reply sooner...but perhaps in the chart builder.

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #38 on: February 15, 2011, 05:18 PM »
MINOR UPDATE:

1. Added option Border Style of Colors.
2. Optimized color chart load code.

:)

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #39 on: February 26, 2011, 01:23 AM »
New version is out with...

1. Customize copy actions of colors.
2. Sort by Alphabetical Order.
3. See help for complete list.

:)

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: NANY 2011 Release: Color Warlock
« Reply #40 on: February 26, 2011, 05:31 AM »
Hey!  This is really cool!
You guys do great stuff around here, I'm continually impressed.

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • Participated in NANY Challenge Four Times
Re: NANY 2011 Release: Color Warlock
« Reply #41 on: February 26, 2011, 01:28 PM »
@hamradio
2. Sort by Alphabetical Order.

What about:

Code: (csharp)
outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.myColor.GetBrightness().CompareTo( p2.myColor.GetBrightness() ); } );
outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.myColor.GetHue().CompareTo( p2.myColor.GetHue() ); } );
outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.myColor.GetSaturation().CompareTo( p2.myColor.GetSaturation() ); } );

or maybe even:
Code: (csharp)
outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.myColor.GetHashCode().CompareTo( p2.myColor.GetHashCode() ); } );
outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.MakeGrayscale().CompareTo( p2.MakeGrayscale() ); } );
outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.MakeGrayscale2().CompareTo( p2.MakeGrayscale2() ); } );
outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.MakeSepia().ToArgb().CompareTo( p2.MakeSepia().ToArgb() ); } );

?
Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero :)

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #42 on: February 27, 2011, 01:31 AM »
1. Added more sort routines.
2. Rewrote KnownColors palettes for compatibility.

See first post for download or use the built in updater checker download button to launch the url in default browser for the download. :)

Also Note: Last update unless something major comes up for February 2011.

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • Participated in NANY Challenge Four Times
Re: NANY 2011 Release: Color Warlock
« Reply #43 on: February 27, 2011, 10:16 AM »
1. Added more sort routines.

Nice  :Thmbsup:
Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero :)

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #44 on: March 08, 2011, 06:37 PM »
RECOMMENDED UPDATE:

1. Modified the Chart Builder form layout.
2. Optimized some of the code. (The optimizations reduced this version from the previous build by 16kb from 268kb to 252kb.)
3. Display HTML Hex Colors and Sort now works for temp charts. ("Bugfix")

:)

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: NANY 2011 Release: Color Warlock
« Reply #45 on: March 09, 2011, 10:59 PM »
after downloading almost every update I finally got to unpack this one :-)

Thanks! this is a really lovely, well-thought-out, and well-made, programme :up: :up:


____________________________________________________

I have managed to get two unhandled exceptions, but both seem to be resolved now - I'll report in case it's of help
OS is XP SP3

1) on the first start of colorwarlock; first copy (I dont know did I left or right-click, or maybe I did both too quickly) I got this
Spoiler (click to show/hide)
************** Exception Text **************
System.Runtime.InteropServices.ExternalException: Requested Clipboard operation did not succeed.
  at System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr)
  at System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay)
  at System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
  at System.Windows.Forms.Clipboard.SetText(String text)
  at ColorWarlock.frmMain.OnMouseUpPanel(Object sender, MouseEventArgs e)
  at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.Label.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3615 (GDR.050727-3600)
  CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ColorWarlock
  Assembly Version: 1.1.0.200
  Win32 Version: 1.1.0.200
  CodeBase: file:///F:/Portable/Colorwarlock/ColorWarlock.exe
----------------------------------------
System.Windows.Forms
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
I clicked continue & all was well (I'm unable to reproduce that since though.. which is fine by me)

2) Second one is when I check for updates via the menu
Spoiler (click to show/hide)
************** Exception Text **************
System.Net.WebException: The operation has timed out
  at System.Net.HttpWebRequest.GetResponse()
  at ColorWarlock.frmCheckUpdates.CheckForUpdates()
  at ColorWarlock.frmCheckUpdates.frmCheckUpdates_Load(Object sender, EventArgs e)
  at System.Windows.Forms.Form.OnLoad(EventArgs e)
  at System.Windows.Forms.Form.OnCreateControl()
  at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
  at System.Windows.Forms.Control.CreateControl()
  at System.Windows.Forms.Control.WmShowWindow(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  at System.Windows.Forms.ContainerControl.WndProc(Message& m)
  at System.Windows.Forms.Form.WmShowWindow(Message& m)
  at System.Windows.Forms.Form.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3615 (GDR.050727-3600)
  CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ColorWarlock
  Assembly Version: 1.1.0.200
  Win32 Version: 1.1.0.200
  CodeBase: file:///F:/Portable/Colorwarlock/ColorWarlock.exe
----------------------------------------
System.Windows.Forms
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Clicking continue - a window opens and it hangs. Looks like it just couldnt reach 'home' -ahh, after the fourth or fifth attempt it's working now, without exceptions!


3) a minor bug:
in the Chart Builder, when typing in a name for a custom colour, I pressed the delete key to delete some text and I got a "Delete colors..." dialogue:
"Are you sure you want to delete the 0 selected color(s) in this chart?"


4) suggestion/request:
again in the Chart Builder: it would be nice if the "Chart Name" as filled in would automatically be transferred to the File Name in the save dialogue.
Tom

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #46 on: March 10, 2011, 05:13 AM »
after downloading almost every update I finally got to unpack this one :-)

Thanks! this is a really lovely, well-thought-out, and well-made, programme :up: :up:


____________________________________________________

I have managed to get two unhandled exceptions, but both seem to be resolved now - I'll report in case it's of help
OS is XP SP3

1) on the first start of colorwarlock; first copy (I dont know did I left or right-click, or maybe I did both too quickly) I got thisI clicked continue & all was well (I'm unable to reproduce that since though.. which is fine by me)

2) Second one is when I check for updates via the menuClicking continue - a window opens and it hangs. Looks like it just couldnt reach 'home' -ahh, after the fourth or fifth attempt it's working now, without exceptions!


3) a minor bug:
in the Chart Builder, when typing in a name for a custom colour, I pressed the delete key to delete some text and I got a "Delete colors..." dialogue:
"Are you sure you want to delete the 0 selected color(s) in this chart?"


4) suggestion/request:
again in the Chart Builder: it would be nice if the "Chart Name" as filled in would automatically be transferred to the File Name in the save dialogue.

1. Cant reproduce that bug either.
2. Should have better handling in the next release.
3. Should also have better handling in the next release.
4. Implemented and should also be in the next release.

Thanks for the information on the issues. :)

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: NANY 2011 Release: Color Warlock
« Reply #47 on: March 10, 2011, 05:54 AM »
RECOMMENDED UPDATE:

1. Added chart name as the default save filename.
2. Better check for update handling implemented.
3. Changed delete selected colors and delete all colors shortcut key.

First post for download link
or download through the link in the check for updates screen.
:D

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: NANY 2011 Release: Color Warlock
« Reply #48 on: March 10, 2011, 09:39 AM »
1. Added chart name as the default save filename.
2. Better check for update handling implemented.
3. Changed delete selected colors and delete all colors shortcut key.


all sorted :Thmbsup: :)
Tom

worstje

  • The Gent with the White Hat
  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 589
    • Coding Snacks
    • Participated in NANY Challenge Three Times
Re: NANY 2011 Release: Color Warlock
« Reply #49 on: March 10, 2011, 12:08 PM »
hamradio, have a look at this StackOverflow question - it might shed some light on your clipboard issue.

Original address: https://www.donationcoder.com/forum/index.php?topic=24872.0