Re: List of color pickers

new topic     » goto parent     » topic index » view thread      » older message » newer message

Why not just make a little window? Like this:

ColorWin1 = createEx( Window, "", ParentWin, 0, 0, 30, 20,
{WS_CHILD,WS_VISIBLE,WS_CLIPSIBLINGS}, WS_EX_CLIENTEDGE )


This window will respond to Click events, as well as setWindowBackColor().


HTH,
~Greg


On Fri, 19 Nov 2004 17:11:50 +1100, Patrick Barnes <mrtrick at gmail.com> wrote:
> 
> I'd like to display a list of colors corresponding to items in a list view:
> 
> ItemNameA | <<square block of color that ItemNameA is>>
> ItemNameB | <<square block of color that ItemNameB is>>
> ItemNameC | <<square block of color that ItemNameC is>>
> 
> And if I click anywhere on an item I get a color dialog allowing me to
> choose a new color, upon which it updates the color of the square.
> 
> I figure I need to use an XPM template with a palette that changes to
> be able to show the square blocks of color in the LV, but I can't
> quite wrap my head around it...
> 
> --
> MrTrick
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu