Building Blocks if there’s one thing I know about me and my thoughts: given enough time I’m always wrong

24Jan/095

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.

  • 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