The following example shows how you can disable scroll data tips on a Flex Gumbo FxHSlider control by setting the Boolean showDataTip property.
Full code after the jump.
To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see “Using the beta Gumbo SDK in Flex Builder 3″.
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2009/03/05/toggling-data-tips-on-an-fxhslider-control-in-flex-gumbo/ -->
<FxApplication name="FxHSlider_showDataTip_test"
xmlns="http://ns.adobe.com/mxml/2009"
backgroundColor="white">
<layout>
<BasicLayout />
</layout>
<ApplicationControlBar dock="true">
<Form styleName="plain">
<FormItem label="showDataTip:">
<FxCheckBox id="checkBox" selected="true" />
</FormItem>
</Form>
</ApplicationControlBar>
<VGroup horizontalCenter="0"
verticalCenter="0">
<FxHSlider showDataTip="{checkBox.selected}" />
</VGroup>
</FxApplication>
You can also set the showDataTip property using ActionScript, as seen in the following example:
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2009/03/05/toggling-data-tips-on-an-fxhslider-control-in-flex-gumbo/ -->
<FxApplication name="FxHSlider_showDataTip_test"
xmlns="http://ns.adobe.com/mxml/2009"
backgroundColor="white">
<layout>
<BasicLayout />
</layout>
<ApplicationControlBar dock="true">
<Form styleName="plain">
<FormItem label="showDataTip:">
<FxCheckBox id="checkBox"
selected="true"
change="slider.showDataTip = checkBox.selected;" />
</FormItem>
</Form>
</ApplicationControlBar>
<VGroup horizontalCenter="0"
verticalCenter="0">
<FxHSlider id="slider" />
</VGroup>
</FxApplication>
This entry is based on a beta version of the Flex Gumbo SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex Gumbo SDK.
