Adding commands to a canvas

when the canvas is set to full screen and commands are added to it, the menu will appear if you press either the left or right button near the screen.. is it possible to make it appear only when the left button is pressed and not the right?

I don't think so, but it will depend on the target device. Try to draw some kind of "menu" using the paint and keypressed methods? You'll have to do it manually (coding), there are not standard components for that. Warning: Not easy!

Similar Messages

  • [svn:osmf:] 14411: Adding command line build config files for the syndication library.

    Revision: 14411
    Revision: 14411
    Author:   [email protected]
    Date:     2010-02-24 17:45:22 -0800 (Wed, 24 Feb 2010)
    Log Message:
    Adding command line build config files for the syndication library.
    Added Paths:
        osmf/trunk/libs/Syndication/syndication-build-config.flex
        osmf/trunk/libs/Syndication/syndication-build-config.flexcov
        osmf/trunk/libs/Syndication/syndication-build-config.xml

    Revision: 14411
    Revision: 14411
    Author:   [email protected]
    Date:     2010-02-24 17:45:22 -0800 (Wed, 24 Feb 2010)
    Log Message:
    Adding command line build config files for the syndication library.
    Added Paths:
        osmf/trunk/libs/Syndication/syndication-build-config.flex
        osmf/trunk/libs/Syndication/syndication-build-config.flexcov
        osmf/trunk/libs/Syndication/syndication-build-config.xml

  • Programatically adding command links in ADF Tree?

    Hi,
    I am using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. Can anyone please provide me some sample code for programatically adding dynamically generated ADF command links in the nodes of ADF Tree(Tree nodes in it are created using View Object - Drag & drop of data control). Now how can i add links in the nodes generated.
    Thanks,
    Vik

    Hi,
    try setting partialSubmit=true on the command link. Just in case it fires the action method before the context menu displays
    Frank

  • Adding commands to FrameMaker 8's menus

    Well, I thought it was straightforward. I entered these two commands in mycustomui.cfg so I can open some reference docs:
    <Add Separator4          <Menu !HelpMenu>>
            <Command _MYCharSet <Label Insert Characters Palette>
    <Hypertext message openfile fminit/Plugins/MultiPageSymbolPalette.fm>>
            <Add _MYCharSet <Menu !HelpMenu>>
            <Command _MYcustomB <Label FM Escape Shortcuts>
    <Hypertext message openfile help/Commands[i]_8.0p277_UKE_FDK.pdf>>
            <Add _MYcustomB <Menu !HelpMenu>>
    The commands show up in the menu, but they are grayed out.
    When I enter these commands as hypertext in a regular document, the files open, so I know the paths are correct.
    I'm sure the fix is simple, but I can't figure it out.
    Any help would be appreciated!

    I've done more testing with FM8, FM9, and FM10.
    It seems that Arnis's observation that separators can cause problems is correct. With insertion of Separator4, the new commands are grayed out. Without it, they work correctly. Both absolute and relative filenames are accepted.
    Arnis is incorrect, however, that a semicolon at the start of a line comments it out.
    According to "Customizing Frame Products":
          Text outside angle brackets is treated as a comment. Don’t include angle brackets in comments.
    Therefore, a semicolon before the <Add Separator4 ... > line has no real effect--only the semicolon itself is ignored.
    The separator is fine in FM9 and FM10.
    Also, make sure your angle backets balance correctly.
              --Lynne

  • Adding commands to tree renderer

    Hello
    Quick question:
    I have a layout set similar to the adminexplorer.
    Is there any way I can add a command group to each resource within the folder tree, e.g using a hover menu?  This would allow users to delete or rename folders from within the tree area.
    Thanks for the help!
    Chris

    Hi Chris,
    The "AdminCollectionTreeRenderer" you are talking about is a CollectionRenderer, but I am talking about changing ResourceRenderer.
    Please refer to this to know about the settings you can make on ResourceRenderer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/50/041142e862654ca98ced1607386c9c/frameset.htm
    About CollectionRenderer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/87/3d48475ee8bd448c4031aa98d90524/frameset.htm
    I expect that you duplicated your "AdminExplorer" Layoutset, and if so you will see "AdminResourceRenderer" which is responsible to render the ListView on the right side of your Layout.
    To extend the functioanlity you need to duplicate "AdminTreeResourceRenderer" and assign this to your LayoutSet and make all the settings as I told in my previous post.
    So now you should see two ResourceRenderer set to your LayoutSet, and this should now solve your problem.
    Hope this helps
    Greetings,
    Praveen Gudapati

  • Adding commands to the commands toolbar

    Hi! I'm trying to add a pre-created command to the commands toolbar in Dreamweaver CC 2014 that I am running on Windows 7. Does anyone know how to do this?

    Try this Help article:
    Dreamweaver Help | Automating tasks
    Nancy O.

  • Adding text to java3d canvas

    Hi,
    I have a java3d program running.Now in my running java3d program in the java3d scene i have to draw some lines by dragging the mouse (I am able to do that)....then at any point on some event i should be able to add text (say "these to lines are parallel")..
    Can you explain or give me a working example which has the similar functionality.This will be a great help. As we are new to java3d technology.this is very urgent.Thanks in advance
    shyam

    Try this:
    import java.awt.Font;
    import. javax.vecmath.Color3f;
    int size= 120;
    Text2D textObject = new Text2D("These two lines are parallel", new Color3f(1f, 1f, 1f),
    "Serif", size, Font.BOLD);
    yourTranslationGroup.addChild(textObject);
    Note: you may have to add a rotation, to make sure the text us oriented such that it's perpendicular to the camera.
    Cheers,
    -jeroen

  • Mapping BACK key

    Hi,
    I'm trying to map the BACK and EXIT keys(the above two keys in device see the link) using Canvas with fullscreen mode. The problem is when I press these keys, a menu appears instead of just perform the action, which is not reasonable. for example, in a game with fullscreen mode and two labels in the bottom(back and exit). Anyone know how can I do that?
    [Device Image| [http://img205.imageshack.us/img205/1779/sunbw5.jpg]]
    Thanks alot,
    Deaa

    It looks like you are adding Commands to your Canvas. Then, when you press one of the soft buttons, a menu containing these commands will appear.
    Don't add the commands and you should only receive a keyPressed event as a response to soft button press.

  • Canvas problem while adding forms

    I use Netbeans Visual Midlets. I use keypressed class and I added buttons at my Canvas class succesfully. But I am not able to add stringfields or images at canvas class. If I insert images,stringfields and choicefields at getform() class then I can not use this class if I use canvas class. I should implement new images,stringfields and choicefields() at my canvas class or I can use the methods of getform() at canvas class. If I use getform() class then I can't use methods of canvas. I hope I could tell you what I meant. To make it easier, you can see my codes below :
    public Form getForm1() {
    if (form1 == null) {
    // write pre-init user code here
    Displayable d2=new ShowMapCanvas2();
    Display.getDisplay(this).setCurrent(d2);
    form1 = new Form("form1", new Item[] { getStringItem() });
    form1.addCommand(getCancelCommand());
    form1.setCommandListener(this);
    // write post-init user code here
    smc2.keyPressed(keyCode);
    public class ShowMapCanvas2 extends Canvas {
    public ShowMapCanvas2() {
    public Command getCancelCommand() {
    if (cancelCommand == null) {
    // write pre-init user code here
    cancelCommand = new Command("Cancel", Command.CANCEL, 0);
    // write post-init user code here
    return cancelCommand;
    //</
    protected void paint(Graphics g) {
    setCommandListener(new CommandListener() {
    public void commandAction(Command command, Displayable d) {
    System.out.println("canvas icindeyim");
    if (command == cancelCommand) {
    // write pre-action user code here
    switchDisplayable(null, getForm());
    protected void keyPressed(int keyCode){
    System.out.println("icerde");
    if(getGameAction(keyCode)==Canvas.FIRE) {
    System.out.println("icerdeyim");
    repaint();
    }

    You are saying that when adding images, strings or choice fields to the form works but when you try ti add items like that to a canvas doesn't?
    Canvas and Form classes inherit Displayable. You cannot add an images, strings or choice field like you add them to a form simply because canvas class doesn't have a append method. For this you need to use a graphics object and draw the image,string or what ever your self.
    Regards,
    David.

  • Adding SAP CCMS startup command to SAP Start Profile

    Hi All,
    We need to add SAP CCMS startup command in our SAP start profile.
    We use command sapccm4x -DCCMS pf=<> to start SAP CCMS agent .
    I expect we need to add this command (sapccm4x -DCCMS pf=<> ) with same protocol to execute it with SAP start profile.
    Please let me know how can we add this with SAP start profile.
    Shivam Mittal

    Hi Eric,
    I have added command and CCMS agent is also getting start with SAP startup.
    But when I execute command startsap ....like it shows message "database started";;"Instance Started", I am not getting any SAPCCMS agent startup message.
    Please suggest how can I get in startsap script SAPCCMS startup confirmation messge also. Does it require change in startsap script or we should some command protocol in startup profie for it.
    Please suggest.
    Shivam Mittal

  • Overlay Images and Shapes on the same canvas

    The example copde below was taken from: http://math.hws.edu/eck/cs124/javanotes3/source/
    Is it possible to update the code so that images (jpg,gif) can be added as well as shapes?
    Any help with this is much appreciated.
        The ShapeDraw applet lets the user add small colored shapes to
        a drawing area and then drag them around.  The shapes are rectangles,
        ovals, and roundrects.  The user adds a shape to the canvas by
        clicking on a button.  The shape is added at the upper left corner
        of the canvas.  The color of the shape is given by the current
        setting of a pop-up menu.  The user can drag the shapes with the
        mouse.  Ordinarily, the shapes maintain a given back-to-front order.
        However, if the user shift-clicks on a shape, that shape will be
        brought to the front.
        A menu can be popped up on a shape (by right-clicking or performing
        some othe platform-dependent action).  This menu allows the user
        to change the size and color of a shape.  It is also possible to
        delete the shape and to bring it to the front.
        This file defines the applet class plus several other classes used
        by the applet, namely:  ShapeCanvas, Shape, RectShape, OvalShape,
        and RoundRectShape.
        David Eck
        July 28,  1998
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    import java.util.Vector;
    public class ShapeDrawWithMenu extends Applet {
       public void init() { 
            // Set up the applet's GUI.  It consists of a canvas, or drawing area,
            // plus a row of controls below the canvas.  The controls include three
            // buttons which are used to add shapes to the canvas and a Choice menu
            // that is used to select the color used for a shape when it is created.
            // The canvas is set as the "listener" for these controls so that it can
            // respond to the user's actions.  (The pop-up menu is created by the canvas.)
          setBackground(Color.lightGray);
          ShapeCanvas canvas = new ShapeCanvas();  // create the canvas
          Choice colorChoice = new Choice();  // color choice menu
          colorChoice.add("Red");
          colorChoice.add("Green");
          colorChoice.add("Blue");
          colorChoice.add("Cyan");
          colorChoice.add("Magenta");
          colorChoice.add("Yellow");
          colorChoice.add("Black");
          colorChoice.add("White");
          colorChoice.addItemListener(canvas);
          Button rectButton = new Button("Rect");    // buttons for adding shapes
          rectButton.addActionListener(canvas);
          Button ovalButton = new Button("Oval");
          ovalButton.addActionListener(canvas);
          Button roundRectButton = new Button("RoundRect");
          roundRectButton.addActionListener(canvas);
          Panel bottom = new Panel();   // a Panel to hold the control buttons
          bottom.setLayout(new GridLayout(1,4,3,3));
          bottom.add(rectButton);
          bottom.add(ovalButton);
          bottom.add(roundRectButton);
          bottom.add(colorChoice);
          setLayout(new BorderLayout(3,3));
          add("Center",canvas);              // add canvas and controls to the applet
          add("South",bottom);
       public Insets getInsets() {
            // Says how much space to leave between the edges of the applet and the
            // components in the applet.
          return new Insets(3,3,3,3);
    }  // end class ShapeDraw
    class ShapeCanvas extends Canvas implements ActionListener, ItemListener,
                                                MouseListener, MouseMotionListener {
          // This class represents a canvas that can display colored shapes and
          // let the user drag them around.  It uses an off-screen images to
          // make the dragging look as smooth as possible.  A pop-up menu is
          // added to the canvas that can be used to performa certain actions
          // on the shapes;
       Image offScreenCanvas = null;   // off-screen image used for double buffering
       Graphics offScreenGraphics;     // graphics context for drawing to offScreenCanvas
       Vector shapes = new Vector();   // holds a list of the shapes that are displayed on the canvas
       Color currentColor = Color.red; // current color; when a shape is created, this is its color
       ShapeCanvas() {
            // Constructor: set background color to white, set up listeners to respond to mouse actions,
            //              and set up the pop-up menu
          setBackground(Color.white);
          addMouseListener(this);
          addMouseMotionListener(this);
          popup = new PopupMenu();
          popup.add("Red");
          popup.add("Green");
          popup.add("Blue");
          popup.add("Cyan");
          popup.add("Magenta");
          popup.add("Yellow");
          popup.add("Black");
          popup.add("White");
          popup.addSeparator();
          popup.add("Big");
          popup.add("Medium");
          popup.add("Small");
          popup.addSeparator();
          popup.add("Delete");
          popup.add("Bring To Front");
          add(popup);
          popup.addActionListener(this);
       } // end construtor
       synchronized public void paint(Graphics g) {
            // In the paint method, everything is drawn to an off-screen canvas, and then
            // that canvas is copied onto the screen.
          makeOffScreenCanvas();
          g.drawImage(offScreenCanvas,0,0,this);
       public void update(Graphics g) {
            // Update method is called when canvas is to be redrawn.
            // Just call the paint method.
          paint(g);
       void makeOffScreenCanvas() {
             // Erase the off-screen canvas and redraw all the shapes in the list.
             // (First, if canvas has not yet been created, then create it.)
          if (offScreenCanvas == null) {
             offScreenCanvas = createImage(getSize().width,getSize().height);
             offScreenGraphics = offScreenCanvas.getGraphics();
          offScreenGraphics.setColor(getBackground());
          offScreenGraphics.fillRect(0,0,getSize().width,getSize().height);
          int top = shapes.size();
          for (int i = 0; i < top; i++) {
             Shape s = (Shape)shapes.elementAt(i);
             s.draw(offScreenGraphics);
       public void itemStateChanged(ItemEvent evt) {
              // This is called to respond to item events.  Such events
              // can only be sent by the color choice menu,
              // so respond by setting the current color according to
              // the selected item in that menu.
          Choice colorChoice = (Choice)evt.getItemSelectable();
          switch (colorChoice.getSelectedIndex()) {
             case 0: currentColor = Color.red;     break;
             case 1: currentColor = Color.green;   break;
             case 2: currentColor = Color.blue;    break;
             case 3: currentColor = Color.cyan;    break;
             case 4: currentColor = Color.magenta; break;
             case 5: currentColor = Color.yellow;  break;
             case 6: currentColor = Color.black;   break;
             case 7: currentColor = Color.white;   break;
       public void actionPerformed(ActionEvent evt) {
              // Called to respond to action events.  The three shape-adding
              // buttons have been set up to send action events to this canvas.
              // Respond by adding the appropriate shape to the canvas.  This
              // also be a command from a pop-up menu.
          String command = evt.getActionCommand();
          if (command.equals("Rect"))
             addShape(new RectShape());
          else if (command.equals("Oval"))
             addShape(new OvalShape());
          else if (command.equals("RoundRect"))
             addShape(new RoundRectShape());
          else
             doPopupMenuCommand(command);
       synchronized void addShape(Shape shape) {
              // Add the shape to the canvas, and set its size/position and color.
              // The shape is added at the top-left corner, with size 50-by-30.
              // Then redraw the canvas to show the newly added shape.
          shape.setColor(currentColor);
          shape.reshape(3,3,50,30);
          shapes.addElement(shape);
          repaint();
       // ------------ This rest of the class implements dragging and the pop-up menu ---------------------
       PopupMenu popup;
       Shape selectedShape = null;     // This is null unless a menu has been popped up on this shape.
       Shape draggedShape = null;      // This is null unless a shape has been selected for dragging.
       int prevDragX;  // During dragging, these record the x and y coordinates of the
       int prevDragY;  //    previous position of the mouse.
       Shape clickedShape(int x, int y) {
             // Find the frontmost shape at coordinates (x,y); return null if there is none.
          for ( int i = shapes.size() - 1; i >= 0; i-- ) {  // check shapes from front to back
             Shape s = (Shape)shapes.elementAt(i);
             if (s.containsPoint(x,y))
                return s;
          return null;
       void doPopupMenuCommand(String command) {
             // Handle a command from the pop-up menu.
          if (selectedShape == null)  // should be impossible
             return;
          if (command.equals("Red"))
             selectedShape.setColor(Color.red);
          else if (command.equals("Green"))
             selectedShape.setColor(Color.green);
          else if (command.equals("Blue"))
             selectedShape.setColor(Color.blue);
          else if (command.equals("Cyan"))
             selectedShape.setColor(Color.cyan);
          else if (command.equals("Magenta"))
             selectedShape.setColor(Color.magenta);
          else if (command.equals("Yellow"))
             selectedShape.setColor(Color.yellow);
          else if (command.equals("Black"))
             selectedShape.setColor(Color.black);
          else if (command.equals("White"))
             selectedShape.setColor(Color.white);
          else if (command.equals("Big"))
             selectedShape.resize(75,45);
          else if (command.equals("Medium"))
             selectedShape.resize(50,30);
          else if (command.equals("Small"))
             selectedShape.resize(25,15);
          else if (command.equals("Delete"))
             shapes.removeElement(selectedShape);
          else if (command.equals("Bring To Front")) {
             shapes.removeElement(selectedShape);
             shapes.addElement(selectedShape);
          repaint();
       synchronized public void mousePressed(MouseEvent evt) {
             // User has pressed the mouse.  Find the shape that the user has clicked on, if
             // any.  If there is a shape at the position when the mouse was clicked, then
             // start dragging it.  If the user was holding down the shift key, then bring
             // the dragged shape to the front, in front of all the other shapes.
          int x = evt.getX();  // x-coordinate of point where mouse was clicked
          int y = evt.getY();  // y-coordinate of point
          if (evt.isPopupTrigger()) {            // If this is a pop-up menu event that
             selectedShape = clickedShape(x,y);  // occurred over a shape, record which shape
             if (selectedShape != null)          // it is and show the menu.
                popup.show(this,x,y);
          else {
             draggedShape = clickedShape(x,y);
             if (draggedShape != null) {
                prevDragX = x;
                prevDragY = y;
                if (evt.isShiftDown()) {                 // Bring the shape to the front by moving it to
                   shapes.removeElement(draggedShape);  //       the end of the list of shapes.
                   shapes.addElement(draggedShape);
                   repaint();  // repaint canvas to show shape in front of other shapes
       synchronized public void mouseDragged(MouseEvent evt) {
              // User has moved the mouse.  Move the dragged shape by the same amount.
          if (draggedShape != null) {
             int x = evt.getX();
             int y = evt.getY();
             draggedShape.moveBy(x - prevDragX, y - prevDragY);
             prevDragX = x;
             prevDragY = y;
             repaint();      // redraw canvas to show shape in new position
       synchronized public void mouseReleased(MouseEvent evt) {
              // User has released the mouse.  Move the dragged shape, then set
              // shapeBeingDragged to null to indicate that dragging is over.
              // If the shape lies completely outside the canvas, remove it
              // from the list of shapes (since there is no way to ever move
              // it back onscreen).
          int x = evt.getX();
          int y = evt.getY();
          if (draggedShape != null) {
             draggedShape.moveBy(x - prevDragX, y - prevDragY);
             if ( draggedShape.left >= getSize().width || draggedShape.top >= getSize().height ||
                     draggedShape.left + draggedShape.width < 0 ||
                     draggedShape.top + draggedShape.height < 0 ) {  // shape is off-screen
                shapes.removeElement(draggedShape);  // remove shape from list of shapes
             draggedShape = null;
             repaint();
          else if (evt.isPopupTrigger()) {        // If this is a pop-up menu event that
             selectedShape = clickedShape(x,y);   // occurred over a shape, record the
             if (selectedShape != null)           // shape and show the menu.
                popup.show(this,x,y);
       public void mouseEntered(MouseEvent evt) { }   // Other methods required for MouseListener and
       public void mouseExited(MouseEvent evt) { }    //              MouseMotionListener interfaces.
       public void mouseMoved(MouseEvent evt) { }
       public void mouseClicked(MouseEvent evt) { }
    }  // end class ShapeCanvas
    abstract class Shape {
          // A class representing shapes that can be displayed on a ShapeCanvas.
          // The subclasses of this class represent particular types of shapes.
          // When a shape is first constucted, it has height and width zero
          // and a default color of white.
       int left, top;      // Position of top left corner of rectangle that bounds this shape.
       int width, height;  // Size of the bounding rectangle.
       Color color = Color.white;  // Color of this shape.
       void reshape(int left, int top, int width, int height) {
             // Set the position and size of this shape.
          this.left = left;
          this.top = top;
          this.width = width;
          this.height = height;
       void resize(int width,int height) {
             // Set the size without changing the position
          this.width = width;
          this.height = height;
       void moveTo(int x, int y) {
              // Move upper left corner to the point (x,y)
          this.left = x;
          this.top = y;
       void moveBy(int dx, int dy) {
              // Move the shape by dx pixels horizontally and dy pixels veritcally
              // (by changing the position of the top-left corner of the shape).
          left += dx;
          top += dy;
       void setColor(Color color) {
              // Set the color of this shape
          this.color = color;
       boolean containsPoint(int x, int y) {
             // Check whether the shape contains the point (x,y).
             // By default, this just checks whether (x,y) is inside the
             // rectangle that bounds the shape.  This method should be
             // overridden by a subclass if the default behaviour is not
             // appropriate for the subclass.
          if (x >= left && x < left+width && y >= top && y < top+height)
             return true;
          else
             return false;
       abstract void draw(Graphics g); 
             // Draw the shape in the graphics context g.
             // This must be overriden in any concrete subclass.
    }  // end of class Shape
    class RectShape extends Shape {
          // This class represents rectangle shapes.
       void draw(Graphics g) {
          g.setColor(color);
          g.fillRect(left,top,width,height);
          g.setColor(Color.black);
          g.drawRect(left,top,width,height);
    class OvalShape extends Shape {
           // This class represents oval shapes.
       void draw(Graphics g) {
          g.setColor(color);
          g.fillOval(left,top,width,height);
          g.setColor(Color.black);
          g.drawOval(left,top,width,height);
       boolean containsPoint(int x, int y) {
             // Check whether (x,y) is inside this oval, using the
             // mathematical equation of an ellipse.
          double rx = width/2.0;   // horizontal radius of ellipse
          double ry = height/2.0;  // vertical radius of ellipse
          double cx = left + rx;   // x-coord of center of ellipse
          double cy = top + ry;    // y-coord of center of ellipse
          if ( (ry*(x-cx))*(ry*(x-cx)) + (rx*(y-cy))*(rx*(y-cy)) <= rx*rx*ry*ry )
             return true;
          else
            return false;
    class RoundRectShape extends Shape {
           // This class represents rectangle shapes with rounded corners.
           // (Note that it uses the inherited version of the
           // containsPoint(x,y) method, even though that is not perfectly
           // accurate when (x,y) is near one of the corners.)
       void draw(Graphics g) {
          g.setColor(color);
          g.fillRoundRect(left,top,width,height,width/3,height/3);
          g.setColor(Color.black);
          g.drawRoundRect(left,top,width,height,width/3,height/3);
    }

    Manveer-Singh
    Please don't post in old threads that are long dead. When you have a question, please start a topic of your own. Feel free to provide a link to an old thread if relevant.
    I'm locking this 3 year old thread now.
    db
    edit You have earlier been advised not to post in old dead threads.
    [http://forums.sun.com/thread.jspa?threadID=354443]
    Continuing to ignore this advice will render your account liable to be blocked.
    Edited by: Darryl.Burke

  • Problem in placing the command

    I am developing an application in J2ME. In the midlet I have just added an Exit command and one canvas. But the problem is that the Exit command is coming under Menu. I want it to be displayed as Exit only not under menu. Can you tell me how to overcome this? I am giving you the midlet code.
    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    public class GujiMain extends MIDlet {
         private MainMenuCanvas mainMenuCanvas;
         public GujiMain() {
              mainMenuCanvas = new MainMenuCanvas();
         protected void destroyApp(boolean unconditional)throws MIDletStateChangeException {
         protected void pauseApp() {
         protected void startApp() throws MIDletStateChangeException {
              Displayable d = mainMenuCanvas;
              d.addCommand(new Command("Exit", Command.EXIT, 1));
              d.setCommandListener(new CommandListener() {
                   public void commandAction(Command c, Displayable d) {
                        notifyDestroyed();
              Display.getDisplay(this).setCurrent(d);
    }

    Hi Dhiraj1983.
    Your code seems to be OK. But some devices display commands under menu, some other directly. I think that is impossibile to choose this behaviour.
    Regards

  • Batch Process Change Canvas Size Buggy

    I have 300+ products shots that need to go up to our website.
    Using FW CS3 I was able to resize and optimize both full size
    images and the thumbnails. The issue is due to our website setup
    the thumbnails are expected to be exactly 100x100. If the canvas
    size is irregular the image gets stretched or squeezed when served
    up on the site.
    So I created a custom action to set the canvas size to 100 x
    100 with a white background and to expand from the center out. When
    I run this manually everything is ducky. But when I add it to my
    batch process the actual content of the thumbnails moves from image
    to image. Some items are centered fine, some are too far left or
    too far right (or high,low) some are shifted so much that they are
    actually cut off to the left or right. There seems to be no rhyme
    or reason to it.
    Here is how the batch is set up:
    It grabs the original file ( a press resolution PSD file) and
    fit to size to 100 x 100. Then I run the command to set canvas size
    to 100x100 white background. And then it exports it to optimized
    jpeg. I have tried running the actions separately. And when I just
    run the fit to size and optimization as a batch the thumbs look
    fine no weird positioning. So I know it is the command.
    Any ideas?

    Thankyou Heath
    If I choose scale > scale to fit area > then choose a maximum width or height, that works for that part of the process.
    Percentage doesn’t work, because I need them to be a particular size (either width or height, doesn’t matter , as long as nither of them exceeds 00px)
    For the part that I then want to find the smallest measurement (width or height) and make a particular size, there doesn’t seem to be any way that I can find in FW to do that.
    But, after searching on line, I found an app that does all that and more, its brilliant.  It will find the largest side, the smallest side, or whatever and change it to what you want and rescale the other side to fit.
    This is the link - http://www.rw-designer.com/picture-resize
    Fiona

  • Has the options for custom command buttons and scripts been removed from speedgrade?

    I run alot of framecyclerDI machines and am looking to upgrade them but i cant seem to find any method of adding command bars and buttons like you could in the iridas versions of speedgrade i also cant see a way of executing any external scripts which for me is a big issue as i have a hell of alot of pipeline scripts that the artist could execute.... any ideas or have i just missed somthing ?.......(would love it if they added a python sdk)

    Hi Dennis,
    Thanks for replying,
    Its actually more the other way getting speed grade to control outher things.
    i.e
    take the in and out points and send the track to a dcp creator
    rendering and sending anotated frames directly into my databases notes system
    taking the shotname and seeing if theres is a new version avaliable and pull it from the server to the local machine drive/cache
    Theres a load more..but you get the idea .. using the buttons to execute these commands in the interface made these functions editor friendly...
    I can get round some of the issues by reading from the autosave.ircp and setting up a PYQT GUI but that seems like a bit of a hack.
    I understand the reasons to keep the UI uniform (editors dont like it when you move buttons) but Im suprised these options got removed as intergrating software into pre-existing pipelines would seem to be a selling point for any software..
    Are there any plans in the roadmap for speedgrade that would help me in the future?
    S.P.F

  • What is command for full screen preview?

    Hello guys,
    could please anyone just remind me? Because I haven't use it for a while, I have completely forget what the command is.
    When I go to
    View>Video Playback>Digital Cinema Desktop Preview
    then there is some command which brings Canvas to full screen. Which one is it?
    Thank you.

    view > external video > all frames
    or
    command + F12

Maybe you are looking for

  • Using a US Airport Extreme in England

    I have an Airport Extreme that I've been using in my home in Maryland for wi-fi. Now I'm moving to England. Will the Airport Extreme work over there? I see two potential issues: The plug that's supplied won't fit in the British outlet. And do they us

  • Sad face with exclamation point on my Ipod

    hi, my name is John and i live in South america. Two days ago i got a problem with my Ipod, it got frozen and i clicked on the menu and the select button. It turned off and never started anymore. Now i get a sad face and a exclamation point on the sc

  • Functionality Testing Using B1 Test Composer Tool

    Hi, I would like to use B1 TC for functional testing of our add-ons. Will it be possible for me to do the functional testing(add-on's expected against add-on's actual) of the add-on using B1 TC? Could anyone explain with some examples so that I can s

  • Terminal command for Folder List?

    What is the command line for Terminal to print out a list of folders on my HD? It doesn't have to actually send the result to my printer. I would happy with just a list on the screen.

  • Tecra A2: How to get onto a CC3 network

    I am trying to get a Tecra A2 Notebook onto a CC3 Network, but cannot find the drivers (Dos and Protocol.ini files) to enable the notebook to pull the info it needs from within Dos. Has anyone got a fix or know what needs to be done please?