Can we add method using Manager in the ScripUI resource string?

Hello

I created a sample window using scriptUI, which has buttons; As far as I know, we can add externally as a handler method

button.onClick = function() {}

but we can add handler to a button in resource string something like that?

B1: button {text: 'OK', onClick: sayHello}

function SayHello () {.}

Thank you very much

~ Ays.Hakkim

No, this is not possible. As a general rule, resource strings are used only for the presentation of a window. The functional part of a window (for example, event handlers) are not part of the layout and not can therefore be included in the resource string.

Peter

Tags: InDesign

Similar Questions

  • How can I add a separate apple for the iphone and ipad wife id

    How can I add a separate apple for the iphone and ipad wife id

    Hi, are the measures already implemented? If they are, you need to configure them again and establish a Apple ID at this time.

    Apple ID - Support official Apple

  • version of 256 GB of omen 15 2016: can I add a HARD drive on the 256 GB 15 2016 omen version?

    can I add a HARD drive on the 256 GB 15 2016 omen version? Thank you!

    Hello

    Yes you can. But you need part number 858969-001 connect new 2.5 "HDD/SSD to the Board of Directors.

    Kind regards.

  • Can what program I use to open the files PLX?

    Original title: PLX files

    Can what program I use to open the file in a readable format PLX?

    Hi Truman,

    I understand that you want to open the PLX files.

    Executable program written in Perl programming language; often used for Web applications that are running on a Web server. You can open them using the following application.

    Microsoft IIS with PerlIS.

    I hope this helps.

  • How can I add a new site under the heading 'Favorites '?

    How can I add a new site under the heading 'Favorites '?

    See: https://www.winhelp.us/internet-explorer-11-favorites.html

    He will explain

  • How can I add a PDF file to the page in the site Web of Muse?

    How can I add a PDF file to the page by Muse?

    Hello Gini1950,

    In case you want visitor to click a button and open the PDF file in the browser, you can try following:

    1. create a button (Rectangle or text box)

    2. click on the button and go to the hyperlink menu and click on "link to file".

    3. navigate to the PDF file and select it.

    This will create a hyperlink to the file and it will open in the browser if someone clicks on the button.

    Please let me know if you are trying to achieve something else.

    Kind regards

    Vivek

  • How can I add my serial number of the trial version?

    How can I add my serial number of the trial version?

    Downloaded the trial version of CS6, was sold, and now I am trying to add the serial number, but don't know where to go.

    On the page of the trial, where it shows "x" days left.

    On the bottom you will find a button ' license this software ", click on that and follow the instructions on the screen.

  • How can I add a print icon to the toolbar?

    My users want to print specific topics. How can I add a print icon in the toolbar? I don't see this option when I generate. Maybe it depends on skin that I choose?

    Hello

    You must create a custom button. See extract of 24 on the site of Peter: http://www.grainge.org/pages/snippets/snippets.htm

    Take a bow

    Willam

  • How we can dynamically add or remove action from the popup menu in qml item

    Hi all

    I want to just dynamically add or remove action from the actionset item in the contextual menu especially in qml.

    Thanks in advance.

    Kind regards

    Ankur

    You can do so by joining the actionitem as attachedObjects. Once the page is complete (signal onCreationCompleted), you can add it to the page using addAction()

    To remove, you simply delete the page using removeAction()

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__page.html

  • How can I add an image rotation of the Earth (or graph) with my companies name to my Web site

    I am building a site and one of the pages I would like to create a realistic picture of the Earth with my names of companies wrapped around it turns as the header image. I think because of the nature of this 'internal' to the site one page it does not loading problems and would really improve this particular page. Is there any ready made solutions that I can just add to my site or what is the best way to go about this?

    It's not a question of Dreamweaver since DW is not a graphical application.

    I don't know all solutions ready to use for anything except to Google search the free image of royalty «Animated Globe» Villas

    https://www.Google.com/search?q=animated+earth+globe+image&ie=UTF-8&OE=UTF-8

    http://www.Shutterstock.com/s/globe/search.html

    -Planet Earth - realistic 3D Globe 3D models | 3DOcean

    Alternatively, an animated GIF could be built in Photoshop with your images and text.

    How to make a GIF animated with Photoshop | Digital trends

    Or you can use Edge animate which refers to HTML5, CSS and Javascript.

    Nancy O.

  • How can I add a field number of the apartment to the House address Web Forms?

    The home address is the only area that is included with the standard format of the web Contacts. How is I can't add a street address, apartment/Suite without creating a custom field for this?

    There is currently no way to include a second address field from House to apartment numbers or after which CRM are related. You must create an entire custom form for this.

    I created a work around for this.

    (1) expand the CRM database and add two fields called, 'Address' and another called ' apartment/Suite '.

    (2) add these new fields to the contact form

    (3) use jQuery to collect and store the values

    (4) concatenate values in the HomeAddress field using jQuery

    $('#StreetAddress,_#AptSuite,).bind ('keypress blur', function() {})

    $('#HomeAddress').val ($('#StreetAddress').val () + ' ' +)
    $('#AptSuite').val ());
    });
  • How can I add a text field for the main menu?

    I have a project with a menu.  He has a title.  I wanted to add an additional track on the menu, what I had done in an earlier draft.  I would have thought he would have intuitively obvious, as highlighting the existing title I and do a copy and paste.  However, I learned that nothing is intuitive with Premiere elements 12.  Can someone tell me how to get a 2nd title on my main menu?  I have done it before, but apparently did not write it and I was faced with that I falsely assumed would take me 30 seconds to accomplish.  Thank you.

    Rick

    Do you really need a second title for the page in the main menu and the selection of scene or you page fixed for your Adobe title in more than one line?

    I wonder

    I wanted to add an additional track on the menu, what I had done in an earlier draft.

    Is it possible that as soon as you use a theme which came with 'subtitle', as the trip/Beach Resort, not all do.

    Workaround for the title with more than one line of text can backfire on you. But you can try. Excerpt from my first items 13 on this blog

    0019 first Elements 13 movie Menu title question: multiple lines of text


    A first elements 13/13.1 user reports that, if it creates a 3 lines of title text for the main menu of the fake big screen theme in the customization area of Movie Maker project, these 3 lines of text eventually "encoded" in the project of reopening after that that there had been closed.

    We have confirmed this report and extended it to include this problem appears for 13 of Menus other than the fake Widescreen cinema. This issue is not seen in first items 12/12.1 and earlier versions.

    BEFORE REOPENING THE CLOSE SAVE

    Figure 1. Main menu of Spring Flower home with 3 lines of text, as seen before the closure of the Reopen

    AFTER THE REOPENED NARROW SAVE


    Figure 2. Spring Flower main Menu title initially with 3 lines of text, as seen from the closure of the Reopen



    The only way found so far to get the final product to have 3 lines of title text for menus in the final product is to customize the theme to the movie Menu in the customization of the Menu movie of the project area, do not save, close the project at this time and can do the burn to.


    Many variables were examined to explain this behavior. So far, no answer for why.

    If you are determined to use a particular theme that comes with the title menu and subtitle, look at the text of the Palette layers layers in the editing menu .psd file (.psd Editor could be Photoshop CS or higher).

    Regarding

    on my project last year that was the menu that I liked with 2 text fields, I have also got rid of the "arrow" shortly before the text that was the menu key.  Anyone know how I do that?  I can't figure that out now.

    Could you be more specific. But, for now, consider... If you Play All text, you double-click to open the text of the amendment, the deleted text, click OK. Play All disappeared. Sometimes, in page and removal of text "main menu" scene selection to the navigation button... double click on the button to open the changes to the text, delete text, press ENTER, and then bar spacing, and click OK.

    Please let us know if everything above the target you wanted to know.

    Thank you.

    RTA

  • How can I add a swatch library in the Panel main swatch?

    CS4 on Mac. I have three libraries of nuances that I use all the time. Can I add them to the swatch main group so that they are always available for each new document, and so that the swatch group "remembers" that which has been used where? View this picture: when I click on the Red object, the red shade is highlighted by a framework, telling me that's what I used to color this object.

    Screen Shot 2014-12-31 at 12.10.01 PM.png

    Open the new Document profile, you use the most. Add colors to this Swatch Library, then save the file. See help in several directions.

  • Can I add a new trigger to the beginning rather than at the end of a blank publication widget?

    Hi guys,.

    I am creating a page of photo gallery using the widget a blank publication. I want to be able to add new content on a regular basis by adding new pictures to the top (beginning) of the gallery for my most recent photos indicate at the beginning of the gallery.

    Currently, the small + symbol to add another trigger doesn't add a new trigger to the right (bottom) of the trigger group, putting actually newly added content to the rear of the gallery rather than at the front. I am able to get to add a new trigger in the Group and have that trigger to be first in the group to display?

    The widget seems to display the same behavior of the command, so I'm pretty stuck on how to work around this problem. I tried to re - arrange triggers, which became incredibly heavy but everytime I want to add new photos in the Group and move older further down in the order of the gallery.

    Any help would be greatly appreciated with this, cheers, David.

    Hi David

    With composition, adding the image would be as well as the addition to use the most (+) sign which will add next to the previous content.

    At this stage, you would have to re - arrange the triggers or you can display them randomly if you want not to re - organize. Those are the only options.

    Thank you

    Sanjit

  • Can I add a column 'To' in the message lists?

    Looking at items, I want to add a column 'To' in the list of messages, so I can see that they have been sent to, but I don't see that option anywhere. Is this possible?

    Click with the right button on the headers, or click on the little thing on the end.

Maybe you are looking for