Why can't I resize my script more?

How can I resize my script as much as the script with the red square (see picture below)?
You can see my script on the left. So what I want to do is to resize my script as thin as the script highlighted with the red square.
Someone know how to do this?

Hi there, that's actually my script on the right.
So it's a mix of spacing and margins.
win.spacing=1;  // min spacing between elements. 1 pixel
win.margins=[0,0,0,0] // margins like a picture frame around outermost items and window.
This propogates down to groups and panels, so if buttons in a group, adjust those properties for the panel.
Also you need to be careful about knowing about Automatic layout and hard coding some of this stuff, they may conflict.
I like to hard code some stuff for more control, but it can take longer to bug check and fix than letting it automatically layout.
Peter Kahrel has a good pdf online if you google it and gives a good explanation of all the basic ui concepts.

Similar Messages

  • HT1040 why can i not seem to order more than one print at a time, which obviously becomes expensive with the shipping, it does not seem to offer me the facility to choose again?

    why can i not seem to order more than one print at a time, which of course becomes expensive with shipping, it does not seem to offer me the facility to choose again? either order or cancel!

    make an album containing the photos you wnat to print, select all photos in the album  and order
    LN

  • Why can I not import pictures any more? Lightroom says "Your Lightroom 5 64-bit does not work correctly"

    Why can I not import pictures any more?
    Lightroom says "Your Lightroom 5 64-bit does not work correctly"
    Technical informations:
    PC with Windows 7 64-bit, Lightroom 5.7.1 64-bit installed.
    What I have done:
    I downloaded the newest LR 5.71 and installed it again - mode repair; without success
    I checked my PC with Norton 360: full scanning and optimizing registry
    I restarted the PC and than I installed the LR 5.7 again - repair
    Trouble 1:
    Two days ago I could work with my LR 5 and to import pictures from a SD was no problem. Now I can start LR 5 and I can watch/modify pictures, but as soon as I try to import new pictures LR 5 stops and gives the message "your LR 5 64-bit does not work correctly - searching for solution". I have not changed anything in my computer since lasttime LR 5 worked properly, only the registry was optimized by Norton 360.
    Trouble 2:
    I live in Switzerland and my language ist German. I dit not find a place where I can present my problem in German, e.g. a phone number oder email-address oder german-chat. My English is to week for a discussion for computer problems and do understand it.
    Help:
    I would very appreciate if anybody can help me, either to trouble 1 or to trouble 2. Thanks.

    Sehen Sie diesen Beitrag:
    Photoshop CS4 & Lightroom 2.6 X64 funktionieren nicht mehr
    Wacom Tablet-Treiber-Problem?

  • Why can't we resize log buffers??

    Why can't we resize log buffers??
    Regards
    Vijay

    chronicscorpion wrote:
    Hi Aman,
    I have read in Oracle Docs . Will you please tell me where you have read that it can be changed? Please tell me also.
    Regards,
    VijayIf you are talking about Redo logs
    Check out http://www.oracle-dba-online.com/managing_redo_logfiles.htm
    or look at this question that was asked before in this forum
    Oracle 10g R2 Database Redo Log Files
    Check posting by Betty
    (If you have set your FAST_START_MTTR_TARGET parameter
    SQL> alter system set FAST_START_MTTR_TARGET=300;
    SQL> select optimal_logfile_size from v$instance_recovery;
    Based on the current log switch checkpointing, good estimate as you should
    at least perform 3-4 log switches per hour based on the increased size of your
    redo logfiles and do not forget to multiplex the redo logfiles onto faster
    hard drives as Mr Burleson would say in his book SSD (Solid State Drives)
    SQL> select * from v$log; (how many many members do you have 1, 2 or 3)
    SQL> select group#,member from v$logfile;
    Cheers
    Justin Miles

  • Why can I not resize Finder windows by grabbing any side or corner

    I love my Macs and Leopard having used PCs for 15 years. But one annoyance of the Mac OS is the inability to resize a window by grabbing any side or corner like I can do in MS Windows.
    Being able to resize a Mac OS window by having to grab the lower right corner is a very limiting especially when I have a number of windows open at one time. I would think with all of Apple's sophistication that this would be a simple convenience to add.
    Are there any utilities out that that add this functionality to Leopard?
    Thanks for sharing in advance.
    Bud James

    nerowolfe wrote:
    {quote:title=SC::UK wrote:}{quote}
    He said he'd been using PCs, not Macs, for 15 years. I also find it annoying that I cannot resize from any corner or side, and that the maximise button on each window seems to do something totally random.
    When you change from one OS to another, do you really expect them to be the same? Then why change? It's like changing from a LH drive car to a RH drive car. It takes a few minutes and that's it.
    Different OSs are different otherwise they would be the same.
    You don't have a powerful Unix system lying under a Windows GUI and you don't need anti-virus software or have to defrag every day or so. And you do not need to reinstall every month or so or ever get caught in DLL-heck.
    Yes Macs are different from Windows machines. I regularly use both and have no problems with either. Whether the gearshift and rearview mirror are on the right or left does not matter to me. I like either.
    I'm not sure what disk fragmentation, reinstallation or DLL-**** (never heard of DLL-heck) have to do with the OPs question and observation about being able to drag any corner when you have a screen full of windows. Sounds to me like an attack in desparate defence of OS X instead of constructive discussion.
    I also regularly use both, professionally, but there are things that Windows does better than OS X, and there is no reason why OS X could not improve. For example, why can I not selectively remove (i.e. completely destroy) files from my trash?

  • Why can't I resize jpg images in the applet?

    I used this code to display images in an html page. One applet for one image. But out of the 8 images I loaded, 6 adjusted themselves to 320x240 automatically, 1 randomly jumps around to certain parts of the image every 250millisecs, and 1 just cuts the top left hand part of 320x240. How can .jpg files give 3 different situations? I tried using the resize() method in the code but it doesn't do anything! How can I size those .jpg images to the size I want?
    /**This video stream applet loads a new image every 250ms
    import java.applet.*;
    import java.awt.*;
    import java.net.*;
    import java.io.*;
    import java.awt.event.*;
    public class Video extends Applet implements Runnable{
    private Image img,buffer;
    private Thread video = null;
    private URL url;
    private MediaTracker tracker;
    public synchronized void init(){
    tracker = new MediaTracker(this);
    try{url = new URL(getCodeBase(),"Camera1.jpg");}
    catch(MalformedURLException e){}
    img = getImage(url);
    tracker.addImage(img, 0);
    buffer = createImage(320,240);
    resize(320,240);
    if(video!=null)return;
    video = new Thread(this,"VideoStream");
    video.start();
    public synchronized void destroy(){
    if(video!=null)video=null;
    public void run(){
    while(!Thread.interrupted()){
    // Load new image.
    try{tracker.waitForID(0);}
    catch(InterruptedException e){}
    // Draw new Image.
    repaint();
    // Remove old image & add new one.
    tracker.removeImage(img,0);
    img.flush();
    tracker.addImage(img,0);
    // Sleep
    try{Thread.sleep(250);}
    catch(InterruptedException e){}
    public synchronized void update(Graphics g){
    Graphics bufGraph = buffer.getGraphics();
    bufGraph.drawImage(img,0,0,this);
    paint(bufGraph);
    g.drawImage(buffer,0,0,this);
    public void paint(Graphics g){
    g.drawImage(buffer,0,0,this);
    Also how can I add more than 1 .jpg in an applet since the applet tag for html is
    <applet code = Video.class width =... height = ...>
    <param name = "buffer" value = "Camera1.jpg"> ...and I can only put
    </applet> one file for "value
    Thanks a lot for ur help!

    you may try the function getScaledInstance(int,int,int) in Class Image.
    the first and second parameters are the width and height you want,the third parameter is hints-flags to indicate the type of algorithm to use for image resampling.

  • Why can't I resize jpg in applet?

    I used this code to display images in an html page. One applet for one image. But out of the 8 images I loaded, 6 adjusted themselves to 320x240 automatically, 1 randomly jumps around to certain parts of the image every 250millisecs, and 1 just cuts the top left hand part of 320x240. How can .jpg files give 3 different situations? I tried using the resize() method in the code but it doesn't do anything! How can I size those .jpg images to the size I want?
    /**This video stream applet loads a new image every 250ms
    import java.applet.*;
    import java.awt.*;
    import java.net.*;
    import java.io.*;
    import java.awt.event.*;
    public class Video extends Applet implements Runnable{
    private Image img,buffer;
    private Thread video = null;
    private URL url;
    private MediaTracker tracker;
    public synchronized void init(){
    tracker = new MediaTracker(this);
    try{url = new URL(getCodeBase(),"Camera1.jpg");}
    catch(MalformedURLException e){}
    img = getImage(url);
    tracker.addImage(img, 0);
    buffer = createImage(320,240);
    resize(320,240);
    if(video!=null)return;
    video = new Thread(this,"VideoStream");
    video.start();
    public synchronized void destroy(){
    if(video!=null)video=null;
    public void run(){
    while(!Thread.interrupted()){
    // Load new image.
    try{tracker.waitForID(0);}
    catch(InterruptedException e){}
    // Draw new Image.
    repaint();
    // Remove old image & add new one.
    tracker.removeImage(img,0);
    img.flush();
    tracker.addImage(img,0);
    // Sleep
    try{Thread.sleep(250);}
    catch(InterruptedException e){}
    public synchronized void update(Graphics g){
    Graphics bufGraph = buffer.getGraphics();
    bufGraph.drawImage(img,0,0,this);
    paint(bufGraph);
    g.drawImage(buffer,0,0,this);
    public void paint(Graphics g){
    g.drawImage(buffer,0,0,this);
    Also how can I add more than 1 .jpg in an applet since the applet tag for html is
    <applet code = Video.class width =... height = ...>
    <param name = "buffer" value = "Camera1.jpg"> ...and I can only put
    </applet> one file for "value
    Thanks a lot for ur help!

    Try getScaledInstance(), search for it. Also, you can do anything in an Applet that you can do in an app. Check out the code samples, or the Java2D demo that comes with the JDK. There is tons of code for this, as well as a million threads you can search through.

  • Why can't I resize a text box in the new Preview in Yosemite?

    I just upgraded to Yosemite, and I am having trouble with the new Preview.  I am a student and my notes are pdfs.  I have been using Preview to take notes on the pdfs for the past two years.  I have always been able to insert a text box, make it a certain size (resizing it using the text box function and dragging the corners/sides to fit the space in which I want to type), and type easily.  In the new Yosemite Preview, I can insert a text box, but I can only resize it horizontally (not diagonally or vertically), and when the text reaches the right edge of my box, it moves upwards instead of continuing the text downwards (the entire box shifts up so that my typing line is in the same position as where I started and the previous text is now above).  Is there any way to get around this?  I really don't want to purchase software just to be able to easily add text to a pdf.

    I find it annoying too. Also, when you want to add text, you always need to open the title bar and then to text box always goes in the middle of the document. The only way I found to get over that issue was to ask my friend to put Preview 7.0 on a USB key (he is still on Mavericks) and then I dragged it in my application folder. It works for some PDFs but not for all of them unfortunatelly...

  • Why can't I access the "See more..." section of people's long posts on Facebook? I used to on Firefox and I still can on Safari but no more on Firefox..

    When people write a long status update on Facebook, the site shows the first few sentences and then adds a blue hot link. The link says "See more..." and mouse clicking this allows you to see the complete status. It saves space on Facebook.
    I always accessed this feature on Firefox but since the last update it isn't working. I went to Safari and the blue linking text functions perfectly. Only on Firefox is it disabled. Clicking the link does nothing.
    I checked preferences in Firefox but could find nothing that would cause this to happen.
    Please tell me how to make the link functional again.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Also try the following if the above did not solve your issue;
    '''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
    ''(If you're not using it, switch to the Default theme.)''
    * You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Don't select anything right now, just use "'Start in Safe Mode"''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
    '''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
    Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • OPINION WANTED: Why can't Sun make the setBounds more meaningful?

    Hi,
    I am wondering why Sun doesn't add some brains to the setBounds method. I bring this up because of my current situation.
    I have two panels, A & B. A is added to B, and A can be dragged around "on top" of B. But I can not allow the user to drag A out of the bounds of B. so I have to do all this checking to make sure it doesn't happen. It would be much simpler if the A panel could know what the size of its "playground" is.
    Doing something like this would be nice,
    A.setPlayground(B.getBounds());then as A is dragged around, it knows what its "playground" is and knows that its own bounds cannot not leave the "playground". But currently, there is no such implementation, so I would basically have to create my own JPanel class, and include this functionality...which I wish Sun would implement.
    Anyone else think this is a good idea or worth while to do? Whats your opinion?
    Thanks.

    Ok, that is basically doing the same as rect.contains(rect) .....and instead of creating new rectangles i could just do this:
    if (rectangleA.contains(panelB.getBounds())) ...However, a problem still occurs that a user could drag the panel quickly, and its location gets set so that it is no longer "contained" in rectangleA.
    if rectangleA's bounds are [0, 0, 200, 200] the panelB's bounds could get set so that its bounds are [200,y,w,h] ....so u can see the x value is at the max of rectangleA's bounds....so when i try to do rectangleA.contains(panelB.getBounds()) it fails....so to fix this I have to do this:
    if ((panelB.getMinX() < 0) ||
                                           (panelB.getMinY() < 0) ||
                                                 (panelB.getMaxX() > rectangleA.getMaxX()) ||
                                                 (panelB.getMaxY() > rectangleA.getMaxY())) {
                                      temp.setLocation(oldLocation);
                                 }i wish i didnt have to do all that checking like that.

  • Why can't I display content from more than one domain in my web app?  Is there a workaround?

    I'm trying to display 2 datasources in different views of my web app, an rss from twitter, and an rss from wordpress,  but for some reason dashcode doesn't allow this.  Is there code that can fix this?  A source paramater change code (shown below) is provided in dashcode, but I don't know how to implement this, or if it will even solve the problem.  Can anyone help?
    // Retrieves data source. Sets a query parameter "category" to "Apple"
    var dataSource = dashcode.getDataSource("detailRequest");
    dataSource.setValueForKeyPath("Apple", "parameters.category");

    If you have the Creative Cloud and the Photoshop subscriptions in the same ID, then that's the issue:
    http://www.adobe.com/products/creativecloud/faq.html
    Can I buy more than one membership to an individual offering of Creative Cloud? 
    No, Adobe has moved to identity-based licensing with a technology that will not support multiple same-product licenses, so you can buy only one membership per Adobe ID. If you need two Creative Cloud memberships, you will need to purchase each with a unique Adobe ID. You can also purchase a Creative Cloud for teams membership, which allows you to purchase and manage multiple seats under one account.
    Just talk with Adobe customer's support and they will help you sort it out.
    Cheers,

  • Why can't I open .pdfs any more?

    All at once I can no longer open pdf files through emails after saving them to my pc. Using Vista and Reader XI.  I can open them fine on my android phone. 
    I read something somewhere about trouble with Adobe AIR.  I don't use it but did download it a few days ago.  I had trouble a few days ago not being able to open the .pdfs.  Then they all opened. Now a day or so later, again I can't open them.  Now I find I can not open new .jpgs either.
    This is what I'm seeing
    Adobe Reader can not open (attachment) .pdf because it is either not a supported file type or be4cause the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).  I sent the email with the pdf attachments to several others on their own computers and they didn't have a problem opening them up.
    I tried to open them through Adobe photoshop.  It said 'Not a valid portable document file'
    This is the first time I have used this forum.  At one point it told me that I wasn't allowed.  That I would  have to speak with my administrator.  I am the administrator.  I am the only one who uses this computer.
    help :-)

    Hello 'Test Screen Name', I did reply to Pat Willener on that question.  I'm not sure why it isn't showing up here.  In response to 'Can you open one of the affected PDFs with a text editor such as Notepad, then copy and past the first few lines......."
    'no I'm not able to open the new .pdfs with notepad or any new default program.  It says 'File Does Not have a program associated with it for performing this action.  Crate an association in Set Associations Control Panel.'
    However, I am able to open older .pdfs and sometimes new .pdfs from the same sender I am now having problems with.  I generally only received .pdfs from this one sender.  Can it be that she is saving them wrong?  She says she isn't doing anything differently, but not long before all this started she said her pc crashed.

  • TS1702 why can't i update the app more than 50mb from itune but can throught wifi?

    I tried to update Apps more than 50mb through itune, but found the Apps which are needed to be update are mark "Downloaded" in iTune store.  Of course if the Apps mark "Downloaded" are not able to do anything with it.  On the other hand, I can simply use wifi to update the Apps, more than 50mb, throught my iphone instead of iTune.  Is there any problem with iTune or something wrong with my phone?

    In the App section of your itunes library ( NOT the sync pages) there is a button at the bottom which says Check for updates

  • Why can't Photoshop resize images correctly?

    This seems like a pretty basic function, but my copy of Photoshop can't do it right. Specifically, I'm using CS4, but I have a feeling that doesn't matter. I'd appreciate it if someone else would check to see if their copy of Photoshop works correctly either. Here's some quick step-by-step instructions to try it out:
    Step 1 - Create a new file that is 4 pixels wide by 4 pixels tall. (Use basic options: 72 pixels/inch, RGB Color, Square Pixels, etc.)
    Step 2 - Using the pencil tool, draw a red dot (1 pixel wide/tall) in each corner. So that the image looks like this:
    Step 3 - In the menu, go to "Image" > "Image Size..." and increase the width and height of the image to 400 pixels using "Nearest Neighbor".
    Now here's the image I end up with:
    So we started with a 4x4 image, and now we have a 400x400 image. The math here isn't too difficult: 4 x 100 = 400. So each of our red dots in the corners should now be 100x100 pixels each. Simple enough, right?
    Unfortunately, this was not the case for me. The red dot in the upper-left corner is now 97x97 pixels. The red dot in the upper-right corner is now 103x97 pixels. The red dot in the lower-left corner is now 97x103 pixels. And the red dot in the lower-right corner is now 103x103 pixels.
    I guess Photoshop seems to think that both of the following statements are simultaneously true:
    1 x 100 = 97
    1 x 100 = 103
    Am I alone in experiencing this buggy behavior? Or does everyone else get the same result? Is there some way to fix it?
    Thanks for giving it a try!

    I can confirm the problem here on Photoshop CS6 Extended x64 using Windows 7.
    Adobe has never placed too much emphasis on getting things pixel-perfect in Photoshop - it is more fuzzy and touchy-feely philosophically.  This is not only illustrated by the problem noted above, but also by things like a selection made by a selection tool is often off by a pixel this way or that, paths snapped to things still don't *quite* overlap, etc.
    They seem unwilling to change things that have been in the product a while, because apparently when they do so they inadvertently break other things.  And I can't say I blame them...  Given the apparent size of the code base and the extreme age of the software, I wonder what the development cost would be In order to fix something like this across the board, so that every operation really is pixel-perfect.  It might be the kind of thing that a complete redesign from the ground up is needed to fix.  Even then I guarantee you there would be problems.
    To Adobe's defense, having been through the development of graphics software myself, I can authoritatively state that actually getting everything pixel-perfect is quite challenging in a world where computing can be done with integers or floating point numbers of various precisions, where no one can quite agree whether a pixel's coordinate identifies its center or one of the corners, where coordinate systems change depending on what subsystem you're using, and where OpenGL documentation recommends you offset your pixels by (0.375, 0.375) in order to ensure they align properly (no kidding).
    -Noel

  • Why Can I not Resize the Scrollbar on my Table Control?

    As below KB
    http://digital.ni.com/public.nsf/allkb/82C0B021A14F118D86257141004BA97E
    why this property node doesn't support mobile module and touch panel module, if so, how can I do? Thank you!

    This is suprising... I don't have a perfect solution fro you, but I suggest you take a look at the example here, the problem was slightly different to yours but I think you could use a similar solution.
    You can hide the vertical scrollbar of your table control and place next to it a vertical slider and use the slider's value to set the index row that's visible at the top of the table.
    Quick example attached.
    Hope it helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    tbale.vi ‏14 KB

Maybe you are looking for