On Fri, Dec 19, 2008 at 5:36 PM, Ashish Verma <[email protected]> wrote:

> I am creating a button in flex. which would have an icon and two labels. The
> First label will contain the command text while other could contain shortcut
> key. I want all the shortcut keys should be right aligned.it should retain
> it's state while I drag the component. Any work around on the same.

I would consider subclassing Button and adding another label
(TextField), which would be right-aligned. It shouldn't be too hard:
you'll have to override the standard createChildren,
updateDisplayList, etc.

Manish

Reply via email to