Disable FXListItem - gray out icon

View: New views
2 Messages — Rating Filter:   Alert me  

Disable FXListItem - gray out icon

by Edgar Moraes Diniz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Shouldn't the icon of FXListItem reflect the state of the ListItem?

I mean, when the item is disabled, shouldn't the icon appear grayed out, the same way it happens with buttons?

I was relying on this feature to show/hide layers by enabling/disabling the list items, having the icon normal/grayed to reflect the state, but it didn't work.

To accomplish this, I have to use two different icons, changing them whenever the item toggles it state...

Wouldn't it be an expected behaviour?

I'm using FOX-1.6.

Thanks,
Edgar.

/*
* Edgar Moraes Diniz
* Universidade Federal do Maranhão
* Departamento de Informática
* Laboratório de Processamento e Análise de Imagens
* e-mail: edgkff@...
*/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users

Re: Disable FXListItem - gray out icon

by Jeroen van der Zijp-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 23 October 2009, Edgar Moraes Diniz wrote:

> Shouldn't the icon of FXListItem reflect the state of the ListItem?
>
> I mean, when the item is disabled, shouldn't the icon appear grayed out, the
> same way it happens with buttons?
>
> I was relying on this feature to show/hide layers by enabling/disabling the
> list items, having the icon normal/grayed to reflect the state, but it
> didn't work.
>
> To accomplish this, I have to use two different icons, changing them
> whenever the item toggles it state...
>
> Wouldn't it be an expected behaviour?

You're right, I think the icon should be drawn disabled.  I'll fix this in the 1.7
release.


                - Jeroen

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users