1. changing font/color for listview item

Hi people!

Could anyone help me with this ?

How can I change the color/font of a
specific listview item ?

Thanks
Rubens

new topic     » topic index » view message » categorize

2. Re: changing font/color for listview item

Rubens wrote:
> 
> Hi people!
> 
> Could anyone help me with this ?
> 
> How can I change the color/font of a
> specific listview item ?

This is not an easy thing to do. You need to create the ListView as an
OwnerDrawn control and then intercept the special event messages so you can have
total control over how the listview is rendered.

You can get all the details from the MSDN web site or Windows API documentation.

Try ...

http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/listview/reflist.asp?frame=true

for a starting point.

-- 
Derek Parnell
Melbourne, Australia
irc://irc.sorcery.net:9000/euphoria

new topic     » goto parent     » topic index » view message » categorize

3. Re: changing font/color for listview item

Another useful URL is 

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/common/refs.asp

where you can find more details about "Custom Drawn" controls.

-- 
Derek Parnell
Melbourne, Australia
irc://irc.sorcery.net:9000/euphoria

new topic     » goto parent     » topic index » view message » categorize

4. Re: changing font/color for listview item

Rubens wrote:
> 
> Hi people!
> 
> Could anyone help me with this ?
> 
> How can I change the color/font of a
> specific listview item ?

Raymond Chen just covered [basically] this in his blog today:

http://blogs.msdn.com/oldnewthing/archive/2005/07/13/438381.aspx

The code example is C++, but it should give you an idea of what you need
to do in Euphoria.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu