Thank you for your kind help, Arindam. Unfortunately, I don't have a
design of the proposed change (it was made verbally), but here's a
very detailed explanation. I hope this will be clear:

Currently, when the users right-click on an AdvancedDataGrid, I'm
displaying a context-menu with items. Normal stuff.

The users want to change it so that an image (a passport-sized
photograph) appears at the top of the items. Displaying an image does
not appear to be possible with a context-menu.

So, I thought that maybe this is possible by extending a regular menu?
Unfortunately, I have no idea how to accomplish this.

As a kind of workaround, I'm also alternatively try to popup a
TitleWindow that looks like a menu. Am I on the right track, Arindam?

>From within the TitleWindow I have full control to do whatever I want.
But the tricky part of this approach is how to control when the
TitleWindow should be removed. For it to behave like a menu, it needs
to close when the user clicks anywhere, right?

So, I put the code to remove the TitleWindow in the click handler of
the module. But how can I distinguish between a click on the
AdvancedDataGrid (or any control/renderer inside the
AdvancedDataGrid). Right now, the TitleWindow doesn't appear because
it gets removed as soon as it appears:(

//This is the click handler of the module. If the user clicks
anywhere, remove the popup
private function this_click(event:MouseEvent):void
{
        if (_peopleMenu != null)
        {
                ClosePeopleMenu(null);
        }
}

//And inside the click handler of the AdvancedDataGrid:
//If the user clicks, display the popup.
//If the user clicks on another row, close the popup and show a new
popup
                _peopleMenu!=null ? ClosePeopleMenu(null) : null;
                _peopleMenu=PeopleMenu(PopUpManager.createPopUp(this, 
PeopleMenu,
false));
                _peopleMenu.addEventListener(CloseEvent.CLOSE, ClosePeopleMenu);
                ...

But nothing appears, as the popup gets removed by the this_click
method:(

Any help you can give would be really appreciated.

zxcvb
On Sep 24, 8:22 am, Arindam Mojumder <[email protected]>
wrote:
> Through As 3 and Flex every thing is possible buddy...
> can you send a screen shot of that particular section from your design?? It
> might be help full to us to give you the solution..
> Just send a design of that section.
>
> 2009/9/23 zxcvb <[email protected]>
>
>
>
> > Hi,
>
> > Anyone know how to extend the menu control?
>
> > When the user clicks on my datagrid I need to display a photo with
> > several menu items below it.
>
> > Is this possible? Any help would be really appreciated!
>
> > Thanks in advance.
>
> --
> @rindam

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to