Tag Archive for 'hslider'

09
May

Setting the data tip offset in a Slider control in Flex

The following example shows how you can control the data tip offset in a Flex HSlider control by setting the dataTipOffset style.

Full code after the jump.

Continue reading ‘Setting the data tip offset in a Slider control in Flex’

09
May

Using a Slider control as a DataGrid column item renderer in Flex

The following example shows how you can use an HSlider control as an item renderer in a Flex DataGrid control.

Full code after the jump.

Continue reading ‘Using a Slider control as a DataGrid column item renderer in Flex’

06
May

Setting the tick thickness on a Slider control in Flex

The following example shows how you can set the thickness of a tick on a Flex HSlider control by setting the tickThickness style.

Full code after the jump.

Continue reading ‘Setting the tick thickness on a Slider control in Flex’

03
Nov

Customizing a slider control’s data tip

The following example shows how you can customize a slider control’s data tip in Flex. This example uses an embedded font and a data tip with a negative data tip offset that overlaps the slider thumb.

Full code after the jump.

Continue reading ‘Customizing a slider control’s data tip’

03
Nov

Programmatically positioning tick marks on a slider control

The following example shows how you can programmatically set tick positions on a Flex Slider control by setting the tickValues property.

Full code after the jump.

Continue reading ‘Programmatically positioning tick marks on a slider control’

03
Nov

Toggling a Flex Slider control’s tickInterval property

The following example shows how you can toggle a Flex Slider control’s tick marks so they are only visible while the user’s mouse cursor is over the HSlider/VSlider control.

Full code after the jump.

Continue reading ‘Toggling a Flex Slider control’s tickInterval property’

17
Sep

Building a simple tip calculator in Flex

The following example shows a very simple (and probably somewhat buggy) tip calculator which I put together in a few minutes using Flex. Nothing really new, but sometimes its fun to combine a few of the things we’ve covered over the past posts and build something a bit more interesting.

Full code after the jump.

Continue reading ‘Building a simple tip calculator in Flex’

12
Sep

Changing a slider control’s thumb skin

The following example shows how you can customize a slider control (HSlider or VSlider) and use your own custom embedded image instead of the default triangle thumb skin.

Full code after the jump.

Continue reading ‘Changing a slider control’s thumb skin’

12
Sep

Customizing the slide duration and slide easing function on a Flex slider control

The following example shows how you can customize the duration and easing function used when a user clicks on a thumb track on an HSlider or VSlider control in Flex.

Full code after the jump.

Continue reading ‘Customizing the slide duration and slide easing function on a Flex slider control’

12
Sep

Styling the HSlider control using CSS

The following example shows how you can style a HSlider (or VSlider) control in Flex using Cascading Style Sheets (CSS).

Full code after the jump.

Continue reading ‘Styling the HSlider control using CSS’

11
Sep

Customing the Flex HSlider and VSlider controls

The following example shows how you can customize several properties and styles in the Flex HSlider control.

Full code after the jump.

Continue reading ‘Customing the Flex HSlider and VSlider controls’

22
Aug

Using overlapping slider thumbs in the Flex Slider controls

I was playing around with the HSlider component tonight and was checking out the allowThumbOverlap property. The following example creates a horizontal slider with 2 slider thumbs and lets you toggle the allowThumbOverlap property with the showTrackHighlight property set to true.

Full code after the jump.

Continue reading ‘Using overlapping slider thumbs in the Flex Slider controls’

21
Aug

Highlighting a Slider control’s track using the showTrackHighlight style

Well, the title of the post pretty much says it all, but I just noticed this today. It seems that you can highlight the HSlider/VSlider track by setting the showTrackHighlight style to true. I made this really quick mini-app which lets you toggle the style on and off, as well as see the behavior of 1 slider thumb versus 2 slider thumbs.

Full code after the jump.

Continue reading ‘Highlighting a Slider control’s track using the showTrackHighlight style’

18
Jul

Formatting data tips in a Slider

I was playing around with the HSlider the other day and needed to format the data tool tip. Thankfully, the Flex SDK makes it very very easy, all you need to do to override the default data tip using the dataTipFormatFunction property. By simply passing in the name of a user-defined function, you can format the data tip text however you want (such as prefixing dollar signs or what have you).

Full code after the jump.

Continue reading ‘Formatting data tips in a Slider’