ListBox ScriptUi beyond window resize

I know that it's not specifically about InDesign scripts, but it will be integrated in an InDesign script and InDesign scripting have a reputation for being the smartest!

What I find is when a listbox is larger than the window, it extends beyond the window and is not accessible. If I apply a layout.resize () function to the event window onResize, fixed list box its self when I resize the window.

var w = new Window('dialog', undefined, undefined, {
        resizeable: true
    });
    
    w.orientation = 'row';
    w.alignChildren = 'top';
    w.maximumSize.height = 400;
    
    var myList = w.add ('listbox');
    myList.alignment = ['fill', 'fill'];
    
    var item;
    for (var i = 0; i < 200; i ++) {
        item = myList.add('Item', i);
        item.checked = true;
    }
    
    w.onResizing = w.onResize = function() {
        this.layout.resize();
    }
    
w.show ();

Screenshot-2016-04-08-09.33.09.gif

How can I do so that the listbox control is part of the window show?

Also a second problem: I have a condition where the controls are not displayed when I scroll through them quickly. When I click on the element with the missing check marks, they appear suddenly. This seems to be a problem of refresh. Is there something I can do to solve this problem as well?

For the first question, add an onShow event:

w.onShow = w.onResizing = w.onResize = function() {}

I am not able to reproduce the second question, however.

Ariel

Tags: InDesign

Similar Questions

  • Safari doesn't remember the window resizing

    Using Safari Version 9.0.3 in Yosemite.  Safari NEVER remember the size of the window that I put it to the previous use. Does anyone know how to make Safari window resize the stick?

    Thank you!

    May be a corrupt .plist.

    Make a backup, preferably 2 backups on 2 separate drives.

    Quit the application.

    Go to Finder and select your user folder. With this Finder window as the windshield, select Finder/display/display options for presenting or order - J.  When the display options opens, check "show the library folder. This should make your visible user library folder in your user folder.  Select the library. Then go to Preferences/com.apple.Safari.plist.  Move the .plist on your desktop.

    Restart your computer, open the application and test. If it works fine, delete the plist for the office.

    If the application is the same, return the .plist where you got it, crushing the latest.

    Thanks to leonie for certain information contained in this.

  • Access window.resize function

    Hello

    I want to access a function of an event "window.resize" on the stage, and I need to access the function is in an element called "Tick" in the CreationCompleted of this clip (please excuse my English)

    I tried without success that

    SYM.$("graduation"). MadeGraduation();

    and

    sym.getComposition () .getStage () .getSymbol ("Graduation"). MadeGraduation();

    and

    sym.getComposition () .getStage (). $("Graduation"). MadeGraduation();

    any idea?

    Thank you

    Hello

    I understand you want to "call" a creationComplete function (symbol) to window.resize

    ==> A demo file can be downloaded here: https://app.box.com/s/xr35fqf9pogp84a1inw9

    I apply edge API: http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html#symbolinstance setVariable


    creationComplete:

    function MadeGraduation () {...};

    sym.setVariable ("myGraduation", MadeGraduation);

    Window.Resize:

    sym.getComposition () .getStage ().getSymbol("Graduation").getVariable ("myGraduation") ();

  • CS5 avoiding window resizing when the zoom in/out

    Is it possible to PS CS5 to stop window resizing Image every time that I zoom out / in, I like to work with a boarder around a picture, so I can easily see the edges, but each time as I Zoom in / zoom out I have to resize the main window to accommodate the Image, it's boring and adds many extra clicks to my workflow If anyone has any ideas please let me know.

    Thank you, in advance, Nick

    Preferences > General > Zoom Resizes window

  • The preview window resizing

    I do screencasts of Adobe Captivate 6.0 (Mac) and I'm limiting the size of the screen in 1280 x 720. When I saw the project, sometimes much bigger and a lot of it is beyond the registration area. If I resize, do not like that the next time I run it.

    Anyone know how I can configure the size of the preview window?

    Thnak you.

    Dave

    Hello

    Too bad, that you are not using a PC. If you were, there is a little cool freeware app called 'Sizer' that allows you to set the size you want and easily resize the window.

    Only, I did a brief Google looking for a Mac alternative and found what is called "Mercury Mover". Maybe this will help?

    http://www.heliumfoot.com/mercurymover/

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7, 8 or 9 in the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • Firefox 38.0.1 window resized with menu bar problem

    After update to 38.0.1, I have the active menu bar, and I have a problem with the firefox window, changing size when displaying pages. The entire window jitters then I lose the bar menu at the top of the tab bar. at this point, I can't click or enter data into a web page. If I select the border of the window and resize or move the window back to its original with the menu bar size and displayed correctly tabs.

    I also developer of Firefox v 40.a02 it was OK last week I was last updated on 29/05 and now also has the same problem.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    You can try to disable hardware acceleration in Firefox.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    You will need to close and restart Firefox after enabling/disabling this setting.

  • Window resizing horizontally does not site Web resize correctly. no scroll bar either.

    When I resize my browser window in the horizontal direction, the content of the web page not resize properly. No scroll bar appears to scroll left/right.

    For example:, I can be display of 1920 pixels horizontally while the chassis on the Web site is centered and only 800 pixels wide. As I resize from right to left, the frame cannot drag on accordingly to stay centered, as it normally would. So if I resize from right to left to the Center, half any right of the image will be cut off with no way to scroll even more if I wanted to. Still do not understand my problem? Consider that this support Web site very us use, displayed at 1080 p, does not full width of the screen. Start now to resize the screen from right to left. Notice how the active part of the website changes of position? This does not happen for me.

    How can I fix this so horizontally, scrolling/resizing is normal? Thank you!

    My guess is that you have an add-on which interferes somehow. Troubleshoot extensions, themes and problems of hardware acceleration to resolve common Firefox problems has steps to help you to understand if this is the case. First, just start Firefox in safe mode and check if the problem goes away. If so it is probably one of these modules.

  • Window.Resize javascript does not work in same v7 if enabled

    Build identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; RV:7.0.1) Gecko/20100101 Firefox/7.0.1

    [script type = "text/javascript"]
    [!--
    window.resizeTo (740, 735);
    //--]
    / script

    This function is no longer resizes jumped on windows even if the Options-> content-> advanced-> JavaScript move or resize existing Windows is enabled.

    The solution is a little cryptic, please present the new script. I don't know anything about javascript. Thank you.

  • Image window resize IMAQ Windzoom2.vi

    Hello!

    I want to display a series of images in a window with IMAQ WindDraw. I want to be able to resize the pictures. I tried to use WindZoom2, but the problem is that it resizes the image window too, I want to keep it full-screen.

    Thanks for your help!

    P.S.: I tried Imaq resample vi. It does the same thing: I want WinDraw window stay full screen after changing the resolution of the image.

    Having located 'Resize Image size' entry in WindDraw to False?

    Bob Schor

  • Separator of the shutters and window resize

    I took this VI from the demo of OOP and trying to understand the behavior of the two strings in the upper part of the VI (upper pane). I've colored the two separators in red to make them visible.

    When resizing the window, the string on the left indicator remains anchored on the left side of the pane while the string on the right indicating the time indicator is anchored on the right side of the pane. Behavior, desired but for my own edification, trying to figure if this is due to the properties of the splitter or anything else I'm missing.

    It's a bit complicated, that the option is actually a property of the component, accessed via the context menu separators...

    the following is copied from here

    «When the user resizes a component, the objects in the pane to maintain their distance to two (a vertical edge and a horizontal edge) edges of the pane.» To configure what edges objects stick to, access the menu of shortcuts on the pane (accessible through the context menu of a nearby separator) and select the edge in the submenu for pane sizing . For example, for the controls in the pane to maintain their distance from the edge right of the pane, select original stick on the right. »

  • How to change the default value for the Windows Explorer window resizing

    I recently reinstalled XP and now when I open Windows Explorer, the window opens it up to a size of about 1/8 of the size of the screen.  I keep the resizing to how I like it, but every time that I re - open, he is reduced to the size of 1/8th.  How can I make my default size size that Windows Explorer opens up to.

    I have already tried:

    Open a window and make it the size you want

    Open a 2nd window and are the same size.

    The 1st window to the front, hold CTRL and click the red X in the upper right corner.

    Close the window of the 2nd in the same way using CTRL.

    Display settings files from the tools-> Folder Options-> view tab-> advanced settings, managing pairs of Web pages and folders, check the DISPLAY SETTINGS of don't forget NOT EVERY FOLDER

    None of those who work.
    Help please!
    Any window that you want to resize all the time must be the last closed window. This includes now does no other windows minimized in the taskbar.
     
    Take the corners of the window and drag it to the format full screen. Do not use to expand. Close all other windows all first via the taskbar and this one last. Windows will remember the size of the last closed window the next time that you open the program.
     
     

     
  • Windows "resize image" option box disappeared when we want to resize photos for email

    Hi I hope someone can help.  When I click on a photo in "my pictures" on my computer XP the option button 'windows can resize your image' is no longer hits the screen.  I have always had it and use all the time as I am a photographer.  I'm really, really bored, so if anyone can help me to get it back or turn on again, I would really appreciate...

    Thus, it is the usual method that I have to send him a smaller photo in an email - click the photo or photos I want to send - right click - to - mail recipient - then the box pop up asking if I want to resize the pictures (I have a choice of small, medium or full size) - after this, a blank e-mail opens with the pictures already in the section attachments - then I just move on as usual to send.

    If no box will now appear.  Any help is very appreciated with this.  I feel that my arm was cut as my photo files are much too large to email that they are...

    Thanx, Suz PS. As you can tell I'm not really good at the art of things so if you can word answers to "baby talk" that would be great, IE click on this, select that, press OK etc etc.  :)))

    Windows XP...

    Go to start / run... and type or copy / paste the following command:

    regsvr32 /i shimgvw.dll

    (Yes, the space after the 2 and space after that the i is necessary)

    Press on... Come in...

    You should see a dialog box stating:
    DllRegisterServer and DllInstall in successful shimgvw.dll

    Now try to send a picture via... Right-click / send to / mail recipient...

  • Increasing the speed of the mouse beyond Windows maximum.

    Is there a way to increase the speed at which my mouse moves across the screen above the maximum windows if I set the speed of the mouse up. I have improved pointer option selected & wish on with maximum speed. I use a mouse intellimouse Explorer 3. & don't want to really upgrade to an another gaming mouse. I thought would be simple because most of the games have an option where you can control the sensitivty.

    Hi, classify,

    Once the speed of the mouse is set up there is no way to increase the speed beyond.
    You may need to upgrade your mouse.

    More information about the settings of the mouse
    http://Windows.Microsoft.com/en-us/Windows7/change-mouse-settings

    Thank you and best regards,

    Bindu S - MICROSOFT SUPPORT
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows media player window resizing

    All of a sudden I am not able to resize my windows media player using the brake handles. He'll only full screen or mini compact player, that is not what I want. How to fix? Thanks in advance for the help.

    Thank you guys for your prompt attention. Issue was resoved when I right click on the toolbar and has obtained restoration, move, shrink, menu drop-down and click "restore". Very frustrating if after 3 hours of pulling my hair. Thank you.

    bobo6335

  • UP3214Q REV02 - all windows resized to 1024 x 786 and moved to the top left after the power monitor cycle

    Hello

    I recently got a model REV02 my REV01 developed a fault. However, it seems as if these screens maintain their unwilligness to allow us to save energy by turning off the screen when you need a bathroom, coffee break or something else. Whenever you turn off the screen, then turn on again (be it a few seconds later, or minutes to hours later), all open windows will be resized to 1024 x 786 pixels and placed in the upper left corner of the screen.

    This happens on the Intel cards and nVidia (GTX780TI on 347.52, intel Hd4400 on 15.36.14.4080 drivers drivers). I went throug the playbook together to offer the GFX card, so reset screen, remove the drivers with uninstalling the driver and perform a drive clean reinstall, and swapping the cables (I have a bunch of cables apprived dell when they initially did not want to send me an A01 to set half of the image & had the A00 sleep problems). Happens DP1.1 and DP1.2 mode, and it happens 10 times out of 10.

    Anyone with a UP3214Q who sees this behavior as well? BTW, this is my 3rd unit of REVA02, they all exhibit the same behavior (exchanges were not made because of that, but it confirms that the problem is not related to a defective unit).

    See you soon

    It is a common problem among the monitors UHD, a lot of posts here about it - they take longer to wake up causing the driver GFX their definition to a safe lower resolution before them at their native resolution. The latest 14.2 AMD drivers seek to correct this problem, and you will probably see the same kind of difficulty in the future of the drivers from NVidia and Intel.

    In the meantime, if you use Dell Display Manager (DDM) and are comfortable editing the registry, try to add the "RestoreWindowLayout" value to HKEY_CURRENT_USER\Software\EnTech\DDM and set it to 1 (dword).

    You will need to have the latest version of DDM (b.1554) for this to work; Hold down the SHIFT key while right-clicking on the DDM notification icon and select "Check for new version" in the context menu.

Maybe you are looking for

  • -Updated windows 8.1 - information page - IMPORTANT! -- --

    For those who updated the system to win 8 to 8.1 Win. I found very interesting and useful information on the EU from Toshiba support page: I recommend this update for Toshiba to the information page for Windows 8.1:[Update of Windows 8.1 | http://www

  • Help blackBerry Smartphones calendar

    I have a new curve from Sprint.  I don't have MS Outlook to Lotus notes.  The calendar I used was the Palm.  Anyone know if I can synchronize or import palm appointments into the calendar to blackberry?  If not, is there a software calendar that I ca

  • Strange colors in develop

    Everything looks fine in the library, but as soon as I turn to development everyting very strange... like a color negative. I tried to return to the settings of standars of LR but he always looks the same. With little raw and JPEG files everything lo

  • All adobe products install correctly EXCEPT illustrator... "Error".

    HelloI recently installed all the products of creative cloud and I always got an error when I try to install Illustrator, I tried to uninstall creative cloud, tried to change the place where it should be installed because the error told me to do, but

  • How to put in the time series dynamics in the planning application

    Dear all, I'm having a problem by implementing a series of time Dynamics (A-T-J). I put in place at the level of the generation 4. In our application, the time dimension hierarchy is as follows. Yeartotal-> HY1-> Q1-> Jan, Feb, Mar Consider the follo