You could create a simple if statement that displays the correct name
according to the value returned from prefs.getString('fuel_type').


On Oct 14, 7:07 pm, Dean <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In the following module definition:
>
> <ModulePrefs title="__UP_fuel_type__ fueling stations near
> __UP_location__" height="250" scaling="false">
>     <Require feature="settitle"/>
>   </ModulePrefs>
>   <UserPref name="location" display_name="Location"
> datatype="location" default_value="20003"/>
>   <UserPref name="fuel_type" display_name="Fuel Type" datatype="enum"
> default_value="E85">
>     <EnumValue value="E85" display_value="E85 Ethanol"/>
>     <EnumValue value="CNG" display_value="Compressed Natural Gas"/>
>     <EnumValue value="BD" display_value="Biodiesel"/>
>     <EnumValue value="ELEC" display_value="Electric"/>
>     <EnumValue value="HY" display_value="Hydrogen"/>
>     <EnumValue value="LNG" display_value="Liquid Natural Gas"/>
>     <EnumValue value="LPG" display_value="Propane"/>
>   </UserPref>
> ...
>
> _UP_fuel_type is being replaced with the 'value' of the enum, not the
> 'display_value.' Is there any way to change that?
> I've also tried using _IG_SetTitle and passing in
> prefs.getString('fuel_type') with the same results.
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to