Adding a ToolTip function to a ComboBox in Flex

My screens get a bit crowded sometimes, especially when dealing with forms. Users want to be able to see additional information, but there is just no place to put it. The data is dynamic though, so the toolTip needs to change based on the currently selectedItem of the ComboBox. With a DataGrid, for example, you have a showDataTip property on a column and can assign a dataTipFunction. There is no similar function in the ComboBox, but it is easy enough to add. I’m also using the HtmlToolTip class for a little extra style in the ToolTip itself.

View Source is enabled.

Related posts:

  1. Continuous scrolling image thumbnail component for Flex.
  2. The Flickr AS3 API and Flex
  3. Using the Senocular AS3 TransformTool in Flex
  4. SuperPanelPlus: Resizable Flex Panel Component with Accessible Styling
  5. Continuous scrolling image thumbnail and slideshow component for Flex.

  • Thanks for the heads up. Foiled by case-sensitivity! It is fixed now.
  • codecraig
    The link to view source brings up an "Oops page not found" page.
  • I know what you mean, itemRenderers have always been a big headache. But I found several good ways to get around these issues. You can find them in the Cache plug in.

    I know allot of people use PureMVC but I don't see any harm in using other libraries along side it, you should be able to run any of the plug ins without interfering with PureMVC's core logic in any way. They are very light weight, if you compile the core framework and set the libraries as external you will find it's only 13Kb :)
  • Bojinx looks interesting, especially the memory management bits. It is something that I have been struggling with recently (especially with itemRenderers). I'm heavily invested in PureMVC in my projects, but there are a lot of great classes in Bojinx.
  • Not bad, check out the dialog manager that is a plugin of Bojinx, you can download the demo app and try the combo box. I think you will like it. :)
blog comments powered by Disqus

every-sword
every-sword