Change the window when you click on checkbox.

InDesign 3 (5.0)

ScriptUI (Javascript) in the XP box.

Try to get a window to show more control when you click on a checkbox and then hiding when it is not checked.

I tried to create the additional controls to create and then hide them, but this is not of course redraw the window. I'd rather have the window redraw and the layout manager control the position of controls, because they are added or removed. Then I did not empty in my window spaces when the additional controls are not displayed.

#target "inDesign - 5.0;

#targetengine "session."

main();

main() {} function

var myWindow is new window ('pallet', 'Signs');.

myWindow.alignChildren = 'left ';

buttonGroup var = myWindow.add ('group');

var makeSignsButton = buttonGroup.add ('button', undefined, "Make signs");

makeSignsButton.alignment = 'left ';

var printGroup = myWindow.add ('panel', undefined, "Signs of impression");

printGroup.orientation = "row";

var advancedCheck = printGroup.add ('checkbox', undefined, "Advanced");

allRadio var;

var currWeekRadio;

var nextWeekRadio;

var printSignsButton = printGroup.add ('button', undefined, "Signs of impression");

advancedCheck.onClick = function() {}

If (advancedCheck.value == true) {}

allRadio = printGroup.add ("radiobutton", undefined, "All");

currWeekRadio = printGroup.add ("radiobutton", undefined, "Current of the week");

nextWeekRadio = printGroup.add ("radiobutton", undefined, "Next week");

}

If (advancedCheck.value == false) {}

printGroup.remove ("allRadio");

printGroup.remove ("currWeekRadio");

printGroup.remove ("nextWeekRadio");

printGroup.remove ("advancedCheck");

}

} / / end "advancedCheck.onClick"

makeSignsButton.onClick = function() {}

var confirmWindow = confirm ("Do you want to make signs", "Confirm signs to");

myWindow.close ();

} / / end of makeSignsButton onClick event handler.

printSignsButton.onClick = function() {}

var printConfirm = confirm ("Do you want to print signs?", "Confirm print");

If (printConfirm == false) {}

return;

}

} / / end "printSigns" onClick callback

myWindow.show ();

} function //end 'hand '.

Once you change the arrangement of windows, add myWindow.layout.layout (true)

call the layout manager.

Ariel

Tags: InDesign

Similar Questions

  • Navigation of Firefox 13.0.1 bar changes the height when you click tabs

    Only happened today, no changes made to the system.
    When I click on a tab, the height of the Navigation toolbar icons icon decreases to a square for half a second and then returns to the height the deeper (rectangle). What makes the page below the menu jump bar. Rather distracting.
    Hide the Navigation toolbar obviously solves the problem, but is not practical for obvious reasons.
    The people of ideas; someone at - he heard of this before?
    Thanks in advance,
    Mike.

    If you close Firefox, and then start Firefox in Mode without failure, in the problem? To start Safe Mode, go to help > restart with disabled modules.

    If the problem does not occur in Mode safe, then you can disable your extensions one by one until you find out that one is at the origin of the problem. See Troubleshooting extensions and themes and problems of hardware acceleration to resolve common Firefox problems.

  • change the language when you click on a link

    How to change language (change) of the current web page after clicking on a link?

    for example

    I tried the following to 'English' but they does not work.

    < li > < div > < a href = "& lang = en" > English < /a > < / div > < /li >

    get this error:

    The requested resource (/ dev/prog / & lang = en) is not available.

    < li > < div > < a href = "?" lang = en"> English < /a > < / div > < /li >

    go to another page instead of stay on the current page.

    I use ColdFusion 6,1,0, Enterprise hf53852_61

    #cgi.query_string # contained no useful data?

  • How can I make a specific page open in a new window when you click on a menu?

    Don't know if its possible, but I have a specific page, I want to open in a new window in the browser when you click on to leave a menu widget.  I know not how to go and mount the coding, but it would be nice if there is an option in Muse for this already.  Any suggestions? Thanks for any help.

    ryanj4799 You'll need to change the Menu Type of manual in the options of the widget and add you links. Then go in the hyperlinks Panel. Check the option open in a new tab/window.

    David

  • How can I change the scale when you use the measure tool

    How can I change the scale when you use the measure tool

    With the tool selected, right-click the document, and then select "rate of change of the scale.

  • catch the event when you click on the cross of closing

    Hello

    How you catch the event when you click on the cross of closing?

    Thanks in advance,

    Fred

    Discover the reminders of events management of window on page 122 of the Guide to Javascript Adobe pdf tools.

    You want something like:

    myWindow.onClose = function() {}

    your code goes here

    };

    or

    myWindow.onClose = myCloseFunction;

    function myCloseFunction() {}

    your code goes here

    }

  • rolling keys move to the right when you click

    http://kimberleystarmoore.com/wendysawesomeart/index.html

    The top menu buttons have been created using the "insert rollover buttons" in the insert icon > images: flipping image toolbar.

    However when the user clicks on the button HOME. the REMARKS and the GALLERY buttons momentarily move slightly to the right. This also occurs when you click the ABOUT button, the GALLERY button momentarily moves slightly to the right.

    How can this problem be fixed?

    Thank you

    KM

    See this code:

    .primary-nav a:active{
         margin-right: 5px;
    }
    

    Delete it.  The: active pseudo-device class is what happens when you click on something, so you add 5px to the right when you click.  I would also recommend removing the old doctype commented.  Is really not keep it on your page.  And finally, on the CSS document for "a: visited ', 'fat' is not a valid attribute for 'font-size '.  You can change it to 'font-weight' or change the size to a size.

  • Can see is more videos on the internet when you click on the arrow of reading, it becomes just a black screen.

    Original title: can see more videos on the internet is

    Since last week, my computer won't play any video on the internet. When you click on the arrow of reading, it becomes just a black screen.  I can always download movies from netflix.  I uninstalled adobe Flash Player and reinstalled and still does not work.  Someone at - it answers? Thank you!

    Hello

    Yes, it will work.
    However, when you try to open something on the internet, it opens with the default browser.
    Method 1: You can make the default Internet Explorer browser and then perform the troubleshooting steps.
    Reference:
    Change the web browser by default
    http://Windows.Microsoft.com/en-GB/Windows-Vista/change-your-default-Web-browser

    Method 2: Since then, it was working fine before, you can restore the computer to a date when it was working fine.

    Reference:
     
     
    If online videos play fine in Internet Explorer and cause problems only when you play in Mozilla Firefox, you can ask your question in the Forums in Support of Firefox as well:
  • Folder open icon flies off the screen when you click on

    When you open outlook Ribbon, the file disappears from the screen and I can't capture the file to work with her.

    When you open outlook Ribbon, the file disappears from the screen and I can't capture the file to work with her.

    Hello

    The most common reason for this behavior is that the system has had a second monitor attached in the past and it is is no longer connected to the computer.

    Right click on the desktop, and then select the Screen Resolution.

    You see a "multiple monitors" section just below the screen orientation button?

    If you do, first of all, click on the set button, in the upper-right of the window. You should see a big number "1" appears on the screen.

    Then, click the drop-down menu expand these screens .

    Click on the item in Office show that on 1 .

    Click Apply/OK.

    Close this window and try to reproduce the problem.

    Let us know the results.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • I have several symbols, how can we showed above the others when you click it?

    I have an animation that is a City/Beach/sea, and different parts of the city are symbols that can be clicked on, for example a boat in the sea could be clicked that would then lead the boat. My problem is that the boat could grow to fill the screen, then the animation playing, but as there are many other symbols, then another symbol could be on top of the animation clicked on / reading. Ideally when each animation is clicked, it would move to the top of the list of layers, but I guess that's not possible, so I was wondering if anyone had a better way to do this?

    You need to change the z-index when you click on a higher level and return it to its original level when it ends, or when the user clicks on another symbol.

  • Stop the movement of the cursor when you click on the field

    Hey there,

    I am trying to find a way to stop the trackball to move the focus around a bunch of fields I have in a custom handler that I created. I want that the development movement will not apply when the user clicks on a field, with emphasis.

    The reason why I want to do is to move this autour field and NOT the focus.

    Is it possible to implement this switching between the two?

    Thank you for your help.

    NavigationMovement to implement in these areas. Set a Boolean inside this field switch when you click on it, and then, in navigationMovement, check that then call your special treatment and return true or return super.navigationMovement.

  • Meaning of the % sign when you click 'properties '?

    When I click on 'Properties' of my Sansa Clip Zip drive, I see 0% under the battery icon.

    Does that mean remaining 0% or 0% power used?

    When the player is 'on' the infinitely small battery indicator on the face of the one who seems to be all green for me.

    alternator wrote:

    There is a problem between Windows 7 and Clip Zip that makes any information battery - supplied when you are connected to the computer - quite wrong

    Correct battery level information can be obtained only by going to 'Settings' (in the drive), click settings, click the arrow to the right, through information, click info, scroll down to power (now says mine 100%

    Yes, it is a Win 7 known glitch that MicroSoft never felt important enough to fix.

  • Error "Could not load the page" when you click the backup and Restore Center

    Original title: Save reestore center problems

    OK so I need to restore my pc and when I click on the backup center and restoration he always says "Unable to load the page"... . How can I fix

    try to reinstall the backup files if you have a windows disk to use to reinstall or if your computer has windows factory preintalled windows, you could reinstall striehgt from your computer

  • Introduce the function - How to Pick up address of the contractor when you click on submit.

    Hi guys,.

    Currently, I work on the COMPUTER helpdesk at UWS and would like your help to change some of our existing Access IT forms.

    Currently, we have a function submit on our forms when you press will verify that some required fields are filled and sends an email in our ticketing system (just a mailto link: [email protected])


    The problem we are facing is requests come to us without approval so that we have to communicate with supervisors and check if the forms submitted by their staff are approved; a lot of your time

    I thought, this is:

    When the user clicks the Submit button, which picks up the e-mail address entered in the "E-mail address" under Details of the supervisor.

    The emails then the form of the master to work with text that reads:

    Dear supervisor,

    Could you please indicate if you agree with the Access IT form (attached). If you agree please send this message to [email protected] (wording is not serious I can play with it, more the coding behind the button)

    I was unable to find a way to reach our form in its current state. If you could let me know how to proceed, I will attach it (can only find contact picture or video)


    Can you please investigate if it is possible for me? I have little or no knowledge of Java code or whatever it is, that these things run on.

    Kind regards

    Rob

    [email protected]

    Thanks sidonie.

    I appreciate your efforts!

  • Reminders of WebView - capture the URL when you click hyperlinks

    Hi all

    I need help. I use webview/webengine to view a Web page that uses frames, such as http://commons.apache.org/math/api-2.2/

    When I click on a hyperlink in the page, the url (and therefore also the WebEngine.locationProperty) do not change and I can't find a way to 'catch up' the url of the new content displayed in one of the frames.

    How can I catch the event with a click on a hyperlink in an html page displayed in WebView?

    See you soon,.
    Osmoz

    aidreamer wrote:
    I can't test this, but the execution of Javascript something like this might work:

    alert(frame.src);
    

    I can't test it either, but I looked at all the documentation suggests that the src property will remain unchanged when a different page is loaded or it will always give the initial page loaded in the frame. Apparently the current page is available at documentLes.

    For some reason, HTMLFrameElement (indeed, the package integer org.w3c.dom.html) is not included in the Java SE 6 API, but here's the [url http://download.oracle.com/javase/1, 5.0/docs/guide/plugin/dom/org/w3c/dom/html/HTMLFrameElement.html]Java 5 documentation. As you can see, there is a getContentDocument() method that returns a Document whose getDocumentElement ().getAttribute("src") could return the URL of the page currently displayed.

    But unfortunately, the WebEngineof representation of an HTML image does not implement this interface - this is an implementation of the HTMLElementsuperinterface.

    I think that it is possible here showing a RFE on Kenai, the example uses with case and a link to this topic.

    DB

Maybe you are looking for