[flexcoders] Re: Grid Header ContextMenu
Thanks - I was looking for an example on how to detect the right mouseDown in a header (or appropiate action to bring up the ContextMenu) , and determine which header the mouse was pressed in. Thanks --- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote: > Yeah, Label uses Flash Textfield, But for ContextMenu, a textfield should be > selectable/editable. > > > Following is simple example for context-menu, if you already know how to do > it, ignore it. > > ##ContextMenuExample.mxml## > > > http://www.macromedia.com/2003/mxml"; > initialize="addContextMenu();"> > > > > > > > -abdul > > > > > -Original Message- > From: viraf_bankwalla [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 13, 2005 5:45 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Grid Header ContextMenu > > > > Thanks > > UIObject extends MovieClip - so I thought that I could simply add it > to any object. How do I find out which Flex components use the > Flash TextField ? (Do Labels use the text field ?) > > Do you have an example ? > > > - viraf > > > --- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote: > > Hi, > > > > We only support context-menus at application level only, not to > any children > > of application or to nested objects. However you can add context- > menu items > > to TextInput, TextArea or anything that uses a Flash TextField. > > > > Hopefully, in future context-menu would be supported for nested > objects. > > > > > > But there is workaround, you can add/remove context menu items to > main > > context menu depending upon where mouse pointer isSo if user > right > > clicks on header, you can detect that mouse pointer is on datagrid > header > > and add context menu items... > > > > Does it make sense? > > > > -abdul > > > > > > -Original Message- > > From: viraf_bankwalla [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, April 13, 2005 5:10 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Grid Header ContextMenu > > > > > > > > Hi, > > > > How do I create a context menu for my Header in a grid? I have a > > HeaderRenderer and tried to cast it to a MovieObject and set the > menu > > attribute, however this did not work. > > > > Thanks. > > > > - viraf > > > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Grid Header ContextMenu
Yeah, Label uses Flash Textfield, But for ContextMenu, a textfield should be selectable/editable. Following is simple example for context-menu, if you already know how to do it, ignore it. ##ContextMenuExample.mxml## http://www.macromedia.com/2003/mxml"; initialize="addContextMenu();"> -abdul -Original Message- From: viraf_bankwalla [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 5:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Grid Header ContextMenu Thanks UIObject extends MovieClip - so I thought that I could simply add it to any object. How do I find out which Flex components use the Flash TextField ? (Do Labels use the text field ?) Do you have an example ? - viraf --- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote: > Hi, > > We only support context-menus at application level only, not to any children > of application or to nested objects. However you can add context- menu items > to TextInput, TextArea or anything that uses a Flash TextField. > > Hopefully, in future context-menu would be supported for nested objects. > > > But there is workaround, you can add/remove context menu items to main > context menu depending upon where mouse pointer isSo if user right > clicks on header, you can detect that mouse pointer is on datagrid header > and add context menu items... > > Does it make sense? > > -abdul > > > -Original Message- > From: viraf_bankwalla [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 13, 2005 5:10 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Grid Header ContextMenu > > > > Hi, > > How do I create a context menu for my Header in a grid? I have a > HeaderRenderer and tried to cast it to a MovieObject and set the menu > attribute, however this did not work. > > Thanks. > > - viraf > > > > > > > Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Grid Header ContextMenu
Thanks UIObject extends MovieClip - so I thought that I could simply add it to any object. How do I find out which Flex components use the Flash TextField ? (Do Labels use the text field ?) Do you have an example ? - viraf --- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote: > Hi, > > We only support context-menus at application level only, not to any children > of application or to nested objects. However you can add context- menu items > to TextInput, TextArea or anything that uses a Flash TextField. > > Hopefully, in future context-menu would be supported for nested objects. > > > But there is workaround, you can add/remove context menu items to main > context menu depending upon where mouse pointer isSo if user right > clicks on header, you can detect that mouse pointer is on datagrid header > and add context menu items... > > Does it make sense? > > -abdul > > > -Original Message- > From: viraf_bankwalla [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 13, 2005 5:10 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Grid Header ContextMenu > > > > Hi, > > How do I create a context menu for my Header in a grid? I have a > HeaderRenderer and tried to cast it to a MovieObject and set the menu > attribute, however this did not work. > > Thanks. > > - viraf > > > > > > > Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/