Display Pop-Up Menu Programmatically

Hellow
Can Anybody tell me how to display popup menu programmatically??
For Ex. If I used Left Click instead of
Right-Click, I wanna have this menu displayed.
Regards,
Tariq

> Sorry, this is post transferred from foundation forum.
> I hope someone could help me on this issue. Just to add on, I have a
> viewer (inherited from TreeViewer),
> and upon right mouse click, it will display a pop-up menu.
> I would like to programmatically set the options on this pop-up
> menu.
I can't tell if you're trying to change the contents of the menu when it
pops up or if you're just trying to reuse the implementation of a menu
action from the timer.
A standard method for configuring the contents of a menu dynamically is to
setRemoveAllWhenShown(true) on your MenuManager and then add an
IMenuListener to the MenuManager that adds all your menu items every time
the menu is shown.
The tutorial at
http://www.eclipse.org/articles/viewArticle/ViewArticle2.htm l covers this.
Jeff

Similar Messages

  • Displaying pop-up menu on jsp after clicking a link ?

    Hi all...
    I have an application in which i have a jsp page.. I am displaying some links on it.
    Now i want that when i right click mouse on particular link then it should show me a pop-up aside and should populate that pop-up with the items i want (say some strings like "India","USA","UK" ). When i will select one item from those in pop-up that should replace the link i clicked. Though my page is jsp, it has basic HTML coding with the form which contains all those links.. Shall i write a javascript function for the same or there exist any control which i can use..
    Can someone help in this regard ??
    Thank you for attending the question...
    Regards
    Prasad

    Try this .. It worked for me....
    index.html
    <HTML><HEAD></HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    function openChild(file,window) {
        childWindow=open(file,window,'resizable=no,width=200,height=400');
        if (childWindow.opener == null)
         childWindow.opener = self;
    </SCRIPT>
    <BODY>
    <FORM NAME="parentForm">
    <a href="" title="one" id="one" onContextMenu="openChild('examplejs2.html',this.title); return false;">ONE</a>
    <br>
    <a href="" title="two" id="two" onContextMenu="openChild('examplejs2.html',this.title); return false;">TWO</a>
    <br>
    <a href="" title="three" id="three" onContextMenu="openChild('examplejs2.html',this.title); return false;">THREE</a>
    </FORM>
    </BODY></HTML>examplejs2.html
    <HTML><HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    function updateParent() {
        opener.document.getElementById(window.name).innerHTML = document.childForm.cf1.value;
        opener.document.getElementById(window.name).title = document.childForm.cf1.value;
        opener.document.getElementById(window.name).id = document.childForm.cf1.value;
        self.close();
        return false;
    </SCRIPT>
    </HEAD><BODY>
    <FORM NAME="childForm" onSubmit="return updateParent();">
    <BR><INPUT NAME="cf1" TYPE="TEXT" VALUE="">
    <BR><INPUT TYPE="SUBMIT" VALUE="Update parent">
    </FORM>
    </BODY></HTML>I got it from here - [update parent|http://www.rgagnon.com/jsdetails/js-0066.html]
    And made some changes to it.
    U can use the window name, which is unique and use ajax to go to server and fetch values and then populate the chid window and change the input accordingly...
    Let me know if u have any probs
    Regards,
    Sundar

  • Smart way to auto update pop-up menu in nav bar?

    Smart way to keep updating pop-up menu in Nav bar ?
    I created a template in DW 8. It is used to generate many
    other pages for the site. only the page content region is editable.
    There is a nav bar in the template. Some buttons of the nav bar
    display pop-up menu when MouseOver . Those pop-up menu need to be
    changed from time to time. What is the best way to automatically
    update the pop-up menu in those templated-generated files, using
    template (I tried to define the nav bar as editable region,
    modified the pop-ups and saved the template. I got a lots of
    unexpected problems, DW8 even crashed), using libray items or
    something else? I am a relatively new DW developer. Much appreciate
    if someone could help.

    If the navigation is in a non-editable region of the
    template, then changes
    to it will propagate automatically to all child pages - are
    you not seeing
    that happen?
    > I tried to define the nav bar as editable region
    You wouldn't usually want to do that.
    > I got a lots of unexpected problems, DW8 even
    > crashed
    You must have made other errors. Doing something like this
    would surely not
    crash DW.
    The only problem with having the navigation in the
    non-editable region of
    the template is that a change to it will touch *every* file
    in the site,
    each of which must then be uploaded again. To solve this
    problem you can
    use server-side includes for the navigation. Then you would
    make your
    change to the include file, upload it, and all pages would
    reflect that
    change.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "lakeleman" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    Smart way to keep updating pop-up menu in Nav bar ?
    > I created a template in DW 8. It is used to generate
    many other pages
    > for
    > the site. only the page content region is editable.
    There is a nav bar in
    > the
    > template. Some buttons of the nav bar display pop-up
    menu when MouseOver .
    > Those pop-up menu need to be changed from time to time.
    What is the best
    > way to
    > automatically update the pop-up menu in those
    templated-generated files,
    > using
    > template (I tried to define the nav bar as editable
    region, modified the
    > pop-ups and saved the template. I got a lots of
    unexpected problems, DW8
    > even
    > crashed), using libray items or something else? I am a
    relatively new DW
    > developer. Much appreciate if someone could help.
    >

  • Help using right-click to display text in the console/call a pop-up menu

    Hi folks,
    I hope someone can help me with this problem because, to be honest, I cannot see where I'm going wrong!
    Basically, I'm trying to create a routine to display a bit of text in the console (and, if I can get this to work, call a pop-up menu) if a user clicks on an image panel (which I've already created and works fine). My code for this is as follows:
    // --- Rest of program here
    this.addMouseListener(new MouseAdapter()
    public void mouseClicked(MouseEvent e)
    // This bit works fine
    if (e.getClickCount()>=2)
    // Display a dialog box if the user double clicks on the panel
    else if (e.isPopupTrigger())
    System.out.println("Right mouse button clicked")
    // Rest of program in hereThe problem is that, despite my best efforts, "Right mouse button clicked" does not display in the console if the right mouse button is clicked, and I cannot figure out why. I can, however, get it to work PARTIALLY if I use e.isControlDown(), but this only works (I guess) if the user is working on a Mac but isn't using an external mouse. Not ideal.
    I'm developing on a Mac (10.4.8) using Eclipse (rather than a PC), but this surely cannot be the problem?

    Do you start this application in a console window?
    If yes then isPopupTrigger() is never true - presumably mouseClicked gets called.
    If no then please note that java does not 'pop' a console window when System.out is called. System.out represents an existing output connection. If you want to pop some sort of console then you need to add code to do that.

  • HT3805 aperture no longer displays "destination pop-up menu "when importing, any ideas? regards Laurie.

    Aperture no longer displays "destination pop-up menu" when importing. any ideas? thanks

    Not even the "reset to defaults" option?
    If it is there, try that.  Restart the system, if you have not already done so.
    If options in the User interface are missing, this is usually caused by corrupted preferences files and preset files in the user library. To check if that is the case, log into a different user account, for example the "Guest account". Launch Aperture. Do you see the missing import options there?
    (see: Isolating an issue by using another user account)

  • Search field pop-up menu no longer displays

    For some reason my search field pop-up menu no longer displays. I can still search, but the results are not consistent and since the pop-up menu is missing I can't select search options like to, from, etc.
    I have already recreated the envelope index and reset spotlight. Any other ideas?

    Right-click on a blank area of the toolbar in Mail (where the Search field should be) and choose "Customise Toolbar...". Then in the window that appears, drag the Search item back into the Toolbar.

  • Need Help: JTable POP up menu in a CellEditor to display on a right click

    This was from a previous post:
    I am trying to make a POP menu in a JTextComponent that has a assigned JEditorPane for a HTMLDocument to make use of the HTMLEditorKit to allow modifying HTML by the POP up menu.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import javax.swing.table.*;
    import javax.swing.text.html.*;
    import javax.swing.undo.*;
    import javax.swing.border.*;
    import javax.swing.filechooser.*;
    public class SimpleTableDemo extends JFrame {
        public SimpleTableDemo() throws Exception {
            final JTable table = new JTable(new MyTableModel());
            table.setPreferredScrollableViewportSize(new Dimension(500, 70));
            TableColumn fileColumn = table.getColumnModel().getColumn(2);
            FileTableCellEditor editor = new FileTableCellEditor();
            fileColumn.setCellRenderer(editor);
            fileColumn.setCellEditor(editor);
            JScrollPane scrollPane = new JScrollPane(table);
            getContentPane().add(scrollPane, BorderLayout.CENTER);
            addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                System.exit(0);
                table.setRowHeight(100);
            public static void main(String[] args) throws Exception {
                SimpleTableDemo frame = new SimpleTableDemo();
                frame.pack();
                frame.setVisible(true);
            class MyTableModel extends AbstractTableModel {
                String[] columnNames = {"First Name","Last Name","HTML File"};
                public Object[][] data;
                MyTableModel() throws Exception
                    data = createArray();
                private Object[][] createArray() throws Exception
                    Object[][] data = {{"One", "Andrews", createDoc("file1.html")}
                return data;
                private Document createDoc(String url) throws Exception
                    File file = new File(url);
                    URL baseURL = file.toURL();
                    InputStream in = baseURL.openStream();
                    InputStreamReader r = new InputStreamReader(filterTag(in));
                    HTMLEditorKit kit = new HTMLEditorKit();
                Document doc = kit.createDefaultDocument();
                kit.read(r,doc,0);
                return doc;
                } // workaround for HTMLEditorKit.Parser, cant deal with "content-encoding"
                private InputStream filterTag(InputStream in) throws IOException {
                    DataInputStream dins = new DataInputStream( in);
                    ByteArrayOutputStream bos = new ByteArrayOutputStream(10000);
                    DataInputStream din = new DataInputStream(new BufferedInputStream(in));
                    while (din.available() > 0) {
                    String line = din.readLine();
                    String lline = line.toLowerCase();
                    if (0 <= lline.indexOf("<meta ")) // skip meta tags
                    continue;
                    bos.write( line.getBytes());
                    din.close();
                    return new ByteArrayInputStream( bos.toByteArray());
                public int getColumnCount() {
                    return columnNames.length;
                public int getRowCount() {
                    return data.length;
                public String getColumnName(int col) {
                    return columnNames[col];
                public Object getValueAt(int row, int col) {
                    return data[row][col];
                public Class getColumnClass(int c) {
                    return getValueAt(0, c).getClass();
                public boolean isCellEditable(int row, int col) {
                if (col >< 1) {
                    return false;
                } else {
                    return true;
    public class FileTableCellEditor extends JScrollPane implements TableCellEditor , TableCellRenderer
        public JTextComponent jtext;
        JEditorPane editor;
        HTMLEditorKit kit = new HTMLEditorKit();
        HTMLDocument doc = new HTMLDocument();;
        private EventListenerList listenerList = new EventListenerList();
        private ChangeEvent event = new ChangeEvent(this);
        public FileTableCellEditor()
        editor = new JEditorPane();
        editor.setContentType("text/html");
        doc=new HTMLDocument();
        editor.addMouseListener(new MouseHandler());
        editor.setEditorKit(kit);
        editor.setDocument(doc);
        editor.setEditable(true);
        editor.setCaretColor(Color.RED);
        getViewport().setView(editor);
        setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
        setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        public Component getTableCellRendererComponent(JTable table, Object value,
        boolean isSelected, boolean hasFocus, int row, int column)
            // System.out.println("has focus: "+hasFocus+", isSelected: "+isSelected);
            if (isSelected)
            table.editCellAt(row,column);
        table.editCellAt(row,column);
        return getTableCellEditorComponent(table,value,isSelected, row, column);
        public Component getTableCellEditorComponent(JTable table,
        Object value, boolean isSelected, int row, int column)
        editor.setDocument((Document)value);
        return this;
        public boolean isCellEditable(EventObject anEvent)
        { return true;
        public boolean shouldSelectCell(EventObject anEvent)
        { return true;
        public void cancelCellEditing()
        { fireEditingStopped();
        public boolean stopCellEditing()
        { return true;
        public Object getCellEditorValue()
        { return null;
        public void addCellEditorListener(CellEditorListener l)
        { listenerList.add(CellEditorListener.class, l);
        public void removeCellEditorListener(CellEditorListener l)
        { listenerList.remove(CellEditorListener.class, l);
        protected void fireEditingStopped()
        { Object[] listeners = listenerList.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2)
        ((CellEditorListener)listeners[i+1]).
        editingStopped(event);
        protected void fireEditingCanceled()
        { Object[] listeners = listenerList.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2)
        ((CellEditorListener)listeners[i+1]).
        editingCanceled(event);
            ///////////createPopupMenu///////////////
            protected JPopupMenu createPopupMenu()
            JPopupMenu popup =new JPopupMenu();
            popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.cutAction)).setAccelerator(null);
            popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.copyAction)).setAccelerator(null);
            popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.pasteAction)).setAccelerator(null);
            popup.addSeparator();
            popup.add(getTextComponent().getActionMap().get("font-bold"));
            popup.add(getTextComponent().getActionMap().get("font-italic"));
            popup.add(getTextComponent().getActionMap().get("font-underline"));
            //popup.add(getTextComponent().getActionMap().get("break"));
            return popup;
        public JTextComponent getTextComponent()
             return jtext;
        protected class MouseHandler extends MouseAdapter{
           public void mouseReleased(MouseEvent me){
               if(me.getButton()==MouseEvent.BUTTON3){
               Point p=me.getPoint();
               createPopupMenu().show((Component)me.getSource(),p.x,p.y);
    }

    I got the pop up to work, I had to go back to and add a createActionTable editor that is a JEditorPane, vs the JTextComponent!
    Here is the latest version:
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.HashMap;
    import javax.swing.*;
    import javax.swing.undo.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import javax.swing.table.*;
    import javax.swing.text.html.*;
    import javax.swing.undo.*;
    import javax.swing.border.*;
    import javax.swing.filechooser.*;
    public class SimpleTableDemo extends JFrame {
        public SimpleTableDemo() throws Exception {
            final JTable table = new JTable(new MyTableModel());
            table.setPreferredScrollableViewportSize(new Dimension(500, 70));
            TableColumn fileColumn = table.getColumnModel().getColumn(2);
            FileTableCellEditor editor = new FileTableCellEditor();
            fileColumn.setCellRenderer(editor);
            fileColumn.setCellEditor(editor);
            JScrollPane scrollPane = new JScrollPane(table);
            getContentPane().add(scrollPane, BorderLayout.CENTER);
            addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                System.exit(0);
                table.setRowHeight(100);
            public static void main(String[] args) throws Exception {
                SimpleTableDemo frame = new SimpleTableDemo();
                frame.pack();
                frame.setVisible(true);
            class MyTableModel extends AbstractTableModel {
                String[] columnNames = {"First Name","Last Name","HTML File"};
                public Object[][] data;
                MyTableModel() throws Exception
                    data = createArray();
                private Object[][] createArray() throws Exception
                    Object[][] data = {{"One", "Andrews", createDoc("file1.html")}
                return data;
                private Document createDoc(String url) throws Exception
                    File file = new File(url);
                    URL baseURL = file.toURL();
                    InputStream in = baseURL.openStream();
                    InputStreamReader r = new InputStreamReader(filterTag(in));
                    HTMLEditorKit kit = new HTMLEditorKit();
                Document doc = kit.createDefaultDocument();
                kit.read(r,doc,0);
                return doc;
                } // workaround for HTMLEditorKit.Parser, cant deal with "content-encoding"
                private InputStream filterTag(InputStream in) throws IOException {
                    DataInputStream dins = new DataInputStream( in);
                    ByteArrayOutputStream bos = new ByteArrayOutputStream(10000);
                    DataInputStream din = new DataInputStream(new BufferedInputStream(in));
                    while (din.available() > 0) {
                    String line = din.readLine();
                    String lline = line.toLowerCase();
                    if (0 <= lline.indexOf("<meta ")) // skip meta tags
                    continue;
                    bos.write( line.getBytes());
                    din.close();
                    return new ByteArrayInputStream( bos.toByteArray());
                public int getColumnCount() {
                    return columnNames.length;
                public int getRowCount() {
                    return data.length;
                public String getColumnName(int col) {
                    return columnNames[col];
                public Object getValueAt(int row, int col) {
                    return data[row][col];
                public Class getColumnClass(int c) {
                    return getValueAt(0, c).getClass();
                public boolean isCellEditable(int row, int col) {
                if (col < 1) {
                    return false;
                } else {
                    return true;
    public class FileTableCellEditor extends JScrollPane implements TableCellEditor , TableCellRenderer
        JEditorPane editor = new JEditorPane();
        HTMLEditorKit kit = new HTMLEditorKit();
        HTMLDocument doc = new HTMLDocument();;
        private EventListenerList listenerList = new EventListenerList();
        private ChangeEvent event = new ChangeEvent(this);
        HashMap<Object, Action> actions;
        public FileTableCellEditor()
        getContentPane();
        editor.setContentType("text/html");
        doc=new HTMLDocument();
        editor.addMouseListener(new MouseHandler());
        editor.setEditorKit(kit);
        editor.setDocument(doc);
        editor.setEditable(true);
        editor.setCaretColor(Color.RED);
        getViewport().setView(editor);
        createActionTable(editor);
        makeActionsPretty();
        setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
        setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        public void makeActionsPretty(){
             Action a;
                      a=editor.getActionMap().get(HTMLEditorKit.cutAction);
                      a.putValue(Action.SHORT_DESCRIPTION,"Cut");
                      a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('X',Event.CTRL_MASK));
                      a=editor.getActionMap().get(HTMLEditorKit.copyAction);
                      a.putValue(Action.NAME,"Copy");
                      a.putValue(Action.SHORT_DESCRIPTION,"Copy");
                      a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('C',Event.CTRL_MASK));
                      a=editor.getActionMap().get(HTMLEditorKit.pasteAction);
                      a.putValue(Action.NAME,"Paste");
                      a.putValue(Action.SHORT_DESCRIPTION,"Paste");
                      a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('V',Event.CTRL_MASK));
        public Component getTableCellRendererComponent(JTable table, Object value,
        boolean isSelected, boolean hasFocus, int row, int column)
            if (isSelected)
            table.editCellAt(row,column);
        table.editCellAt(row,column);
        return getTableCellEditorComponent(table,value,isSelected, row, column);
        public Component getTableCellEditorComponent(JTable table,
        Object value, boolean isSelected, int row, int column)
        editor.setDocument((Document)value);
        return this;
        public boolean isCellEditable(EventObject anEvent)
        { return true;
        public boolean shouldSelectCell(EventObject anEvent)
        { return true;
        public void cancelCellEditing()
        { fireEditingStopped();
        public boolean stopCellEditing()
        { return true;
        public Object getCellEditorValue()
        { return null;
        public void addCellEditorListener(CellEditorListener l)
        { listenerList.add(CellEditorListener.class, l);
        public void removeCellEditorListener(CellEditorListener l)
        { listenerList.remove(CellEditorListener.class, l);
        protected void fireEditingStopped()
        { Object[] listeners = listenerList.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2)
        ((CellEditorListener)listeners[i+1]).
        editingStopped(event);
        protected JPopupMenu createPopupMenu()
            JPopupMenu popup =new JPopupMenu();
            popup.add(getActionByName(DefaultEditorKit.cutAction));
            return popup;
        protected class MouseHandler extends MouseAdapter{
           public void mouseReleased(MouseEvent me){
               if(me.getButton()==MouseEvent.BUTTON3){
               Point p=me.getPoint();
               createPopupMenu().show((Component)me.getSource(),p.x,p.y);
        private void createActionTable(JTextComponent textComponent) {
            actions = new HashMap<Object, Action>();
            Action[] actionsArray = textComponent.getActions();
            for (int i = 0; i < actionsArray.length; i++) {
                Action a = actionsArray;
    actions.put(a.getValue(Action.NAME), a);
    private Action getActionByName(String name) {
    return actions.get(name);

  • Using COUNTIF on time values in pop-up menu (employee schedule template)

    I have modified the Numbers employee schedule template to my liking and it works very well. I would like to add a column to the beginning which shows, at a glance, how many people I have scheduled for AM shifts and PM shifts on a given day. My AM shifts start at 9:00 AM and my PM shifts end at 6:30 or 8:30 PM.
    So I thought I could use COUNTIF, but after I set the array, I cannot get the condition right to return anything except "0". How do you make it detect the appropriate times? The times in each cell for In and Out times are selected using a pop-up menu, just like the template.
    Here is what I tried: =COUNTIF(E3:AE3,"9:00 AM")
    What should the condition be to return a proper count?

    ac,
    You shouldn't feel badly about having trouble with this template. It is a rather tricky one. The values in the Pop-Up menus are Date/Time values. That is to say, they have year, month, day, hour and minute components, even if only the hours and minutes are displayed. So if you only compare to the hours and minutes, you will never get a match.
    I don't know if you have experienced this yet, but when you changed the Pop-Up menu content, you probably entered the current year, month and day unknowingly and will have trouble doing math against the Pop-Up content that was originally in the template.
    My suggestion in your case would be to convert the time references to decimal hours before doing a comparison. For instance, if the time you wish to compare to is in cell C4, you could extract the decimal hours with =HOUR(C4)+MINUTE(C4)/60
    Remember that the hours will reflect a 24-hour day, so times in the afternoon will run from 12.0 to 23.99...
    Then after converting to decimal, instead of using "9:00 AM" for the COUNTIF criteria, use 9.
    There are probably ways to do this using the Duration format as well, but I prefer the decimal hours.
    Hope this helps.
    Jerry

  • Pop up menu on right clicking an image?

    Hello,
    I am new to LabWindows/CVI. 
    Requirement: "To get a pop-up menu on right clicking on image"
    Right now, I display my images in window numbers (0 - 15). Is it possible to be able to get a pop-up menu on right clicking an image window. If yes, how? If not, could you please suggest other methods to achieve this task? Should I display the image in a separate parent panel for example? How could I do this?
    Any help would be great.
    Cheers

    I would use the code generator for right click event. then fill it up with whatever code you want under right click case. You can access these when you double click your UIR file, then on the top of the page click Code\Preferences\Default... then choose desired events for picture then go to Code\Generate\all callbacks and skip through the ones you don't want to be replaced.

  • Pop-up menu to list multiple time values (8:00 AM etc.) ?

    I was looking at the option of using a pop-up menu to select times (8:00 AM etc.) from to keep from having to enter all the times in my spreadsheet manually. Has anyone done this before and is there a download or widget for this? Unfortunately for me, I would need it to be in increments of 5 minutes starting from 7AM to 7PM or so, which would be a tremendous amount of parameters added to a traditional pop-up menu.
    Thanks for any input.

    T25 wrote:
    Thanks for the insight, it seems to make good sense to me with your process to create multiple pop-ups and/or sliders. Since I'm still new to iWork Numbers though, are the tables you illustrated in your reply saved in a separate spreadsheet to use as a reference for the pop-up in other, separate spreadsheets? Is that what LOOKUP is used for (to reference another sheet)?
    My invoice has a single cell for an "IN" time and another for an "OUT" time; all incorporated to a fairly "busy" invoice that can't accommodate any additional cells in those areas.
    Both tables are on the same sheet, but I placed them on separate tables on that sheet.
    They don't have to be on separate tables, and they don't have to be on the same sheet, but they do have to be in the same document, as Numbers does not provide for linking to separate documents/files.
    With the busy invoice in your case, you could place the popup and slider cells (two of each) on a separate table, and only the result cells on the same table as your invoice. The popups and sliders could go on the same table as the lookup array, but that table would then have to be both visible and unlocked.
    Placing the Lookup array on a separate table allows you to lock that table to prevent accidental changes to it. You can also easily hide the Lookup table by placing it behind the main table (your invoice), or on a second sheet in your document.
    Placed on the same table as the rest of the invoice, you can still hide it simply by hiding the two columns containing the lookup information.
    An alternate method, requiring no extra cells or tables would be to Use Insert Date and Time (in the Insert menu, or from the keyboard with shift-option-command-D ) to insert the date and time directly.
    There are some complications with this which might make it unusable, depending on how many people need to be trained and how well they take to training. Insert Date and Time starts with the assumption that what you really want to do is insert the date. Changing its mind takes a couple of extra steps that must be done immediately, and each time.
    1. Click on the cell to select it.
    2. Go Insert > Date and Time (or press shift-option-command-D )
    3. Before taking any other action, double click the cell (which will now be displaying the current date) to open a small dialogue.
    4. In the dialogue, use the popup menu to choose one of the Time only formats.
    5. Click outside the dialogue to dismiss it.
    The cell will now contain the current Date and Time value, and will display the current time.
    Note that the Time, when inserted this way, will be the time that the insertion was done, and won't be rounded to the nearer five minutes.
    You'll find a discussion of LOOKUP (and the two related functions, VLOOKUP and HLOOKUP in the iWork Formulas and Functions User Guide, and an excellent overview of Numbers (including explanation of the terms I've used above) in the Numbers '09 User Guide. Both can be downloaded using the menu items in the Help menu in Numbers. Both are recommended reading for new and old users of Numbers alike.
    Regards,
    Barry

  • Can't add new time in pop up menu template

    Hope someone can help as I'm lost on this one. I am trying to use the schedule template in iworks09 but I need to add more time variations in the cell pop up menu. I enter the inspector pane for the particular cell and click into cells inspector which shows the pop up menu option with the various time options. When I click to edit the time or add a new time it won't allow me to save it with either AM or PM. This stops the daily hours formula from calculating the correct time worked. Is this a glitch in the program or am I missing something? I need to add 30 minute increments between 11:00 AM and 3:00 PM because according to apple nobody starts or finishes between these times! Any help would be greatly appreciated.

    chabotlow,
    This is a tricky template, believe me. Numbers is interpreting your pop-up entry as a DATE/TIME value, and apparently you have set your System Preferences > International to not use the AM and PM indicators, so Numbers is reformatting your entry.
    The next problem that you are going to encounter is that all the other entries in the POP-UP have an un-displayed DATE of many days earlier, back when the template was designed. So, when you do the subtraction to find the elapsed work time, you will get a big surprise if your POP-UP data was entered on different days. If you want to change a few times on the POP-UP menu, you will have to change them all so that they all reflect the same DATE. That's not as bad as it may seem. Make one "IN" POP-UP and one "OUT" POP-UP. Then copy them to the rest of the table.
    Regards,
    Jerry

  • .Mac aliases no longer appearing in Account pop-up menu

    Hi, a couple of days ago I noticed that my .Mac aliases are no longer listed in the Account pop-up menu of new messages. I thought it's a temporary .Mac problem, but this has continued.
    The account is a .Mac account (not POP nor IMAP), and I can go to Mail>Preferences>Accounts and click on the "Edit Email Aliases" button and can see that they are all still there on .Mac.
    How can I get them to show up again?
    MacBook Pro   Mac OS X (10.4.8)  

    Hi Hilal.
    I don’t know whether this would make a difference, but it may be worth a try:
    1. Quit Mail if it’s running.
    2. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to solve the problem. You can do this in the Finder by dragging the folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is stored.
    3. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop (to be deleted if this fixes the problem).
    4. Open Mail. You’ll have to set up your non-.Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    You’ll also have to re-configure most of your settings in Mail > Preferences. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    5. As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • I want to create an external video widget with iAd. I followed the steps and copied the Url and paste it in the Video pop-up menu in the Properties section of the inspector. When i select 'preview' the video doesn't play and the Url that i pasted is gone.

    i want to create an external video widget with iAd to use in an iBook. I followed the steps and copied the Url and paste it in the Video pop-up menu in the Properties section of the inspector. When i select 'preview' the video doesn't play and the Url that i pasted is gone.
    hope someone can help!

    May have something to do with whether or not the URL can be reached while building your widget.  I've got a video on the web. When I enter the URL into the field for the video object and click to another field,  the URL is replaced with some text indicating that it is accessing the video then updates itself to displaying just the name of the video file.
    It shows just fine in preview and I can see the full path to the video when I export the widget so it should work for you. 
    Is the video accessible from your Mac while you're laying out your widget?
    -Mark

  • Pop-up Menu in the Table

    I have a problem with a pop up menu in the table control. Currently, I have set my table to HOT and i have 3 columns in my table which are set to Indicator, which allows me to select/highlight the cell but yet dosen't change the content in the cell.
    But when i highlight let's say 3 cells in the same column and right click, a popup menu appears with 3 functions. Goto, Find and sort. I think this came together with the table control. I would like to disable the sort function as it rearranges the cell which are highlighted but not the rest of the cells in the next 2 columns. In my case this is not very good for me as all 3 columns are related to each other like column 1 = Name, column 2 = value, etc... Is it possible to disable to the sort function??
    Cheers
    AL

    It seems strange to me that the built-ion popup menu appears after your own menu is displayed: how are you displaying your popup menu? If you are using RunPopupMenu to handle the right-click event and display your menu it is possible that it fires the built-in menu also.
    If you don't need the built-in popup menu you do not need to remove every single item from it: you can use SetCtrlAttribute (panelHandle, PANEL_TABLE, ATTR_ENABLE_POPUP_MENU, 0); instead.
    In every case, this is a control attribute: you must isse this line for every single table you want to customize: SetAttributeForCtrls ( ) from the Programmer'sToolbox is very useful in this matter.
    As already mentioned in this thread, to add items to the built-in menu you can use NewCtrlMenuItem ()
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • What function would you use instead of "IF" when referencing durations from a pop-up menu. Ie; if c4 equals 1h enter 280, if c4 equals 30m enter 160, etc. IF works fine if c4 is formatted as text but returns 0 when formatted as pop-up.

    What function similar to IF would one use when the reference cell is a pop-up menu of items in duration format?
    Example: if C4 equals 1h enter 280, if C4 equals 30m enter 160, etc
    i can get it to work fine if I format the cell to text but I not only need it pop-up, I also need it to be written in duration format because it's used as duration in other functions.
    thank you for your help in advance
    Christina

    Hi Christina,
    A screenshot is always helpful.
    C4 is your popup? You want to chose a duration there and have 280 or 160 show up somewhere else? Are they the results of a mathmatical formula or do you want a lookup table to show them?
    I suspect something else is going on in your table. I have no trouble having a popup recognized as a duration:
    The formula in C2  =DUR2MINUTES(B2) displaying "60" as expected. Note that "60" is not a duration. If I want C2 to be a duration I need the formula to read:
    =DUR2MINUTES(B2)&"m".
    I hope this helps, if not, post a screenshot including relevant formulas.
    quinn

Maybe you are looking for

  • IPod Touch & Dock - no audio Component Cable

    Hi all. I have a Component Cable to connect iPod Touch (1st Gen) to stereo for audio and it works perfectly when I plug the cable directly into the iPod but if I put the iPod Touch in the Apple Universal Dock then connect the dock using the Component

  • Exception: Argument(s) "type" can't be null in JDeveloper 11g R2 + JAX WS

    Hello, I am trying to run my application which contain JAX WS (2.1) Webservice using JDeceloper 11g R2(11.1.2.3.0) in JDK 1.6_38. The error is coming from @WebService annotation present on the class. When I am running the application, I am getting be

  • I have the icon, but it doesn't load

    I have downloaded firefox, the icon is in the tray and on the desktop, when clicked neither of them open I'm running windows 7professional. it has worked before, but I have just installed more ram, because firefox seems to use a lot of RAM

  • IPhone 5 going into recovery mode when trying to update iOS 7

    My 5 went into recovery mode when trying to update to 7.0.2 OTA. At first I was like ok just a glitch. Well trying to update to 7.0.3, it did it again. So right now I am again in the process of restoring and updating my 5. What is going on?

  • Form processing in JSP with array elements

    Is there a class or object in JSP (No beans JSP only) I can call to reference a HTML Form and its elements. I want to perform database insert using data from an dynamically generated form. The form will generate N rows (based on parameters pass from