Re: List of color pickers

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

Huh? I don't get what the point is of creating a window for every colour?
You can set up an event for when an item in a LV is selected, can't you?


On Fri, 19 Nov 2004 02:06:04 -0500, Greg Haberek <ghaberek at gmail.com> wrote:
> 
> Why not just make a little window? Like this:
> 
> }}}
<eucode>
> ColorWin1 = createEx( Window, "", ParentWin, 0, 0, 30, 20,
> {WS_CHILD,WS_VISIBLE,WS_CLIPSIBLINGS}, WS_EX_CLIENTEDGE )
> </eucode>
{{{

> 
> 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
> >
> >


-- 
MrTrick

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

Search



Quick Links

User menu

Not signed in.

Misc Menu