HAHA I don't either but...
Hey, have you used Flash?
We have been asking for this for years man! You have to keep nagging the Flash Player team!
Peace, Mike
I understand #1, but i don't see any reason for not allowing icons and submenus!-----Original Message-----Simply put;
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of Michael Schmalle
Sent: Friday, June 30, 2006 1:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom Context Menus
No and No.
These have been asked for for along time but there is the line and you hit.
You also cannot remove the About menu item, which is required so that users can find out what version of Flash Player they are using.
Sorry :)
Peace, Mike
On 6/30/06, Jeremy Rottman <[EMAIL PROTECTED]> wrote:I am working on a real estate transaction app, done in flex/cf. To
stream line things and to make it a little eaiser to get the data the
admins want, I am using a custom context menu on my data grids.
I have run into something I dont really conside a problem, but it is
something I would like to do. I have already created my context menu,
and it works just fine. Two things I would like to do is:
1. Remove the Settings menuitem and remove the About Adobe Flash
player 9 menu item. I have an inkling that the poeple using it might
confuse those with somehting else. Can this even be done?
2. I would also like to add small icons next to the menu items to give
it a nice look and feel. I have searched the live docs and cant seem
to find this. Any help with this would also be greatly appreciated.
Here is the code I am using.
import flash.ui.*;
import flash.events.*;
import mx.controls.dataGridClasses.*;
import mx.controls.Alert;
//----------------------------------------------------------
//*****************HANDLE LISTING SEARCH CONTEXT
MENU**********************
// SET CONTEXT MENU VAR
private var listSearchM:ContextMenu;
private function applyContextMenu(){
createListingMenu();
listingSearchDG.contextMenu = listSearchM;
}
private function createListingMenu(){
listSearchM = new ContextMenu();
listSearchM.addEventListener("menuSelect", menuSelectHandler);
listSearchM.hideBuiltInItems();
var customContextArray:Array = new Array();
var newList:ContextMenuItem = new
ContextMenuItem("Create New Listing");
newList.addEventListener("menuItemSelect",
newListHandler);
var conClose:ContextMenuItem = new
ContextMenuItem("Convert To Closing");
conClose.addEventListener("menuItemSelect",
conCloseHandler);
var conRental:ContextMenuItem = new
ContextMenuItem("Convert to Rental");
conRental.addEventListener("menuItemSelect",
conRentalHandler);
var canList:ContextMenuItem = new
ContextMenuItem("Cancel Listing");
canList.addEventListener("menuItemSelect",
canListHandler);
customContextArray.push(newList);
customContextArray.push(conClose);
customContextArray.push(conRental);
customContextArray.push (canList);
listSearchM.customItems = customContextArray;
}
private function menuSelectHandler(event:ContextMenuEvent):void
{
var renderer:DataGridItemRenderer =
DataGridItemRenderer(event.mouseTarget);
trace("rowIndex: " + renderer.listData.rowIndex);
trace("columnIndex: " +
DataGridListData(renderer.listData).columnIndex);
}
// TEST HANDLERS
private function newListHandler(){
Alert.show("You have selected to create a new list")
}
private function conCloseHandler(){
Alert.show("You have selected to Convert to a Closing")
}
private function conRentalHandler(){
Alert.show("You have selected to Convert to a Rental")
}
private function canListHandler(){
Alert.show("You have selected to Cancel a listing")
}
--
What goes up, does come down.
--
What goes up, does come down. __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] Custom Context Menus Michael Schmalle
- RE: [flexcoders] Custom Context Menus Ben Stucki
- RE: [flexcoders] Custom Context Menus Shannon Hicks
- Re: [flexcoders] Custom Context Menus Carlos Rovira
Reply via email to