Custom Dialog Box Question

I have a custom dialog box that uses both radio buttons and edit_text fields.  What I am trying to do is make so that when a certain radio is selected the edit_text field will be filled with a suggested answer.  Is that possible and how could it be done?

Yes,  data is acquired from fields with the "dialog.store()" function and loaded with the "dialog.load()" function. Say that one radio button is named "Rad1" and the text box is named "Txt1".  Then this code represents the action script for the radio button, it places "New Text" into the the text field.
"Rad1":function(dialog){
    var rslt = dialog.store();
    if(rslt["Rad1"])
        dialog.load({"Txt1": "New Text"});
The Action script is a member of the dialog object.  You can see examples of how this can be build by downloading a trial version of AcroDialogs, which will build the correct JavaScript code for adding an action to a radio button.
http://www.windjack.com/products/acrodialogs.html
Thom Parker
The source for PDF Scripting Info
pdfscripting.com
The Acrobat JavaScript Reference, Use it Early and Often
http://www.adobe.com/devnet/acrobat/javascript.html
Then most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article)

Similar Messages

  • Adding images in custom dialog box

    Hi!
    Do  you know if it's possibile to insert an image in a custom dialog box? I mean during the custom dialog box design (during the .dre file creation).
    Thanks to all!

    Hi Stemens,
    I'm hesitant to answer your questions anymore because somebody always comes behind and shows everybody how much I don't know   Anyway, I do not know of a way. I remember that there have been other developers discussing this and I think everybody just gave up. I have never seen an image in a dialog box, so that tends to indicate to me that no one has found a way.
    Russ

  • Return results from custom dialog box not visibly updating field value

    I have a form with custom dialog boxes (execDialog) for data entry. The dialog box is being called from the Entry event successfully. I also have it called from the Click event. So, here's what I get:
    1. On entering the field, I get the dialog box pop up, I select a value, it visibly changes the field raw value and leaves focus in the field.
    2. If I exit the field and re-enter, it also works as in point 1 (as expected)
    3. If, while focus is already in the field, I click in the field, I get the dialog box, as expected, but after selecting a value from the dialog, the field raw value DOES NOT VISIBLY change until I exit the field! It's kind of like the click event is working in conjunction with the Exit event. This is totally counter-intuitive for a production form that is being designed for the general populace.
    Anyone had any experience with this?
    Cheers,
    Marty.

    Thom Parker answered this here: http://forums.adobe.com/message/2614570#2614570
    Answer copied below:
    "The problem is that when the focus is on the text box
    it's in edit mode. It's only displaying the value interactively entered by
    the user, or as a consequence of the change event.  What you need to do is
    force the focus off of the text box in code.  You can do a little trick
    where you bounce it to a tiny transparent field, which then bounds the focus
    back so it doesn't look like the focus changed."
    What I ended up doing was calling up the dialog box, then using setfocus with no parameters to remove focus from the field, as follows:
    this.rawValue = this.dialogBoxFunction(this.rawValue); // passing current value so dialog box defaults to that value
    xfa.host.setFocus();
    Cheers,
    Marty.

  • Paste picture as signature from custom dialog box?

    Hi, I have created a custom plugin signature dialog box using c++ with picture control and want to paste the picture as a signature, but as soon as I click ok, the John Doe dialog comes up and my picture is not getting pasted. How can I suppress this dialog box and paste my picture? Thanks!

    Please repost in the Acrobat SDK forum.

  • Share to youtube/export to quicktime dialog box questions

    In Share to YouTube, or export to quicktime, you get a dialog box that says:
    Playback Uses: Fixed Timing
    Slide Duration: 5 seconds
    Build Duration: 2 second
    The keynote presentation is built with all the correct timings that I don't want to change, so I guess I don't understand this questions. I would want the presentation to follow the timings build into the elements and page transitions.
    Please advise.
    Thanks
    bob

    no answer, but removing question due to lack of response.

  • Custom Dialog Boxes

    Hey guys, I have a need to make a window pop-up and pause the program that called it until it is closed. To do this, I figured the best method would be a JDialog, seeing as its modal. I went about constructing the Jdialog in the same manner as I would a frame, and to my suprise it doesnt like that.
    Its throwing an Illegal arguement Exception on line 92, (I marked it with a comment)
    I looked into what arguements it expected, and found out that a JDialog wants Strings.
    This leads me to wonder then, What do you use if you want to build a gui that would stop the underlying code until its complete?
    Thanks for your help
    --Russ
    private List<VariableDefinition> constructGUIAndList( List<VariableDefinition> variableDefaults, String testName )
              final JDialog makeYourChoice = new JDialog();
              final Map<String, VariableDefinition> defaults = new HashMap<String, VariableDefinition>();
              final List<VariableDefinition> tempListToBuildUsrSel = new ArrayList<VariableDefinition>();
               * Annonymous inner class defining the action to take upon the proceed button being clicked
              Action proceedCLICK = new AbstractAction("Proceed")
                   @Override
                   public void actionPerformed( final ActionEvent ae )
                        for ( Component c : makeYourChoice.getComponents() )
                             if ( c instanceof JPanel)
                                  JLabel jL = (JLabel)c.getComponentAt(0, 0);
                                  JTextField jTF = (JTextField)c.getComponentAt(0, 1);
                                  VariableDefinition vd = defaults.get(jL.getText());
                                  VarIdentifier name = new VarIdentifier( jL.getText(),vd.getIdentifier().getScope() );
                                  ParseTreeElement value = new VarIdentifier( jTF.getText(), vd.getValue().getScope());
                                  String rawData = jL.getText() + "=" + jTF.getText();
                                  vd = new VariableDefinition( rawData, vd.getChildren(), vd.getScope(), name, value );
                                  tempListToBuildUsrSel.add(vd);
                                  //TODO: put a statement here to pass the information on to the tester
                        makeYourChoice.dispose();
                   private static final long serialVersionUID = 10400001L ;
              List<VariableDefinition> variableReturn = variableDefaults;
              makeYourChoice.setModal(true);
              GridBagConstraints template = new GridBagConstraints();
              GridBagUtils.insets(template, 4, 4, 4, 4);
              JLabel title = new JLabel("User Variable Input for " + testName);
              GridBagConstraints setPositioning = (GridBagConstraints)template.clone();
              moveTo(setPositioning, 0, 0);
              cellSpan(setPositioning, 2, 1);
              makeYourChoice.add(title, setPositioning);  //this is line 92<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
              int i;
              for ( i = 1; i <= variableReturn.size(); i++ )
                   addVariableFrame( makeYourChoice, template, variableReturn.get(i), i);
              JButton proceed = new JButton();
              proceed.setAction(proceedCLICK);
              setPositioning = (GridBagConstraints)template.clone();
              moveTo(setPositioning, 2, i);
              cellSpan(setPositioning, 2, 1);
              insets(setPositioning, 0, 100, 0, 100);
              makeYourChoice.add(proceed, setPositioning);
              makeYourChoice.setVisible(true);
              return tempListToBuildUsrSel;
         private void addVariableFrame( JDialog jD, GridBagConstraints template, VariableDefinition vd, int whichVariableAreWe )
              JPanel variableDefinition = new JPanel();
              GridBagConstraints setPositioning = (GridBagConstraints)template.clone();
              cellSpan(setPositioning, 2, 1);
              moveTo(setPositioning, 0, whichVariableAreWe);
              JLabel name = new JLabel( vd.getIdentifier().getRawData() );
              setPositioning = (GridBagConstraints)template.clone();
              cellSpan(setPositioning, 1, 1);
              moveTo(setPositioning, 0, 0);
              name.setFont( new Font("Header", Font.BOLD, 14) );
              variableDefinition.add(name, setPositioning);
              JTextField value = new JTextField( vd.getValue().getRawData() );
              setPositioning = (GridBagConstraints)template.clone();
              moveTo(setPositioning, 1, 0);
              value.setFont( new Font("Header", Font.BOLD, 14) );
              variableDefinition.add(value, setPositioning);
              jD.add( variableDefinition );
         public static List<VariableDefinition> chooseVariables( List<VariableDefinition> variableDefaults, String testName )
              OverrideDefaultTestRooms var = new OverrideDefaultTestRooms();
              return var.constructGUIAndList(variableDefaults, testName);
         }

    Insert following somewhere in the start of constructGUIAndList():
    makeYourChoice.getContentPane().setLayout(new GridBagLayout());Thanks!

  • Dialog Box simulation without interrupting program flow

    I'm developing data acquisition/control software and need to give the end
    user flexibility to change the file to which the acquired data is being
    saved during operations. In the past, users have been confused with a
    simple string control that specifies the data file path, so I would prefer
    to move to the popup/dialog box standard to windows. Unfortunately, calling
    a dialog box results in the stoppage of program flow for the caller until
    the dialog box is closed (even though there may be no apparent data flow
    from the popup VI.) and stopping the program flow is not an option for this
    control system (the computer is controlling pressure, temperature, flow
    rates, etc of a very expensive and sensitive bit of hardware, so halting the
    control function for an unknown length of time is unacceptable).
    I am looking for the best way to accomplish this under LabVIEW 6i.
    Using a VI class reference through VI Server, I can essentially detach the
    popup window from the base program execution, spawning a separate
    application and passing the relevant parameters through judicious use of
    global variables. If I call the subroutine via VI server with "Wait until
    done" attribute set to false, the appropriate VI appears, functions
    correctly, and terminates as expected. Unfortunately, it remains visible on
    the screen, an inactive application. I have the VI Properties -> Window
    Appearance -> Customize -> Show Front Panel When Called and the Close
    Afterwards if Originally Closed checkboxes checked on this popup VI. It
    seems that calls through VI Server trigger the "Originally Open" flag, so
    the window does not close as I had expected.
    The way I have found to get around this problem is to use VI Server to call
    an intermediate subroutine whose front panel is not displayed and whose sole
    purpose it to call the subroutine that calls the dialog box. This does what
    I wanted, essentially. When the user wants to change directories, they
    press a button that triggers a call to VI Server to open a separate
    application. This application's front panel is never displayed and only
    calls a sub-VI that performs all the actual work and ends when it is
    completed. As this sub-VI terminates, all visible traces of the subroutines
    disappear and I'm left with just the primary program executing, continuing
    to take and send control signals through this whole process.
    This seems a rather cumbersome way to get a custom dialog box on the screen
    without stopping the program flow of the caller, however. Is there a more
    efficient way to accomplish this?
    Wade C. Eckhoff
    [email protected]

    Wouldn't it be easier to use two parallel independent while loops in the
    main vi, with one taking care of acquisition and the other of user
    interaction.
    When the UI loop is temporarily 'halted' because of the dialogue box poping
    up, the acquiring loop continues without delay.
    Regards
    Harrie Boonen
    www.novonordisk.com
    "Default User" wrote in message
    news:[email protected]...
    > I'm developing data acquisition/control software and need to give the end
    > user flexibility to change the file to which the acquired data is being
    > saved during operations. In the past, users have been confused with a
    > simple string control that specifies the data file path, so I would prefer
    > to move to the popup/dialog box standard to windows. Unfortunately,
    calling
    > a dialog box results in the stoppage of program flow for the caller until
    > the dialog box is closed (even though there may be no apparent data flow
    > from the popup VI.) and stopping the program flow is not an option for
    this
    > control system (the computer is controlling pressure, temperature, flow
    > rates, etc of a very expensive and sensitive bit of hardware, so halting
    the
    > control function for an unknown length of time is unacceptable).
    >
    > I am looking for the best way to accomplish this under LabVIEW 6i.
    >
    > Using a VI class reference through VI Server, I can essentially detach the
    > popup window from the base program execution, spawning a separate
    > application and passing the relevant parameters through judicious use of
    > global variables. If I call the subroutine via VI server with "Wait until
    > done" attribute set to false, the appropriate VI appears, functions
    > correctly, and terminates as expected. Unfortunately, it remains visible
    on
    > the screen, an inactive application. I have the VI Properties -> Window
    > Appearance -> Customize -> Show Front Panel When Called and the Close
    > Afterwards if Originally Closed checkboxes checked on this popup VI. It
    > seems that calls through VI Server trigger the "Originally Open" flag, so
    > the window does not close as I had expected.
    >
    > The way I have found to get around this problem is to use VI Server to
    call
    > an intermediate subroutine whose front panel is not displayed and whose
    sole
    > purpose it to call the subroutine that calls the dialog box. This does
    what
    > I wanted, essentially. When the user wants to change directories, they
    > press a button that triggers a call to VI Server to open a separate
    > application. This application's front panel is never displayed and only
    > calls a sub-VI that performs all the actual work and ends when it is
    > completed. As this sub-VI terminates, all visible traces of the
    subroutines
    > disappear and I'm left with just the primary program executing, continuing
    > to take and send control signals through this whole process.
    >
    > This seems a rather cumbersome way to get a custom dialog box on the
    screen
    > without stopping the program flow of the caller, however. Is there a more
    > efficient way to accomplish this?
    >
    >
    > Wade C. Eckhoff
    > [email protected]
    >
    >
    >

  • Restrict movement of dialog box

    hi,
    I have an internal frame when the user clicks a button a dialog box should pop up , how shall i restrict the movement of dialog box within the parent..(Desktoppane) i have used custom dialog box coz i need to capture the button click event.
    Thanks in advance

    You could use a JDesktopPane with JInternalFrames, this is their default behaviour. Read this section from the Swing tutorial on "How to Use Internal Frames":
    http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html
    Otherwise, you would have to add a ComponentListener to the JDialog. Whenever the JDialog is moved, you would check its location and if it is outside the bounds of the parent frame then you would reset its location. Here is a tutorial on "Using a Component Listener":
    http://java.sun.com/docs/books/tutorial/uiswing/events/componentlistener.html

  • Taking control of OS print dialog box

    Hi,
    Can I customize the OS print dialog box which appears, when I execute the FlexPrintJob.start method? I want to enable page range selection and some other fields.
    Other option is, if some how I can get the list of printers and other printer specific options availabe in my custom Dialog box.

    ShellExec is part of lvwutil and merely calls a function in Shell32.dll. There is nothing about the function call that controls the display of the printer dialog. I think that what shell32.dll does when it prints (just like right clicking on the file) is print the file according to what is defined about that file type in Windows Folder Options. On my Win2K system, the print application is defined as "C:\Program Files\Microsoft Office\Office\msohtmed.exe" /p %1. If I remove the /p, then Word starts up and in order to print, I get a printer dialog when choosing Print from the File menu. So it seems like the printer dialog is entirely dependant on the application that does the printing. I get no dialog when I use the VI to print a .txt file. I
    nstead of using shell32, you might want to try some ActiveX method or property of an application like Internet Explorer that can open and print an html file.

  • How can I Create custom pop up dialog box with question/answer

    I need to create a pop up dialog box that asks a question and accepts an answer input.  The form needs to be able to be emailed out (not server based)  Can someone help me do this?  I am a designer,  with very (Very!) limited coding skills.   Looks like the windjack program that I keep running into does not work with Acrobat X.
    Thanks for any help you may have

    I am not able to help you with the current method you are using - which seems an odd one in that you are using a menu script to do this????
    I would have done the page completely differently - instead of slicing it up into a vastly complex table, I'd have added the image to the page and then used an imagemap.  Then I'd have used this script to add the popups (as toolitps) that you can be as simple or as complex as you wish: http://boxover.swazz.org/.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • How to create a custom file dialog box/vi (win)??

    Hello,
    I'd like to create a custom file dialog box to handle the reading of my tdms files. Basicly I want to extend the existing file select dialog box with a graphical preview of the data in the selected file. I know I can create all the logic for file selection by hand and use a list box to display the filelist, but I would rather prefer to somehow use the existing windows controls. So is it possible to get the windows file selector on the front panel of a vi and react to the user selection? If so, is there any example available on how to do this? Any other options? I'm using labview 8.2
    thanks for your input!
    klaus

    Klaus,
    I wouldn't know that Microsoft provides access to the controls that Explorer and file dialog consist of.
    There might be a different and more powerful solution though. The
    WINDOWS Explorer / file dialog have a plugin API that allows you to
    associate your own application for thumbnail creation with a particular
    file extension. That way, TDMS thumbnails will show in any instance of
    Explorer and
    File Dialog without you having to make your own dialog. Basically, you
    would need to compile the VI that creates the thumbnail into a
    LabVIEW-built DLL and then wrap this DLL with some C++ boilerplate code
    that Microsoft provides. You might want to have a look at the bottom of
    this article to get an idea of how the whole thing works:
    http://msdn.microsoft.com/msdnmag/issues/0600/w2kui2/default.aspx.
    Hope that helps,
    Herbert

  • Custom file open dialog box

    Dear Friends!
    I need a custom file open/select dialog box (i.e a LabVIEW VI) that I can customize to mimic the looks of my project color scheme etc. Does one exist somewhere? If someone has already made one could you kindly share it with me? I'll be so much grateful to you.The one below is the one that windows provide, I need it in the VI form (so that I can customize it, change its colors etc) and use this in my application.
    Message Edited by C .DOT on 03-19-2009 04:58 PM
    Attachments:
    Snap16.png ‏23 KB

    Here is a very simple example that could be a starting point.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    browse folder.vi ‏16 KB

  • How do I configure my custom step type to call its Express VI configuration dialog box each time I double click the step?

    By double clicking on a step in the TestStand Sequence Editor the Properties dialog box pops up.
    How to change this behaviour?
    I would like to configure my step type so that each time I double click the step, the Express VI configuration dialog box pops up, instead of the properties.
    One Idea is to use custom activeX substeps, for example, Antonio Lie mentioned the substep "OnNewStep" in my last post. Is there also a "OnDoubleClick"?
    Does anyone know a list of activeX substep that can be used? Or are there other ideas?
    Thanks a lot!!!
    - Caribe -

    Caribe,
     1. Currently it is not possible to change the behavior for double clicking on a step. It is a good idea though, and we will be consider to add it to the next versions of TestStand.
     2. "OnNewStep" is the only "special" substep. It was implemented for internal use and it is not documented yet.
     3. If you want to know more about substeps you can red the Reference Manual, Chapter 13 is a good place to start.
     4. I want to make clear that "OnNewStep" is called every time you insert a new step. The sequnce editor gets the substeps list and if it finds the "OnNewStep" substep in the   list It calls it using the API. The substep can use any adapter type, It does not have to be the ActiveX adapter.
    Hope it helps.

  • Custom paper size button missing on print dialog box

    I installed the print driver for our new Z5200ps printer on four machines--all with no issues. I installed it on the fifth PC, and when the user tried to print from Illustrator and Photoshop, neither print dialog box had the custom paper button as all the other machines do. I deleted the printer and reinstalled--still no luck. Am using the latest driver. We're all running Windows 7, 64 bit. Thanks for any help!

    On december 28, 2008 I uninstalled Adobe Reader 8 and subsequently
    installed Adobe Reader 9...assuming it to be an upgrade. The print
    format box is completely worthless in content, and above all, it
    does offer a "print" option. You are totally unable to print zny-
    thing. Why is the print option (command) not included. Is this an
    overlooked error.
    Whar process do I use to reinstall Adobe Reader 8 and uninstall
    Adobe Reader 9. I am using Windows Vista Home Basic and have never
    had a problem using Adobe Reader 8.
    I would appreciete whatever help anyone can offer.
    Billie Holmes

  • How can I avoid the Local storage pop-up question dialog box during playing you tube vedios ?

    How can I avoid the Local storage pop-up question dialog box during playing you tube vedios ?

    You might try tweaking your global privacy settings.  I suspect it's set to "always ask."
      Go to this page -- http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.htm l -- which contains the settings panel for Flash Player, and click on the various "deny" buttons to disable this.  (It's a good idea to click on all the tabs to check the settings.)
    If this works for you, please post back.  (I know it worked for me.)
    Ortho_Fan
    (not a techie)

Maybe you are looking for