"TheHog" wrote:
> Hi,
>
> I'm writing a plugin for freevo. One of the menu items should be a toggle
> item, i.e. it should switch between "disabled" and "enabled". i cannot figure
> out how this can best be done. Could you please give a short description?

Well, only with a bad hack.

> What I try to achieve is:
> - a menu item is "option enabled"by default
> - when the user selects the menu item, a function is called This function
> changes an internal variable and sets the menu itm to "option disabled"
>
> I have set it up now using two menu items:
> - option enable
> - option disable
>
> but I'd prefer to change it to one menu item whoms text can be changed

Take a look at the configure stuff in diritem.


Dischi

-- 
It's not Area 51 I'm worried about- it's Areas 1 through 50.

Attachment: pgpwtDya14kEa.pgp
Description: PGP signature

Reply via email to