Changes to the user interface of dynamic script

PC and mac using CS 5.5.

I was wondering if it was possible to have a user interface that can change its appearance when a button is selected. For example, I would like to add a Panel to the range when they select a button "Activate filter" that displays some text boxes and radio buttons that will filter a list. So if they click on the button 'disable the filter' I would remove the Panel that contains all the fields of filter and resize the window to its original size. I tried a combination of this.layout.layout () and this.layout.resize () after you hide the Panel filter, but none seem to resize my palette, it leaves just a space where the Group has. The only way I can get it to work is to completely redraw the window, but it takes too much time due to the long list no in the list box. Any ideas?

As I have already suggested, you can change the maximumSize property before win.layout.layout (1) to live - resize your user interface.

Here's a simple example:

#targetengine 'testShowHidePanel'

var NULL_SIZE = [0,0],
    MAX_SIZE = [1000,1000];

var u,
    w = new Window('palette'),
    // ---
    p1 = w.add('panel'),
    c1 = p1.add('checkbox', u, "My checkbox1"),
    e1 = p1.add('edittext', u, "Edit text1"),
    // ---
    p2 = w.add('panel'),
    c2 = p2.add('checkbox', u, "My checkbox2"),
    e2 = p2.add('edittext', u, "Edit text2"),
    // ---
    b = w.add('button', u, "Show filter");

p2.visible = false;
p2.maximumSize = NULL_SIZE;

b.onClick = function()
{
    p2.maximumSize = p2.visible ? NULL_SIZE : MAX_SIZE;
    b.text = (p2.visible ? "Show" : "Hide") + " filter";
    p2.visible ^= 1;
    w.layout.layout(1);
};

w.show();

@+

Marc

Tags: InDesign

Similar Questions

  • Currency of the line has changed since the user interface has been made on creating

    Hi all

    I'm ' currency of the line has changed since the user interface has been made. " The key to the planned line was oracle.jbo.Key' error on create action. Use case is simple. He saw table and create a button. When I click the Create button, I get this error. Back button of the browser is never used.

    The strange thing is that I don't get this error when I run my application on your premises. However, after I had it deployed in real development environment, he started up this error and I do not get this error on other pages.

    JDeveloper Version: 11.1.2.2.0 (JSF 2.0)
    Weblogic Version development environment: 11.1.1.6

    Kind regards
    Anil

    Same question: do you have the correct version of the runtime ADF your server?

    Timo

  • undo the groups for changes in the user interface

    Hello guys,.

    Is it possible to use groups of cancellation to make the changes that the user creates in Panel by me?

    Let's suppose I have create a window Panel / were the user can fill some EditText, select the items in a TreeView, etc.. Is it possible that I can use cancel groups for this change?

    Thank you

    Francine

    ScriptUI does not provide this feature natively.

    But you can add several addEventListener() and write all changes to recover, then file txt them.

  • Detect changes in the user interface of the page

    I have a sheet with several fields on this subject.

    When the user presses the button close to the sheet, I want to check if the user has made changes in this case I will display a confirmation dialog box before you close the sheet and ignoring the changes.

    Is there a way to detect changes on the sheet or page of the world?

    On the old BBOS based on Java, there was a Screen.isDirty () method that could be used for this purpose:

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/UI/screen.html#IsDirty%28%29

    No, it isn't.

    What you can do is hang the onTextChanging of each signal and update a global variable to indicate that there has probably been a change.

    The way I did however was subclass controls and make control by slot of this signal if the text had in fact changed then my own signal indicating that there was a specific change.

  • After changing the default threshlod in the user interface, where it stores the new value?

    After I changed the value of the threshold warning/cirtical metric, I noticed there was a 'TARGET_TYPE' _ 'targetname '. XML generated in forlder $AGENT_HOME/sysman/emd/collection. It assumes that the registered here threshold has priority over that of collection.xml in $AGENT_HOME/sysman/admin/default_collection, right? I'm very curious, is if the new threshold is also recorded in some tables, the agent generates the 'TARGET_TYPE' _ 'targetname '. XML after reading the new value? If it is, could someone offer me the East?

    Thanks in advance!


    Thank you
    Satine

    The default collection file supplied with the plug-in is the basis of how the collection for the target type agent. If the user makes changes through the user interface, the agent record in a specific collection of target instance file that selectively replaces the default file in the collection.

    Data collection should be TARGET_METRIC_COLLECTIONS view of $ MGMT.

  • Is there a way to change the number of Sockets of Test, the User Interface of CVI?

    I would like to have the number of sockets in an INI file, the User Interface would be read the value of the file and set the number of Sockets of Test.  I know that it is possible by adding a callback sequence, ModelOptions, to my files in sequence and by changing the setting.  How would you do it in the UI?

    You might have the user interface to read and edit the reportoptions config file as the process template (see the source code for modelsupport2.dll in \Components\Models\TestStandModels). But why do you need UI to do this? Why not simply substitute the recall of ModelOptions and he do there?

    -Doug

  • How to change the size of the user interface component

    Hello

    How can I change the size (width and height) of the user interface component?  For example, I want to set the width of a ListField and add a scroll bar (horizontal). Thank you.

    Young

    GetPreferredWidth and getPreferredHeight methods can be rewritten to change the requested dimensions of a field.

    However, this does not mean that a field will support horizontal scrolling with only this change and can vary depending on the field.

  • How to uninstall apps CC2015 (to change the language of the user interface) if the applications do not show up as installed in the desktop creative cloud application?

    Because I'm more used to the versions IN applications that I need to uninstall some applications that I had already installed in my computer to change the language of the user interface. After some research, found this procedure: change the language setting of your creative Cloud applications but the apps simply appear not listed as installed creative cloud. What should do?

    uninstall all of your programs of cc, including the application of office cc.

    clean through the use of the Adobe Creative Cloud cleaning tool to solve installation problems

    then install the desktop app, apps download Adobe Creative Cloud | CC free trial Adobe

    After changing the settings for the language you want to use, install your programs of cc.

  • How can I change the language of the user interface

    It seems that some efforts on l10n had been put in the latest TP. My host OS is Win 7 x 64 (Simp-Chinese) and I find that the user interface has been localized.

    As I have no option to change the language, could someone tell me how to do?

    BTW: I also noticed that some channels have not translated yet while some translations need to be improved.

    I wonder how can I report a l10n issues. As this community is English, I don't think I can report it here.

    Thank you.

    A solution from a member of the VMTN community. And it works:

    If you want to change the workstation to English user interface, you can open Control Panel, open "regional language and ' and change the format to"English (United States). Workstation displays in English.

    He also mentions that the l10n process is not yet complete. So I guess it would be better for people like me to inform after the final version.

  • change the user interface presentation based on the size of the Panel

    I'm looking for a way to adjust the layout of my user interface based on the size of the group. For example, two buttons that are top of the other until the height of the window is small enough that they need to be next to each other instead.

    Another example would be a series of buttons that appear as a line if the Panel is wider than high, or in a column if it is higher than it is wide.

    -What someone does something like that, or know if it is possible? As I see it, all I need is a way to read the current size of the Committee and I can put a function in onResize/onResizing that allows to adjust the layout of the user interface.

    Figured it out!

    This change my row of buttons in a column of line based on the report of the window. Finally understood windowBounds.height and windowBounds.width.

    myPanel.onResizing = myPanel.onResize = function () {
      if (myPanel.windowBounds.height > myPanel.windowBounds.width){
           myPanel.grp.cmds.orientation = "column";
      } else {
           myPanel.grp.cmds.orientation = "row";
      }
      this.layout.resize();
    }
    
  • Change the colors of the images between monitors while the user interface remains the same

    Hey! Im having a problem where photoshop change colors when I move the window between my monitors, see here: http://sta.sh/04y5s60vf3j is not due to the monitors themselves being different, it does actually change after a few seconds to move inbetween the monitors. The left was callibrated with an elite group of spyder 3 I do not have access to. I applied the file with windows instead of the utility of spyder color management. The second is new, and it is not callibrated by what that is, but instead was done by hand with integrated RGB brightness/contrast/custom settings. Two of them are very close to eachother, so enough for my taste. but when photoshop changes which looks like the image, it is causing problems. Curiously, when I disable calibration of the screen on the left, the image doesn't change color between monitors, but instead always appears as it does on the right. but then they do not match to the top and all the screen looked washed out because it's uncallibrated, so that won't do me any good. Something else interesting to report, is when this image is saved as a. JPG and read with firefox, the image appears exactly as the monitor on the LEFT (which is my primary monitor) despite the monitor left which is the force has changed. does anyone have any suggestions? It also appears that photoviewer windows behaves in the same way, although firefox does not work. Meaning when I open an image in all 3 on the left monitor, they look alike, but when opened on the right monitor, windows photo viewer and photoshop both display the image such as the brighter and redder that firefox works. It's frustrating, because it seems that photoshop changes the image with my measured on my monitor left to match what it looks like on the web, it does. but it does not for the monitor right, or the left is uncallibrated. Another question, I can see with this is even if the user interface is the same shade of gray, the images are different between the monitors because of this change. Does anyone have suggestions?

    -BD

    What you need to understand, is that Photoshop converts the image data, the document profile for the display profile, independently for each display. It is a managed pipeline standard color display. Windows Photo Viewer does the same thing (but do not have a lot of other applications).

    When you move a picture on the screens, it snaps when you drop; as the new display profile is picked up.

    Calibration is only partly about changing the monitor's response. The second part a profile, which is a complete description of the screen in its calibrated State. Then a conversion of standard profile is performed as he goes to the screen. The profile has a much higher level of accuracy than the single calibration.

    ---

    If the image on the web has the stripped document profile, Firefox with default settings does not have this conversion and sends just the unchanged data to display. In other words, it is not color managed. This behavior can be changed, but get your first straight base display profiles. Unless you get a new calibrator it is no that you can do to match these two views.

  • Is it possible to add a hard drive to a VM running via a script or a program without using the user interface

    I'll try to ask this question clearly, but I ask that read you it carefully, because I can't do a great job of setting out clearly what I'm looking for.

    I know how to create a virtual disk in a batch file or a script.  I know how to have a running virtual machine to detect a newly added hard drive and format it in Linux, BACK, and NetWare. I do not have scripted this part, but I did it manually by adding records via the UI and then by doing the steps manually to make the operating system to detect and format the newly added drive. In each case, these steps are scriptable with the exception of the addition of the drive in the user interface.

    The only way I know to add a new hard disk to a virtual computer running is through the user interface. I don't know in a way that can contain script (for example vmrun or an API call) to make.

    I guess that maybe I can have the virtual machine to go into sleep mode and then add the HDD in the vmx file while the machine is in standby mode, then put the computer to sleep mode, although I have not tested this.

    My question is, ' can a virtual drive be added to a virtual machine running without using the user interface and without put the machine to sleep, or in other words in a script any?

    Have you tried VI SDK?

  • How can I change the language of the user interface for my trial version of Illustrator CS6?

    I don't know why, but I had the Danish, English or Dutch version would be nice.

    Re-download the package in the correct version. There is no way to change the language of the user interface on the trial in the case. Also check the settings of your system language. By default, installs broken will use the settings system locale. that cannot be replaced with a serial number when you purchase the product.

    Mylenium

  • How to change the language of the user interface?

    Hi all

    How to change the language of the user interface?

    I have change the component UI language... English italia, etc.

    You can also check this:
    Re: Labels in ADFbc internationalization

  • How to change the font size of statictext and button is the font size in the user interface?

    Hello

    How to change the font size of statictext and button is the font size in the user interface?

    Thks.

    Goldbridge

    var w = new Window ("dialog");
    var s = w.add ("statictext", undefined, " 30 Point Static");
    var s2 = w.add ("statictext", undefined, " 100 Point Static");
    // the third argument is the font size
    s.graphics.font = ScriptUI.newFont ("Helvetica", "Bold", 30);
    s2.graphics.font = ScriptUI.newFont ("Helvetica", "Bold", 100);
    
    w.show ();
    

    See the example above.

    See also Peter Karhels Guide to the user interface. Very recommended.

    http://www.kahrel.plus.com/InDesign/ScriptUI-1-9.PDF

Maybe you are looking for