A Persistent/Interactive Tooltip in Flex

I came across a requirement at work a few weeks back which involved an "interactive" tooltip... We needed to provide a summary of information in the tooltip, but then provide a link button to a more detailed document.

I came up with the following example by creating some functionality around the DataGrid mouse movements to display a "tooltip" (in reality a Menu instance) at the mouse position. Rather than digging into the framework to try and extend the ToolTip class to make it "stick" when moused over, I realized we've got popup menu functionality like that already. Slap a custom menu item renderer in there, skin it, and you've got a mousable, interactive tooltip instance.

I could have gone the extra mile and created a custom DataGrid instance using this new functionality, but I'm lazy so I'm just going to post the instance I implemented and let you figure out how to implement it for yourself :-) The idea being that it could be just as easily implemented on any List based control, and even with a bit of work any component in the Flex framework. Just modify the renderer to fit the content you need!

Example Here

Source Here

Copy from DataGrid to Clipboard/Excel in Flex

A really simple example today for a pretty useful feature... being able to copy contents from a datagrid (or any structure which uses a dataProvider for that matter) onto the system clipboard, and into an application like Excel.

Excel is able to recognize an HTML table format and pastes the structure into appropriate cells. The following example is tailored to that type of structure, but can really be formatted to whatever needs you have by modifying the createHTML() (or more appropriately named) method.

View example here : Example

And source here : Source Code

Disable single button in ToggleButtonBar

So after a short period of searching, there doesn't seem to be a straight-forward way to disable a single ToggleButtonBar button instance... here's what I found worked:

UIComponent(tBBInstance.rawChildren.getChildAt(X)).enabled/disabled

Anyone find a clearer way?

Installing CFEclipse/Subclipse plugins on FlexBuilder 3

A co-worker sent me this post for installing things through software updates. Issue is, trying to install through update sites would result in error:

Eclipse Modeling Framework (EMF) - org.eclipse.emf.codegen.ecore.ui (2.3.0.v200706262000) requires plug-in "org.eclipse.jdt.core".

Joao (Fernandes?) has posted the solution over on his blog:

Link Here

Note the comment I added about having to check a second option labeled:

'Eclipse Java Development Tools 3.3.1.r331_......' as well to get it to work.

Thanks Joao!

BlogCFC was created by Raymond Camden. This blog is running version 5.005.