Custom dialog - subvi

Hi ng,
since my program got too complex I created a vi that is supposed to behave
like a dialog box.
I want to open it when my main vi starts and after closing the dialog vi
again the results from that vi returns to the main vi and the program
begins.
How do I close the dialog-vi again without exiting the whole application?
I already set up the properties in the dialog-vi to behave like a dialog.
But whenever I tried it I either quit the whole program or nothing happened
and I had trouble stopping the running application again :-x
Any hint will be appreciated!
Listad
[platform: Win98; Labview Verion 6.1; Purpose of the program: gathering
measurements, basic calculations, display of measurements, storing results
in files]
PS: Is a AMD K6 300MHz 64M
B RAM sufficient to handle "average" labview
tasks?

Hi Christian
I've guess that you have tried to set the parameters in => File menu /
Choose VI Properties / In the Category-field Choose Windows appearance and
click on the Custombuttom and Customize. Then select Show front panel when
called and ... Close afterwards.
Hope that this will help
Magnus
"Christian Schilling" skrev i
meddelandet news:b01jtk$kavs6$[email protected]..
> Hi ng,
> since my program got too complex I created a vi that is supposed to behave
> like a dialog box.
> I want to open it when my main vi starts and after closing the dialog vi
> again the results from that vi returns to the main vi and the program
> begins.
> How do I close the dialog-vi again without exiting the whole application?
> I a
lready set up the properties in the dialog-vi to behave like a dialog.
> But whenever I tried it I either quit the whole program or nothing
happened
> and I had trouble stopping the running application again :-x
> Any hint will be appreciated!
> Listad
>
> [platform: Win98; Labview Verion 6.1; Purpose of the program: gathering
> measurements, basic calculations, display of measurements, storing results
> in files]
>
> PS: Is a AMD K6 300MHz 64MB RAM sufficient to handle "average" labview
> tasks?
>
>

Similar Messages

  • 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)

  • Open a custom dialog when button is pressed.

    I have a custom dialog that I want to display another custom dialog. I cannot get it work correctly. Everytime I add a function that will show the 2nd dialog It will show before the 1st one is loaded and then nothing happens when I click the dialog on the first!
    I seem to be missing something big? I have not even started to try to get the value of the 2nd dialog and return it to the first!
    Any help!!!!?
    Here is some of the code
    function showAddTokenDialog ()
        LrFunctionContext.callWithContext('showAddTokenDialog', function( context )
            local f = LrView.osFactory()
            tokenprops  = LrBinding.makePropertyTable(context)
            props.token = "val"
            -- Create the contents for the dialog.
            local token = LrView.bind('token')
            local AddTokenDialog = {
                bind_to_object = tokenprops,
                title = "Add Token",
                actionVerb = "Add Token",
                actionBinding = LrView.bind('action'),
                contents = f:row {               
                    f:static_text {
                        alignment = "right",
                        width = LrView.share "label_width",
                        title = "Token "                   
                    f:popup_menu {
                        value = LrView.bind('val'),
                        items = tokenItems,
                        width_in_chars = 15
            result = LrDialogs.presentModalDialog(AddTokenDialog)
        end)
    end
    function Mine.showCustomDialog()
        LrFunctionContext.callWithContext("showCustomDialogWithObserver", function(context)
            props = LrBinding.makePropertyTable(context)
              local c = f:row {
                                            f:static_text {
                                                alignment = "right",
                                                --width = LrView.share "label_width",
                                                title = "Caption: ",
                                                width_in_chars = 10
                                            f:edit_field {
                                                --place_horizontal = 0.5,
                                                --bind_to_object = tableTwo,
                                                value = '',
                                                height_in_lines = 2,
                                                width_in_chars = 20
                                            f:push_button {
                                                title = "Add Token",
                                                -- When the 'Update' button is clicked
                                                font = '<system/small>',
                                                action = showAddTokenDialog ()
              LrDialogs.presentModalDialog(
                    title = "Barcode Match",
                    contents = c
        end) -- end main function
         end

    See http://htmldb.oracle.com/pls/otn/f?p=24317:91
    The Toggle button does what you need.
    The button has a URL of Toggle(). The function Toggle
    is defined as
    <script>
    function Toggle()
    var txt=html_GetElement('P91_TEXT');
    txt.disabled=!txt.disabled;
    if (!txt.disabled) txt.focus();
    </script>
    I don't want to seem ignorant but where do I put this code of the function toggle. I don't seem to see a URL anywhere in the button. Maybe I'm using a different button type then you.
    Aron

  • How to continue transition rendering with custom dialog open

    Hi,
    I'm working on a plugin for some custom transitions (currently for CS6/CC on Windows).
    I'm using a custom dialog (hasCustomDialog in PiPL) during esSetup to set the transition parameters. While the dialog is open the execution of Premiere is halted until the dialog gets closed.
    The problem is, while I'm fiddling with the parameters I can't see changes in the program monitor and I don't get any feedback from Premiere.
    I tried to make the dialog non-blocking but then Premiere didn't rerender the frames when I changed something in the dialog.
    Does anybody know if it is possible to keep the dialog open and still have Premiere actively updating the rendered view?
    Regards,
    Philipp Stelzer

    Hi Zac,
    thanks for your answer.
    Currently I'm using a modal dialog to set up my parameters and the parameters are corretly applied after I close the dialog.
    But I'd like to keep the dialog open to see the changes directly without reopening the dialog each time I want to tweak a value. Is that possible with a custom dialog?
    I'll take a look at the new transition extensions, but I'm already working on this plugin for a few month and my dialog and the transition effects are already quite extensive. So, I don't know if it is possible to port everything to the new extensions (at least not in reasonable time).
    Regards,
    Philipp

  • Remote Custom Dialog Crashes (Subscription Success Window)

    Hi everyone,
    I'm having a bug for a very long time, which I can't seem to be able to solve or understand, where it comes from.
    In Viewer Builder there is this field:
    Optional Remote Custom Dialog URL
    This URL loads when the customer completes the subscription process. For example, you can request user information or provide additional details about your products.
    When I fill this with a URL on my publications marketing page, it's pretty sure, what happens: When a user subscribes to my publication this window appears after the subscription process is finished.
    The problem is, that with every App I built for the last months, the App always stops at this window showing the content of the given url, but with no possibilty to leave this window. There is no "Finished" button whatsoever and no way to get back to the library. The only way to leave the window is by killing the App through task manager.
    Does any one else encounter this problem? The only solution is to keep the field empty in Viewer Builder and not showing a success window to the customer (though having no ability to ask him or her for his or her contact data).
    Does the URL one states in this field have to fullfill special features (like a a callback of some kind?)
    Thanks very much in advance,
    Richard

    Have you tried implementing a Javascript close/cancel/ok Button?
    <html> 
    <head>
       <title>JavaScript Window Close Example </title>
    </head>
    <script type="text/javascript">
       function popuponclick()
          my_window = window.open("",
           "mywindow","status=1,width=350,height=150");
          my_window.document.write('<h1>The Popup Window</h1>');
       function closepopup()
          if(false == my_window.closed)
             my_window.close ();
          else
             alert('Window already closed!');
    </script>
    <body>
       <p>
          <a href="javascript: popuponclick()">Open Popup Window</a>
       </p>
       <p>
          <a href="javascript: closepopup()">Close the Popup Window</a>
       </p>
    </body>
    </html>

  • 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

  • Subscription tile Optional remote custom dialog URL

    Hi All,
    we have finally managed to sort out our subscription error with the infinate spinning issue.
    But now we have put back in a URL to open up a newsletter signup after the subsciption has gone through. The page opens up, but it doesnt not load with the normal in app browser window, so once you filled out the details you cant get back into the app?
    Is this normal?

    Does this help?
    Optional Library Subscription Tile URL - Specify a URL that is displayed in an in-app browser window when the customer taps the subscription tile. This webpage can include messaging that is not necessarily related to subscriptions.
    Optional Remote Custom Dialog URL - This URL loads when the customer completes the subscription process. For example, you can request user information or provide additional details about your products.

  • 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.

  • Custom dialog window tools list.

    Does anyone have, or know where to find a list of all the usable tools for a custom dialog window?  By tools, I mean the code for putting in the various interactive parts available for custom interfaces, such as checkboxes, text input, etc.  I know how to do the checkboxes, radio buttons, text, and buttons, but that's about it so far, and I would think there is much more than that available.  Anyway, if anyone knows where I could find a list of the available tools and could point me to it, it would be much appreciated.
    dgolberg

    I think you will find this as a great resource...
    http://www.kahrel.plus.com/indesign/scriptui.html

  • Customizing dialoge

    I have made customizing dialog
    I  compare two values
    One from a fieldsysmbol and other from the domain fix value
    The fieldsymbol value is ASB. This value comes from the domain fix value
    if <test> -testvalue = domain fix value
    <test>-testvalue have the value ASB
    How can I access the domain fix value on right side of if.
    thanks
    waseem

    Hello Ahmad,
    Try using FUM : DD_DD07V_GET to get the fixed values.
    Regards,
    Sandeep

  • Using the Optional Remote Custom Dialog URL

    Can anybody point me to a magazine that uses the Optional Remote Custom Dialog URL (preferably with a free subscription).
    Lately, we've been testing the implementation of the remote custom dialog feature.
    As we understand, this is not be a standard web page that get's loaded to the internal browser, but a dialog that displays as an overlay, but we still didn't manage to implement it.
    Any sample or tutorial we can refer to?

    Have you tried implementing a Javascript close/cancel/ok Button?
    <html> 
    <head>
       <title>JavaScript Window Close Example </title>
    </head>
    <script type="text/javascript">
       function popuponclick()
          my_window = window.open("",
           "mywindow","status=1,width=350,height=150");
          my_window.document.write('<h1>The Popup Window</h1>');
       function closepopup()
          if(false == my_window.closed)
             my_window.close ();
          else
             alert('Window already closed!');
    </script>
    <body>
       <p>
          <a href="javascript: popuponclick()">Open Popup Window</a>
       </p>
       <p>
          <a href="javascript: closepopup()">Close the Popup Window</a>
       </p>
    </body>
    </html>

  • How can I change Calendar UI to Custom Dialog in the Outlook?

    I can't English very well...understand me please. :)
    I make MDI project using MFC and I selected Office style in the MFC application wizard.
    So, now I can see the basic Outlookbar in my program.
    but, I want to change calender to My Dialog(anything OK) in the Outlookbar.
    It is possible? 
    Thank you for read
    have a nice day!!

    Hi LimSeungkyun,
    You cannot use a dialog as a CMFCOutlookBarPane.
    You may need create a class derives from CWnd as a tab in the outlook bar. Creating the child controls in OnCreate() and drawing picture in the OnPaint(). See the steps of how to implement a Outlook Bar in this document.
    https://msdn.microsoft.com/en-us/library/bb982639.aspx
    If you want to some example, you could check the Outlook Demo sample or create a MDI office style template project.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 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.

  • Calling custom dialog screen from Standard Transaction(user Exit)

    Hi, I'm calling Standard Transaction from a Custom Screen. I'm calling a custom screen again with in standard transaction (implemented custom screen thru user exits using macros). But when I click 'continue/cancel' in the custom screen, control is going back to main cutom screen rather go back to standard transaction. Could anyone please help me out how to come back to standard transaction from custom screen rather going back to main cutom screen.
    ***INCLUDE LZ_R_FORWARD_FORWARD_LOADI01 .
    *&      Module  USER_COMMAND_9000  INPUT
    MODULE user_command_9000 INPUT.
      CASE sy-ucomm.
        WHEN 'EXEC'.
          PERFORM validate_popup_data.
          IF flag_error_screen NE 'X'.
            MOVE-CORRESPONDING ZFFL_POPUP to var_ZFFL_POPUP.
            clear flag_return.
            SET SCREEN 0.
            LEAVE SCREEN.
          ENDIF.
        WHEN 'CANC'.
          flag_return = 'X'.
          SET SCREEN 0.
          LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  exit_9000  INPUT
    MODULE exit_9000 INPUT.
      CASE sy-ucomm.
        WHEN 'CANC'.
    *      MOVE perf_flag TO lbpla_exist_flag.
          flag_return = 'X'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " exit_9000  INPUT
    Thanks in advance.

    Hi
    So the command SET SCREEN 0. LEAVE SCREEN. should "place" the program just after the calling of the popup so here:
    FUNCTION z_call_screen.
    * Call the Pop up screen
        CALL SCREEN 9000 STARTING AT 35 05.
    "<------------------------- The program should be here after going back from popup 9000
    ENDFUNCTION.
    Is it true?
    Max

  • Standard tool bar for custom Dialog program

    Hi,
       I need to have a standard tool bar functionality like (Search & Print) for my screen 9000. Could you please let me know how can i get it. And i have a ALV in that screen, if i print the data will all the lines will be printed or only displayed lines will be printed, could you please let me know how to get all the lines of ALV. Basically i have some fields & ALV... everything should be printed out.
    Thanks

    my question is when you create a custom screen like 9000, pf-status also need to created. If i need to printing functionality what needs to be done. If i need all the standard functions in my custom screen...what i need to do.
    In that custom screen i have normal fields and one ALV. if i have print button in the standard tool bar and if i use it will it print all the lines of alv along with other fields. {please note that i am not talking about the alv print icon, i am talking about that standard tool bar print icon}.
    Thanks

Maybe you are looking for