Poistion Canvas on the screen

Hi,
I have a Form which opens with a small size Main canvas which has a button, this button when pressed displays another smaller canvas on the screen, I am trying to change the display position of the smaller Canvas. I have tried changing the X , Y position on the Canvas property but this does not seem to help. Can someone please advise me how I should be doing this , so I can display the smaller canvas appropriately.
Thanks
FM

IQ wrote:
Hi,
I have a Form which opens with a small size Main canvas which has a button, this button when pressed displays another smaller canvas on the screen, I am trying to change the display position of the smaller Canvas. I have tried changing the X , Y position on the Canvas property but this does not seem to help. Can someone please advise me how I should be doing this , so I can display the smaller canvas appropriately.
Thanks
FMMake another window for 2nd canvas and set windows height and weight.
hopes this helps

Similar Messages

  • How to move the canvas in the screen

    Hi,
    I am a j2ME game developer. I wanna create a canvas which contains something that can't be displayed all at a time. the user has to scroll across to view the canvas. I am not aware of the issues of this kind. Help me out in this regard.
    Cheers
    joe

    You could add a scrollPane to the component holding the image however, as you may or may not know, a scrollPane can only be added to Container type components so you can't add a scrollPane to a Canvas. You could add it to its parent Frame however.

  • The application does not use the  screen and run in the background

    Hi
    I have downloaded a package of j2me Midlet
    from [link] here [link]
    and try to reuse the code
    but I get the following error when running the code:-
    The application does not use the screen and run in the background
    I think the error into one of these two classes
    package main;
    import javax.microedition.midlet.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    import java.io.IOException;
    import java.io.InputStream;
    public class MainMidlet extends MIDlet implements CommandListener {
        private SSGameCanvas gameCanvas ;
        private Command exitCommand ;
        private Player player = null;
        public void startApp() {
      try {
           //   create new game thread
              gameCanvas = new SSGameCanvas();
              gameCanvas.start(); // start game thread
              exitCommand = new Command("Exit",Command.EXIT,1);
              gameCanvas.addCommand(exitCommand);
              gameCanvas.setCommandListener(this);
                Display.getDisplay(this).setCurrent(gameCanvas);
       catch (java.io.IOException e)
                e.printStackTrace();
            try {
                // start sounds
                InputStream in = getClass().getResourceAsStream("/resource/startfly.wav");
                player = Manager.createPlayer(in,"audio/x-wav");
                player.setLoopCount(1);
                player.start();
            catch (MediaException ex)
                ex.printStackTrace();
             catch (IOException ex)
                ex.printStackTrace();
        public void pauseApp() {
        public void destroyApp(boolean unconditional) {
            if (player != null) {
                player.close();
            System.gc();
      public void commandAction(Command command, Displayable displayable) {
           if (command == exitCommand)
                 destroyApp(true);
                 notifyDestroyed();
    package main;
    import java.io.IOException;
    import javax.microedition.lcdui.*;
    import javax.microedition.lcdui.game.*;
    public class SSGameCanvas extends GameCanvas implements Runnable {
        protected GameManager gameManager;
        protected boolean running;
        private int tick=0;
        private static int WIDTH;
        private static int HEIGHT;
        private int mDelay = 20;
        Form mainForm;
        Display display;
        //private int MaxTime;
        public SSGameCanvas() throws IOException{
            super(true);
            gameManager = new GameManager(5,5,getHeight()-10,getWidth()-10,this);
        public void start() {
                this.running = true;
                Thread t = new Thread(this);
                t.start();
        public void stop() {
            running = false;
        public void render(Graphics g) {
            WIDTH = getWidth();
            HEIGHT = getHeight();
            // Clear the Canvas.
            g.setColor(0, 0, 50);
            g.fillRect(0,0,WIDTH-1,HEIGHT-1);
            // draw border
            g.setColor(200,0,0);
            g.drawRect(0,0,WIDTH-1,HEIGHT-1);
            // draw game canvas
            gameManager.paint(g);
        public void run() {
            while (running) {
                // draw graphics
                render(getGraphics());
                // advance to next graphics
                advance(tick++);
                // display
                flushGraphics();
                try { Thread.sleep(mDelay); }
                catch (InterruptedException ie) {}
        public void advance(int ticks) {
            // advance to next game canvas
            gameManager.advance(ticks);
            this.paint(getGraphics());
    }Edited by: VANPERSIE on Jul 10, 2012 12:26 PM

    Hi Andi,
    Thanks for your reply.
    Yes, I have waited for a while and the result doesn't change.
    The Porblem here is the application is seen started in visual administrator.Only restart brings up the page back.
    Can you please suggest anything.
    Thanks and regards
    Nagaraj

  • How do I get a header image to span the width of the screen without getting distorted?

    I've just finished two online classes for Dreamweaver through Ed2go and have a reasonable idea of HTML and CSS. What I'm trying to do is a re-make of my personal web site (www.astral-imaging.com) that I display my astronomy images using all CSS layout and proper HTML coding. The existing site was done long ago using FrontPage and is loaded with tables and nested tables for layout. I need to make several templates for repeated pages but I'm lost on how to create my header banner. I've used Photoshop CS5 to create what I want to use and saved it as a .JPG file. The original canvas size is 1000x200 pixels but I also want the site to use a liquid template so that if the viewer is using a monitor at 1024 width or higher the page will fill the screen.
    My target audience is mostly people in astronomy groups that I participate with and their screen resolutions will most like be 1280 and up. The images posted are usually 1000, 2000, and 3000 pixels wide. The reason for this is that there is very faint and small detail in these images and the larger sizes allows the viewer to scroll around in the full sized images to see this detail. There are links so the viewer has a choice of how large an image they want to view. So this explains my rational behind the sizing and I'm left with how to make the header expand without distorting to various sized displays. Below is what I had designed. Am I asking for too much or just a bit too green to know what to do? Any suggestions would be extremely welcomed. The PSD file has the separate 4 layers. What I have though about is the header being multiple images:
    the actual background gradient image
    the DRO info floated left
    Glimpses of Our Universe centered
    image floated right
    Only issue is I'm not sure if this will work and if so what is the proper coding? I think there needs to be a div container and although I know how to create the div, inserting multiple items into it and using CSS to style them is confusing me. Is there a link to information on DIVs that would help explain this. From what I've seen from my Google searches I haven't seen anything that addresses this. Maybe I need better search terms.
    Thanks,
    Steve

    Nancy,
    I appreciate the feed back but this doesn't extend the banner across the page. I understand the header background color filling in the area to the right of the banner image as well as the background color of the body tag. I guess what I'm wondering is if it's possible to have multiple images in the header div tag? I may not even be explaining this correctly. If I were using a table to lay this out it would have 1 row and 3 columns with the gradient image as the background in all 3. I could keep the cell width set to a fixed number for the right and left cell while center cell would be able to span the remainder of the screen width to fill across the top of the page. The hight would adjust to maintain the aspect ratio. Does this make any sense?
    Basically the code below is what I'm after but using CSS to lay it out and not a table:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <style type="text/css">
    table {
    background-image: url(images/banner_background.png);
    text-align: left;
    body {
    background-color: #000;
    .center {
    text-align: center;
    background-image: url(images/banner_background.png);
    .right {
    background-image: url(images/banner_background.png);
    margin: 1px;
    padding: 0px;
    </style>
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th width="22%" scope="col"><img src="images/DRO_trans.png" width="325" height="200"></th>
        <th width="59%" class="center" scope="col"><img src="images/glimpses-astral.png" width="450" height="120"></th>
        <th width="19%" scope="col"><img src="images/Thor-3rd-300.jpg" width="300" height="198" alt="Thor's Helmet"></th>
      </tr>
      <tr>
        <td colspan="3"> </td>
      </tr>
    </table>
    </body>
    </html>
    If it's any help or you are curious, the png files can be downloaded here: http://www.astral-imaging.com/test_images.zip
    Thanks,
    Steve

  • Enlarge a section of the screen or at least vertical zooming option

    Isn't there in FCE the zooming funcionality of Logic (Zooming to enlarge a section of the screen to fill the whole window)?
    And if no, is there at least a vertical zooming option?

    I'm not sure I understand what you need.
    In any case if you want to enlarge a section of the clip, you can use the Motion tab of the viewer: open the clip from the timeline into the viewer, open the Motion tab, change Center and Scale until the section you want is centered in the window and zoomed as required.
    If you want you can also keyframe both Center and Scale to move them as you like.
    As another possibility you can activate Image+Wireframe in the canvas, and while the clip is selected in the timeline you can drag the image in the canvas window to move its center, and drag one of its corners to change its zoom.
    I hope this answers your question
    Piero

  • How do I change the screen size to standard in iMovie 10?

    I can't seem to find where to change the screen to standard size - in previous imovies it gave the option when creating the new project but this version doesn't seem to.

    Star with:
    Menu > File > New from Template Chooser > Sidebar > Page Layout > Blank > Blank Canvas
    If you need to have two cards on one page then just set up one using text boxes and images to the 4 x 6 (inches?), group them and option shift drag a second copy down the page so you then have 2 and alter the copy as you need.
    Change the text and images to placeholders, capture those as a Layout and then save that as a template.
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&highlight=labels &mforum=iworktipsntrick
    1. To make the individual card follow the instructions for Labels & Business cards but use your size:
    2. To make the placeholders see Double folded Greeting Card.
    3. To make the template follow Letterhead and follower sets ignoring the irrelevant bits, and only capturing one page, before saving as a template.
    Peter

  • When I render my video I get a black bar on the left side of the screen

    I just upgraded to FCS 2 and so far it's been a complete waste of money. I'm having nothing but problems with FCP, Compressor, and QMaster. I will just post my FCP problem here.
    I've edited a weekly video podcast and everything looks great, until I render it and export it. When I render it, I get a constant, solid black bar on the far left of the video that takes up about 5% of the screen. My layers are definitely sized correctly to fill up the entire canvas, and they are all centered. I cannot figure out why I am getting this black bar or how to get rid of it without ditching the upgrade and going back to FCP5.1.
    I have already tried completely uninstalling the FCS suite and reinstalling. No luck. Any help would be GREATLY appreciated.

    Thanks for the reply.
    My original source material is in Apple Intermediate Codec, with 32-bit float audio and a variable frame rate. This has not been friendly to FCP, so I use Quicktime to convert it to Apple ProRes with 24-bit audio and 29.97 frame rate. This is what I import into FCP.
    My sequence settings are set to the same specs as my source material. 854x480, square pixels, no field dominance, Apple ProRes compression.
    The black bar on the left side of the screen shows up before I even export. It shows up when I render everything.
    I am exporting with Quicktime Conversion to:
    MP4
    h.264 codec
    720x405
    1000 video bit rate
    Main Profile
    No cropping/filters or anything.
    The ONLY thing I did different before upgrading to FCP6 was that I used Apple Intermediate Codec all the way through. I was told by an FCP instructor that writes and publishes all kinds of FCP training material that I should upgrade to FCP6 and use the Apple ProRes422 Codec instead, so that's what I'm trying to do.
    I am going back to restart my project using Apple Intermediate Codec all the way through like I used to, but it will be awhile before I can tell if that solved the problem. Either way, I would like to be using the ProRes codec....
    Thoughts?

  • Different clips in various sections of the screen...

    The only way I am familiar of having various clips on the screen at once is by arranging them in the tracks and then cropping, scaling, and moving them around in the canvas.
    Is anyone familiar with another method?
    Thank you.

    What's wrong with this method?
    Shane

  • Time line and canvas missing from screen!

    Time line and canvas missing from screen!
    Help!
    Can not retreave them from Final Cut G.U.I
    G5   Mac OS X (10.4.9)  

    In the Browser, double click (aka open) ANY sequence. The timeline and canvas will reappear.
    If need be, create a new sequence.
    x

  • Fill the screen is too big

    When I zoom to fill the screen the window expands under the layers panel.  Is there a way to to make it stop at the panel and not under it?

    You have a few solutions for your issue:
    1. If you're unsure about docking, on the top right hand side, you can 'Reset' your workspace.
    Photoshop > Window (on Menubar) > Workspace > Reset (Essentials) or whatever workspace you're currently on.
    If you have custom panels open in your workspace, you may want to 'Save' your workspace before 'Resetting' to a system preset. Resetting to 'Essentials' will dock all panels by default.
    2. Change your Screen Mode by pressing 'F' key while you're in Photoshop with your document open. This will toggle through 3 screen modes that PS has. The first 'F' press will go to Full Screen with Menu Bar. The second F press will go to Full Screen only (all tabs/ panels hidden).
    3. Press 'Tab' key when your document is open. This will toggle toolbar & panels on/ off. Press 'Tab' again to bring them back.
    All 3 solutions will let you work on your canvas without having to worry about a panel hiding your canvas/ work area.

  • Programs open up scattered all over the screen...can this be changed?

    I am new to a MAC as I recently go a 27" iMac. I am loving it, but finding some of the functions sort of odd. I have searched and searched for an answer, but have gotten noplace. I thought I would sign up here it looks like a great resource. I was also hoping someone could answer this for me:
    Do all mac programs open up scattered all over the screen? I was always used to a program opening and it was clear where the entire window was. On my mac, if I open, say Photoshop, the tools panel is along one side, then there is no canvas, but the layers panel, or others I have open will be somewhere on the right side. When multiple programs are open, it is really hard to tell which program I am currently in as it seems so messy. All the programs seem to open this way. Is this a feature that can be turned off, or is this simply the way it is?
    I am not sure if I explained this very well, but somehow I would like to be able to clearly see which program I am in, rather than have bits and pieces of the program randomly placed on the screen with no definite boundaries to tell me where the program ends. Maybe it has something to do with having such a large screen?
    Any help you could offer would be greatly appreciated! Thank you in advance.

    Upper, left-hand corner of your menu bar, next to the Apple icon, lists the current, application that has focus.
    Since you're new, see:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Mac OS X keyboard shortcuts,
    Anatomy of a Mac,
    MacTips, and
    Switching to the Mac: The Missing Manual, Snow Leopard Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • Video image after compressor does not fill the screen

    I am trying to convert some videos from DVD to Apple TV. Frame size is 720 x 480. In FCP 5.1.4 when I view the clip in the viewer it looks fine, widescreen with black bars at the top and the bottom, image touching both the right and left edges of the viewer. In the Canvas, however, with Fit to Window selected it shows as a very small box with a lot of black on all sides.
    After conversion to mp4, it is even worse. In Quicktime player you can see the video window with grey space at the top and the bottom of the image. However, this is just a very small window in a sea of black. I would guestimate that this window is only using 1/9 of the total screen space.
    How can I get the video to fill the screen?

    The issue is the AppleTV setting. I've been working this issue for 4 months and can't figure it out.
    SO...
    I just encode it myself... I use File - Export - QT Conversion - BROADBAND HIGH and set my size in the OPTIONS button to what I want.
    Works great for me. And the AppleTV sees it fine.
    CaptM

  • Pressure sensitivity uneven on different areas of the screen

    Just upgraded my x230t to win8. After much trial and error I finally got the pen to have very little pressure sensitivity by increasing the hardness of the pen tip to full in the pen settings (control panel). But I am not sure if this is pressure sensitivity. The problem now is that I get thin light lines in the middle of the screen but hard dark lines after the middle region of the screen when drawing with the same pressure. And its the same regions even if i move the canvas. I have attatched a screen shot too. Could it be my screen or my digitizer? I am confused...... please help. 
    The lines on the attached pic is drawn with equal pressure.
    Solved!
    Go to Solution.

    The conditions of the experiment are not evidence. It is impossible to draw freehand lines with equal pressure on the entire surface of the canvas. You may have to retry using a ruler, in tablet mode, the side of your hand (don’t forget to put on a thin glove) sliding onto the screen.
    Example with my X220t in ArtRage Studio. I used the ruler stencil. (Highly compressed jpeg image):
    X220t | i7 | 320GB HDD | 8GB RAM | WIN7 PRO
    IdeaCenter A520 | i5 | 1 TB HDD | 6GB RAM | WIN8.1

  • Inherited characteristics of the screen.

    Hello,  how are you?
    Well I do not know if this should  really be the title of my discussion, but I'll try to explain what I do.
    I have a canvas ready to flex and this screen has a menu,  datagrid, field of research, search filters, etc ...
    On another screen, I want to inherit characteristics of my  screen, type menu position, where is the data grid, etc ...
    Things that will change is the DataGrid can not be the same,  Comobox used as a filter for a search would also change, add some  screens in some menus ...
    All this in a  dynamic and automated, as if extending the first screen ...
    How do this kind of application?
    As this technology called the flex that automates the creation  of fabrics, components, etc ...

    It is difficult to answer because there are lots of options.  It depends on
    what you want to share between the screens and how skilled you are.  You
    might be better off just copying and maintaining the MXML for the datagrid
    and menu.
    If you want to build a base-class you can, but how depends on what the
    extensions look like.  If there is just one area of different controls you
    can probably manage that via the defaultProperty trick.
    You might also consider binding to some external set of constants that set
    the size of the UI widgets.

  • Canvas on the Internal Frame overlap the Menus.!!!

    hi friends
    i have added canvas on the internal frame(contentpane).
    when internal frame appears on the screen menus are being overlapped.
    it means if i open the menu they will be hide behind canvas and can not be seen.
    plzz guide me what to do?

    This is a typical problem when mixing Swing (JFrame) components with AWT components (Canvas). Make sure you stick to only one of these GUI packages when implementing your own gui.
    Have a look at the java tutorial.
    http://java.sun.com/docs/books/tutorial/uiswing/painting/overview.html
    Manuel Amago.

Maybe you are looking for

  • Looking for a powerful app for itunes

    I read about that app on usingmac.com as an ad. It is so powerful that can search the tracks info even if the music is imported from a CD and all tag turns to "unkown". It can search CD cover as well. I guess it has both PC and Mac ver, yet not free.

  • Using PFX certificate to call web services

    Hi, I need to use a PFX certificate to invoke a web services over HTTPS using a simple Java client; I've followed these steps: 1 - convert .pfx certificate in .cer format: I've imported the certificate in Internet Explorer and then exported in .cer f

  • IWeb 1.1.1 and "Invalid colorspace type"

    Every time (yes, every time) I publish my iWeb site to .mac, iWeb (v1.1.1) reports that publishing has failed due to a network error. If I leave iWeb open the data continues to upload in the background, although I can't see it. Once the network activ

  • Go to markers in variable movies

    I have this movie behavior at the beggining of movies A, B and C. global n2f on StartMovie   member("content").text =""   updateStage   n2f=[:]   n2f[#marker1]="cast member name1"   n2f[#marker2]="cast member name2"   n2f[#marker3]="cast member name3

  • Define namespaces at element level

    hi, Is it possible to define namespaces at element level. Consider the Below xml file, for which i have to generate a single XSD( not seperate XSD for every namespace) <sap:Envelope xmlns:sap="urn:sap-com:document:sap" version="1.0">   <sap:Header xm