Problem with panel resize option

Hi all,
I am working on an application which i want to run on all the different resolutions. So, i searched the whole LV forum to get the solution for my problem.
after going through many related discussions i found that one should develop the app in the min resolution which it should support and in the VI properties the option for panel resizing should be tick marked.
i did exactly the same, but still couldn't get it worked for my application.
i am developing my app on 1024*768 resolution. it runs fine on the same resolution if i don't tick mark the resizing option. but, when i tick mark the option and run the app on the same resolution, it crops some part from the bottom.
I am attaching the picture of the interface when run with resizing option and without it.
Pls look into the prob and let me know how can i make it work?
Thanks,
Ritesh 
Attachments:
Interface_With proportions.JPG ‏95 KB
Interface_Without proportions.JPG ‏103 KB

For a GUI of this nature, there is no easy answer to this problem.  Search the forums for "large font" to get many examples of how people have solved this issue.  I usually bite the bullet and handle all resizing myself.  An example of this can be found here.
Since you want to cover the entire workspace, you need to know what this is.  There are two VI server methods which will give you pieces of this information.  Display:All Monitors will give you the valid coordinates for all monitors attached to the computer.  Display: Primary Workspace will give you the useable workspace of the primary monitor.  This does not include the space used by the Windows taskbar (and, I assume, the GNOME, OS X, or KDE equivalents, but have not verified this), so is different from the area given by the first property.  You can fairly easily determine which display is the primary workspace by checking bounds, but do not assume that the taskbar is on bottom of the display when you do this.
If you have problems finding information or something is not clear, let us know.
Message Edited by DFGray on 03-03-2010 08:10 AM
This account is no longer active. Contact ShadesOfGray for current posts and information.

Similar Messages

  • Problems with the Title Option in Adobe Premiere

    I am having a problem with this option because when it shows the title panel, it is very incomplete; it doesn't have as many option as it had before, such as color or shape options. It started happening when I tried to blur our somebody and pick an hoxigonal shape from the panel and a sign showed up saying that there was a problem and then the program would shut down and wouldn't open later on unless I restarted the computer. Now, it opening without any problem but the title panel is still very basic.

    What the other users have said is correct. Premiere captures through FireWire or through SDI/HDMI via a 3rd party solution.
    For your situation I would say the best bet is to connect you camera to your computer via USB or use a card reader and copy the entire directory to your hard drive and ingest into Premiere via Media Browser.
    If you Google 'how to make stop motion in premiere pro' there are tons of great tutorials.
    Best,
    Peter Garaway
    Adobe
    Premiere Pro

  • Problem with H and Option key on a macbook keyboard

    I have a problem with my macbook keyboard, any time i tried to use the "h" or "option" keys i get the TM symbol.
    All other keys works perfect
    i don't know what happend?
    Thanks

    To access NTFS Windows from your MAC OS via Bootcamp, use this software:
    http://www.paragon-software.com/home/ntfs-mac/
    To access Mac from your Windows via Bootcamp, use this software:
    http://www.mediafour.com/products/macdrive/bootcamp/

  • Problem with JFrame resizing at runtime

    Hi All,
    I have a problem with resizing the JFrame at runtime. Even if i resize the JPanel. It is not affection on all the components over the frame. How can i solve that I am using AbsoluteLayout(jre1.6) and here i am going to provide you code snippet. My requirement is to resizt the form. If form is small in size then all the component should also be according tothe size of the form.
    public void initComponents(int size) {
    if(size >= 50) {
    x_co_or = 300;
    y_co_or = 300;
    } else if(size < 50) {
    x_co_or = 200;
    y_co_or = 200;
    jPanel1 = new javax.swing.JPanel();
    jButton1 = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
    jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
    jButton1.setText("jButton1");
    jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 40, 110, 40));
    getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, x_co_or, y_co_or));
    pack();
    Can anybody suggest any idea/solution.
    Any idea/solution are most welcome.
    Regards,
    Pradeep Dubey

    How can i solve that I am using AbsoluteLayout(jre1.6)
    and here i am going to provide you code snippet.no need for the snippet, you're using absolute positioning, which means you're responsible for location and size on every single change.
    start coding now, take about a week, or you could use a layout manager, take maybe, 5 minutes

  • Problem with file download option in ALV via ITS. Please help!

    Hi Experts,
           I have a ALV report which I have web enabled using ITS service. In the ALV there is a delivered functionality for file download. It works fine when the report is run in the SE80. But when I run the ITS service for the report and choose file download option it displays a page saying "this page has been diaplayed due to technical reasons" with title "File properties". In addition it looks for Java runtime in the browser. After all this it opens a popup window for selecting path and file name.
    This is not user friendly and many customers have rasied their concerns on it.
    My question is that,
    Q1: What is the need of this "File properties page"? Why ITS calls this while ABAP editor does not?
    Q2: Is there any way we can suppress this so that it directly opens a popup window for selecting path and file name?
    Please help me.
    Thanks
    Gopal

    Hello Klaus,
    i have also the problem with these intermediate screens!
    We have in between installed patch 22 for ITS 6.20 and SP18 at SAP Netweaver 2004!
    But they are still not processed invisible for the users.
    Are there any additional parameters, which controls this behaviour(~webgui_updown_make_visible is not used!)?
    How can i check, if i have really a.ex. the actual ws.jar-file or other related files of the patch?
    We are using the standalone ITS with an own (modified) IAC with an own CI-design for the webpages. The intermediate screens are displayed with the "normal" SAPGUI-design because of the parameter ~generatedynpro. Without this it does not work, because the template SAPLSIT_0100 is missing!
    Or do you have an example for such a intermediate template with the applet for an upload of a file?
    Thanks in advance
    Felix

  • Problem with meta key option in Terminal app!

    I used Terminal for awhile now with and without meta-key option but I like the meta-key to be turned on cause im familair with tabbing that way. But one thing I can't do in like irssi, is to make symbols with altkey1234567890.. I can do that without the meya-key option.. Anyone know how to solve this problem?

    This seems a [long-standing|http://www.entropy.ch/blog/MacOSX/2009/01/27/Mac-OS-X-Problem-Unsolved-for-Years-Terminal-Meta-Key-and-Internati onal-Keyboards.html|Mac OS X Problem Unsolved for Years: Terminal Meta Key and International Keyboards] issue.
    A possible solution could be to find how to specify an arbitrary alternate key as the META key, for example the Caps Lock or Fn key.
    Another solution could be to tweak the shell to print the requested characters, even with the "use Option as the META key" option enabled. For what I understand, this route for the Bash shell is explained [here|http://anders.janmyr.com/2009/01/making-mac-os-x-terminal-hum.html|Making the Mac OS X Terminal Hum]. However, I don't know enough of *nix and shells to really understand what's written in that article… moreover, I use the tcsh shell and those instructions seems to me very shell-specific.
    Any idea of what needs to be tweaked in a tcsh shell environment?

  • Problem with getting resized image's bytes

    I've got a problem with getting correct bytes of a newly resized image. The flow is that I retrive an image from the filesystem. Due to the fact that it is large I resize it to a 50x50px thumbnail. I can display this thumbnail in #benchmark1 (see code below). Unfortunately something's wrong with my imageToBytes funtion which returns reasonably small size of image but is totally useless - I can't make an image of it anymore so at #benchmark2 the application either crashes or keeps freezing. I saved this byte array on my disk and tried to preview under Windows how does it look but I got a message "Preview unavailabe". I did some digging in the Internet and I supposed that it's because I don't use any jpg or png encoders to save the file. Actually I think that it's not the case, as the bytes returned from method imageToBytes look weird - I cannot even make a new image of them and display it without any saving in memory.
                                  byte[] bytes = FileHandler.readFile (
                                          FileHandler.PHOTOS_PATH, fileName);
                                  Image img2 = Image.createImage (bytes, 0, bytes.length);
                                  img2 = ImageHandler.getInstance ().resize (img2);
                                                    //#benchmark1
                                  bytes = ImageUtils.imageToBytes (img2);
                                  img2 = Image.createImage (bytes, 0, bytes.length);
                                                    //#benchmark2my imageToBytes function is as follows:
         public static byte[] imageToBytes (Image img)
              int[] imgRgbData = new int[img.getWidth () * img.getHeight ()];
              byte[] imageData = null;
              try
                   img.getRGB (imgRgbData, 0, img.getWidth (), 0, 0, img.getWidth (),
                           img.getHeight ());
              catch (Exception e)
              ByteArrayOutputStream baos = new ByteArrayOutputStream ();
              DataOutputStream dos = new DataOutputStream (baos);
              try
                   for (int i = 0; i < imgRgbData.length; i++)
                        dos.writeInt (imgRgbData);
                   imageData = baos.toByteArray ();
                   baos.close ();
                   dos.close ();
              catch (Exception e)
              return imageData;
    I've run totally out of any idea what's wrong, please help!
    Edited by: crawlie on Jul 17, 2010 6:21 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hey Crawlie,
    Please note that simply writing int values into ByteArrayOutputStream will not suffice. Please have a look at the following conversion from int pixel value into byte[4]:
    public static final byte[] intToByteArray(int value) {
            return new byte[] {
                    (byte)(value >>> 24),
                    (byte)(value >>> 16),
                    (byte)(value >>> 8),
                    (byte)value
    }Good Luck!
    Daniel

  • URGENT: Heap space problems with image resizing

    I'm creating a Swing program, with an InternalFrame-type interface. One of the frames contains a .gif file background and then primitive G2D objects are drawn on top of it.
    The background image loads and displays fine at its original size, but I've added code for when the window resizes, and resizing the image causes the VM to give me an OutOfMemory exception.

    I tried this without any problem (with a gif of 137 kb):
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ImageFrame extends JFrame {
        public ImageFrame() {
            initComponents();
            Toolkit T=this.getToolkit();
            im0=T.getImage("C:\\sophie.gif");
            MediaTracker mediaTracker = new MediaTracker(this);
            mediaTracker.addImage(im0, 1);
            try {
                mediaTracker.waitForID(1);
            } catch (InterruptedException ie) {
                System.err.println(ie);
            jInternalFrame1.add(new MyPanel());
        private void initComponents() {
            jDesktopPane1 = new JDesktopPane();
            jInternalFrame1 = new JInternalFrame();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            jInternalFrame1.setResizable(true);
            jInternalFrame1.setVisible(true);
            jInternalFrame1.addComponentListener(new ComponentAdapter() {
                public void componentResized(ComponentEvent evt) {
                    jInternalFrame1ComponentResized(evt);
            jInternalFrame1.setBounds(0, 0, width, height);
            jDesktopPane1.add(jInternalFrame1, JLayeredPane.DEFAULT_LAYER);
            getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-800)/2, (screenSize.height-500)/2, 800, 500);
        private void jInternalFrame1ComponentResized(ComponentEvent evt) {
            width=jInternalFrame1.getWidth();
            height=jInternalFrame1.getHeight();
        public static void main(String args[]) {
            new ImageFrame().setVisible(true);
        private int width=500,height=300;
        private Image im0;
        private JDesktopPane jDesktopPane1;
        private JInternalFrame jInternalFrame1;
        class MyPanel extends JPanel {
            public void paint(Graphics g1) {
                g1.drawImage(im0,0,0,width,height,this);
                g1.dispose();
    }

  • Odd problems with vda -x option

    I am using VDI 3.4.1, and have discovered that two simultaneous runs of vda with the '-x' option results in one of the runs ignoring that option. For example, try either of the following commands:
    vda provider-show -x "provider" < /dev/null & vda provider-show -x "provider" < /dev/null &
    vda pool-desktops -x "pool" < /dev/null & vda pool-desktops -x "pool" < /dev/null &
    In both cases, the output from one of the vda runs will be as expected, but the other one will output as if '-x' had not been specified. This becomes a problem when running housekeeping script from cron. Has anyone else experienced this behaviour? Is there a fix?

    I can see the screenshot at my end.
    The skimmer is on a gap clip and as far as can be seen in the picture, there is no other content at this point.
    If I understood correctly, you still hear audio at that position - is that it?
    There are connected audio clips a bit before and a bit after that point.
    I am guessing there may have been some corruption in that project.
    Try selecting everything, creating a new empty project, and pasting into this new project. If everything works there, delete the old one.
    Also, delete FCP X preferences. Start the application holding down command and option keys.

  • Problem with the Photomail option within " How would you like to share ?"

    I have a PC with Windows 7 and Elements 10 installed. For the past couple of days, when I attempt to share photos using the Photomail option under "How would you like to share ?" column , after selecting the recipient, I get an error message dialogue box that says : "Elements 10 Organizer has stopped working - a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available". Then the Organizer stays closed down until I reopen it. However, I am able to share photos using the "Email Attachment" option.
    What could be wrong with the "Photomail" option ?
    Thanks

    Hi,
    I have seen this sort of failure caused by a permissions problem.
    Try this:
    Close elements
    Create a shortcut on your desktop which goes direct to the organizer
    Right click on that shortcut and select "Run as Administrator" (even if you are an administrator)
    Now try your Photomail again
    If it does work, you only need to do this once, it seems to correct itself after that.
    Good luck
    Brian

  • Problem with ALV Filter Option

    Hi
    In 4.6C version when i click on a column for Filter option, i am able to key only 20 Chars( Visible length is 16 ). Whereas in 4.7 version,  i am able to key in 40 Chars in the Input field of the filter option. Is this a problem with 4.6C version. Please Help...

    Hi
    Can you check report BCALV_TEST_FULLSCREEN_FILTER in 46C. When you put a filter on C60 ( 60 Char field ) the screen display of select-option is small but when you select the multiple options, you can key in upto 60 chars and the filter works well. Check if thsi rpogram helps you.
    Cheers.

  • Problem with panels

    i have a JFrame with layout set to null
    i have one jpanel with border layout ,showing a jtree
    another panel with gridbaglayout is attached to the frame
    when a node on the tree is clicked , changes are made to the second panel with lots of components.but the change in the second panel is reflected only when the jframe is resized,ie its not displayed automatically.what can be the problem?im using jdk6.

    try panel.updateUI();No. That method is used for a Look and Feel change.
    Use:
    panel.add(...);
    panel.revalidate();

  • Problem with text resizing and moving

    After much pain with this issue, I'm going to ask for help.
    The whole issue(s) resolves around text upsizing, changing and moving in Muse.
    No amount of grouping, layering and locking has stopped this issue for me.
    I don't have divs that are a pixel off and whatnot. This happens even when I have a blank site and I test it (as seen in the example pic below).
    The majority of the time, this is an issue when viewing Muse created sites on Android, although text does move when viewed on iOS.
    Example 1:
    I have a square div. I put text in the div that I want to stay contained in the div. Basic right?
    View site on browsers and iOS devices it generally plays by the rules (although not always, there are some movement going on). When viewing this example text and div on an android device, the text resizes larger. This results in the text overlapping the div and moving EVERYTHING below it down. This makes it impossible to tightly design anything for a website.
    I know Android has options within it for users to set text viewing size, but this worthless from a web designer standpoint. That is something I can't control.
    Example 2:
    I have 1 text field and set the typeface to 15. There is nothing else on the page, just a background image (under "Fill"). Viewed on browsers and iOS looks fine. When viewed on Android this text balloons to some enormous size (25+) that makes the website utterly useless. This random resizing makes it impossible to design to. 
    Example 2.5:
    I take that same text from example 2, copy it into 2 of the same size text fields. They are placed next to each other, taking up the same width as Example 2. It now looks like 2 columns of text. Set the typeface to 15 again. I view it on Android and get the resizing issues from example 1 not example 2. It's noting to the extent of example 2 but like example 1, it still changes enough to ruins any design I'm trying to accomplish.
    Is there any place in Muse to lock the text? I don't want to make the text into an image (obviously).
    I been dealing with this in Muse for 6 months and haven't been able to find anything online or in forums about. I understand with the bevy of platforms out there nothing will look the same across the board, but right now I don't see how I can continue working with this issue.
    Am I the only one dealing with this?
    Thank you for any assistance.

    Welcome to the annoying realities of working with text on websites... Nothing you describe is unique to Muse.
    Every browser has it's own text engine and thus each line breaks text differently. Even the exact same web page on the same computer with the same fonts will sometimes result in different line breaks in different browsers, or even in different versions of the same browser. It's just a side effect of the nature of determining a line break, where even the most miniscule difference in calculations can result in an entire word fitting, or not fitting.
    There are two "tools" that are especially important to understand and use effectively in order to create designs that work as effectively as possible with the variation in line breaks from one site viewer to the next.
    Text Frame Height Always Matters
    If a text frame is drawn to the exact height of the text wthin the frame, then any increase in the number of lines of text due to changes in line breaks will result in the text frame growing and other objects below the text frame being moved down.
    If a text frame is drawn larger than the height of the text then when line breaks change the text frame won't grow unless the changes in line breaks are severe enough to result in the flowed text being taller than the text frame was originally drawn.
    If you resize a text frame smaller than the text within the frame in Muse Design view, the frame will snap back to be large enough to accommodate the text, but a dotted horizontal line will appear within the text frame indicating the "minimum height" for the text frame. If line breaks change in the browser the text frame will grow or shrink in height down to the minimum height indicated by this dotted line.
    Careful sizing of text frames can go a long way to creating a design that will continue to work well even when line breaks, and thus text frame heights change.
    Grouping Has Consequences
    As part of the output process, Muse collections the objects you've drawn into a hierarchy of horizontal groupings, vertical groupings, or stacks. When line breaks change in different browsers and text frames change height, when the text frames are located in this output heirarchy determines what impact the change in height has on other objects (if any).
    For example, if you have a layout that looks like a 2x2 grid of text frames, by default Muse will interpret it to act as two colums. So if the first text frame gets taller it will push the text frame below it down, but won't impact the location of the two text frames in the second column.
    If that's not the behavior you want, the way to tell Muse to treat things differently would be to group the two items in the first "row". This would cause the top to to be treated as a horizontal group. If anything in the group grows taller than the group, the group resizes taller and pushes the objects below it down. Thus if the top to items are grouped, if either one of them grows taller than the group it would push both the text frames below downward.
    The 2x2 grid is just a simple example of the concept. In most cases you don't have to do anything special to get the behavior you want, but it is important to understand grouping has this ramification. Grouping an arbitrary set of objects on your page can result in undesired behavior when text frames resize in the browser.
    For the Andriod screenshot you've provided, I don't have an immediate explanation. For us to explain what's shown we need to know the exact browser, browser version, Android version and device the screenshot is for. It would also be immensely helpful to have the URL for the page, so we can attempt to reproduce what you're seeing and view the exact code involved.

  • Problem with LabVIEW color options?

    I've tried to set the front panel and menu colors to the predefined system color 'Panel & Object' in Tools > Options > Colors dialog. When LabVIEW is restarted the front panel and menu is black rather than the expected grey!
    I use LabVIEW 6.1 on Windows NT.
    I guess that this is a bug. Is there a fix or work-around?
    Selecting the color from the palette works fine, but will not make the vi adapt to system colors.
    Kind regards / Med venlig hilsen
    Torben

    I think that there is a workaround that will work for the PC and the Mac, but not on XWindows. You just go into your ini file and find the place where the front panel (or whatever) color is set. In your case I think it will be set to 000016. Change this and set it to 01000016. You can do this with any symbolic color that you like and it should work.
    Good Luck.

  • Problem with getting PDF Options after installing Acrobat Pro 8.0

    Hello
    I have some problems after installing Acrobat Pro 8.0 on my MacBook Pro.
    In the past I worked with Acrobat Pro 7.0.8. Then when I choose the printer Adobe PDF 7.0 I had always a pulldown menu in the Printer Settings. to decided what kind of PDF I want (Best Quality, PDF/1, PDF/3, Low Quality, etc)
    After Intallion Acrobat Pro 8.0, I had both Adobe PDF 7.0 & 8.0 availible in the Printer Menu, but either the PDF Options is not availible for both (in some programs) or for both it is visible as "AdobePDFPDE70" but it has a line through it and I cann't select it.
    Then I delete Adobe 7.0 & 8.0 from the folder "/usr/libexec/cups/backend/" and started Adobe Acrobat Pro 8.0 again. It recognised that an Adobe PDF need to be installed but again it is not availible or AdobePDFPDE70 has a line through.
    I have still installed Adobe Pro 7.08 on my MacBook Pro because their is no PitStop Professional availible for Adobe Acrobat 8.0
    Who can help me to make my PDF Options Availible. I also looked at the Adobe Site for a Solutions but I found only 4 Threads for Acrobat 8 in combination with OS X and it was regarding other problems.
    I work with German OS X and german Versions of Acrobat and PitStop
    Regards
    Gerard
    MacBook Pro 17"   Mac OS X (10.4.8)  

    Hello
    I solved the problem. The files "AdobePDFPDE700.plugin" & "AdobePDFPDE800.plugin" conflict each other.
    I solved it in the following way
    - quit Adobe Acrobat
    - delete Adobe PDF 7.0 & 8.0 From the Printer Manager
    - remove the file "AdobePDFPDE700.plugin" & "AdobePDFPDE800.plugin" from /Library/Printers/PPD Plugins/
    - restart Adobe Acrobat Pro 8.0 and activate its self repair function from within the Help menu
    - quit Acrobat and re-boot your Mac
    - a Printer & "Adobe PDF 8.0" will be availible. Now the PDF Options are availible in all the Programs I working with!
    I experienced that the Acrobat Pro 7.08 is very unstabil after the Installation of 8.0, let's hope that PitStop will bring very soon a new Version compatible with Acrobat 8.0

Maybe you are looking for