I tried the same. but how to fine tune all the methods like meaure, update list, label properties with this new textfield. and main problem is that the alignment is apply only for button not for textfield. please provide some work around.
Best, Ashish On Sat, Dec 20, 2008 at 1:03 AM, Manish Jethani <[email protected]>wrote: > On Fri, Dec 19, 2008 at 5:36 PM, Ashish Verma > <[email protected]<verma.lucky%40gmail.com>> > 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 > > >

