Converting message box from modal to non-modal

I have created a Dialog box that works well transferring variables but have now come across the need to keep this dialog open while exploring the VIEW and REPORT panels.  I understand non-modal dialog boxes allow for this and would like to convert or rebuild my current dialog  box to non-modal. Is this possible?
If I have to create a new non-modal dialog box, how is this done?  I have tried several examples that suggest using the SUDDlgCreate instead of SUDDlgShow but with no success.  It doesn't appear clear where the disticntion between modal and non-modal is made.
Thanks,
Ben

Hi All,
Another thing to look out for is that the modal SUDialog can pass a VBScript variable as a 3rd paramater between the calling VBScript and the called SUDialog.  The Non-modal SUDialog can NOT pass a VBScript variable in this way.
Otherwise there are no changes necessary in the SUDialog ittself, just the function used to call it as modal or non-modal.
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • Modal and non modal

    'Lo
    Is there a way to open in modal mode a non modal form ?
    ie : Modal window option set to NO
    or do I have to duplicate the form ........ ?
    thank's

    Hi,
    There is Window property 'Modal' (yes/no values) for that, set value to yes to the main window in your form.
    You can not set this at runtime................
    Regards,
    Hugo

  • Strange, annoying message box from .mac - and I'm not a member!

    I suddenly get a message box on my screen that requests my .mac username
    and password for .mac. I haven't been a .mac (or MobileMe) member for months.
    When I enter my old password and user name, another message says it is invalid. Very annoying, as this keeps popping up now suddenly for no reason.
    Any suggestions on how to get rid of this message, and why it is happening?
    Thanks for any help,
    Maria

    Hi, Bruce,
    Sorry about posting this in the wrong place. I couldn't find an appropriate forum. As for my "MobileMe control panel," I don't have one since I'm not a member. I don't do ANYTHING with iDisk because I am not using the service at all. The iDisk icon still lives on my desktop ever since I got this computer, and maybe I should trash it?
    The only other odd thing that happened that day was: I had an electrical outage in my house. The computer is surge-protected and works perfectly now. I don't know if that has anything to do with it.
    Thanks for any more suggestions!
    Maria

  • Show a popup /message box from backing bean

    Hey,
    in my backing bean i run a procedure, then i 'd like to show an alert message depending its output
    can i do that and if yes, then how?

    are you looking for this.
        public void soc5_valueChangeListener(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            BindingContainer bindings = getBindings();
            DCIteratorBinding dciter =
                (DCIteratorBinding)bindings.get("GlLvlAccounts1Iterator");
            Row row = dciter.getCurrentRow();
            if (row.getAttribute("GlalStatus") != "N") // your condition goes here.
                FacesMessage fm =
                    new FacesMessage("Field is protect against update");
                fm.setSeverity(FacesMessage.SEVERITY_ERROR);     //instead of SEVERITY_ERROR use SEVERITY_WARN
                FacesContext context = FacesContext.getCurrentInstance();
                context.addMessage(null, fm);
      //          soc5.resetValue(); 
        }

  • Convert popup screen from transparent to non-transparent.for Dashboard.

    To all,
    I have an issue with my xcelsius dashboard where a popup screen appears showing a list od sales force ID's but the popup listing is transparent.  When a user clicks this option, the popup appears over a graph.  What the user sees now is the list of sales force id's but also sees the graph behind the popup.  I tried using Dynamic Visibilty via xcelsius to get rid of the transparency but does not appear to be working.
    Can someone explain to me how to remove the transparency of the popup using xcelsius.
    Thanks,
    Joe

    hi joseph zimmerman,
    first of all,let us know what is the version of your xcelsius and which component you are using for displaying your list of values ?
    If you are using a label or any component to display values try to decrease the transparency to 0 % or fill the component with color using fill color option.
    regards,
    ravi.

  • [PC / Mac] Modal vs. Non-modal ScriptUI windows issue

    Hi,
    in Photoshop ScriptUI 'dialog' Windows are supported (they're modal windows), while 'palette' Window's behavior is peculiar (they're non-modal, and as long as there's something going on in the script, they keep displaying - otherwise they automatically close). Apparently, this is different in InDesign (for instance), where palettes can stay idle - at least this is what I've been told.
    I've found a couple of workarounds to work with palette Windows (my goal is to show them in order to let the user interact with either PS and the script's GUI - just like you'd do with regular panels and extensions - that is: to work with them as non-modal, idle palettes that mimic extension behavior), namely:
    // usual Window stuff
    win.show()
    while (isDone === false) { // isDone is set true in win.onClose() etc.
      app.refresh();
    or
    var s2t = function(stringID) {
      return app.stringIDToTypeID(stringID);
    var waitForRedraw = function() {
      var d;
      d = new ActionDescriptor();
      d.putEnumerated(s2t('state'), s2t('state'), s2t('redrawComplete'));
      return executeAction(s2t('wait'), d, DialogModes.NO);
    // Window stuff
    while (isDone === false) { // isDone is set true in win.onClose() etc.
      waitForRedraw()
    The problem is as follows:
    1. They both work on Mac, either CS5 and CS6
    2. app.refresh() seems to work on PC + CS5, but not PC + CS6
    3. waitForRedraw() fails on both PC + CS5 and PC + CS6.
    Mind you: When I wrote that the workarounds fails in CS5 and/or CS6 on PC, I mean that the 'palette', idle windows are modal and not non-modal as it is on Mac (which is my main coding platform).
    [EDIT] Further testing has shown that PC palettes are... halfway between modal and non-modal. For instance, you can click on menus, but not select a Tool; you can collapse or drag a panel, but not access its content. You can't absolutely click on the image - for instance I'm desperately trying to enable panning on PC palettes: no way, you can't have the Hand tool to click&drag the image. For some reason, a "soft-scrolling" is enabled (on my MacBookPro, two fingers scrolling in all directions in the trackpad - but how to mimic this behavior in a desktop PC with no trackpad I don't know). Weirdly enough, the trackpad's "soft-scrolling" works in all directions on PC + CS5 64bits only, either CS5 @32bits, CS6 @32/64bits goes up and down only, no left/right allowed - frankly, to deal with platform-dependent issues is one thing, to take into account 32/64bits too is... ehm...
    So, to sum up there are big differences in the ScriptUI behavior depending on how platform and PS version are combined:
    PC, 'palette' Window:
    CS5 + waitForRedraw() = modal
    CS5 + app.refresh() =  non-modal
    CS6 + (app.refresh() OR waitForRedraw()) = modal
    Mac, 'palette' Window:
    (CS5 OR CS6) + (app.refresh() OR waitForRedraw()) = non-modal
    Is there any... "working workaround" to make on PC CS6 a 'palette' ScriptUI Window to keep a non-modal, idling behavior? (the unasked question is: why is that palettes are behaving as non-modal in CS5 and not in CS6?! )
    Thanks in advance!
    Davide
    Message was edited by: DBarranca - added blue text, further testing comparing 32/64bit versions

    In the meantime, I've published two posts either describing in detail my issues:
    ScriptUI Window in Photoshop - palette vs. dialog
    and testing a workaround:
    ScriptUI - BridgeTalk persistent window examples
    Hopefully they may be useful to others as well.
    Regards
    Davide

  • Labview runs in front of dialog box from third party .exe - cannot simulate keyboard input

    Hello,
    I need to use an external software to set some parameters of an actuator. When I run this software from Labview (using System Exec.VI) it opens a screen while loading and then a dialog box. I need to select something from this dialog box (I am using a keyboard simulator). But just after the dialog box appears, Labview's window comes in front of it and then all the keyboard commands end up in the Labview's window instead of the external dialog box.
    Has anyone ever had a similar problem? I have been looking aroung and I could not find a solution. I cannot use the ALT+TAB or anything like that because dialog boxes do not appear there (something of "modal" and "non-modal" windows).
    I came up with a very unreliable solution by chance: If I hit (actually simulate) one key while the loading screen is on and before the dialog box appears, then the dialog box stays upfront. I think it is like telling the Labview "do not come to the front, I want to stay working in this other window". I do not trust this temporary solution at all but maybe it triggers an idea for a solution.
    Please see the attached image: After I hit the RUN button, my exe is called and the "loading" screen is displayed on front. Then, the dialog box is left behind the Labview interface.
    Any ideas are welcome!!
    Thanks,
    Laura

    Hi Wayne,
    I believe it is a good idea to use Portmon, I will give it a try hopefully today. 
    I have attached the two manuals that can be downloaded from the actuator's webpage (http://www.miraiintertech.com). Then I have attached the manual of the software (I cannot attached the software because they sell it); check on page 24: CTA-1EX, that's the software I am using. 
    Isn't it weird that there is little info about the dialog box thing? I would have thought that many people had this issue.
    Thanks for the help! 
    Laura
    Attachments:
    EE06426I.pdf ‏1094 KB
    TMBSCOM.pdf ‏319 KB
    TBVST-Manual2009.pdf ‏4482 KB

  • Teststand message box larger font for 95 years old

    Hi
    I am working with people > 90 yrs.
    the message pop up window occupied on top of the screen.
    How can I help them by changing the font and/or color of the message pop up.
    the real estate of the screen is there.
    message pop up dominates the screen, nothing else matters
    Please allow me to change the font for seniors with strained eyes.

    Hi trout00
    You have a couple different options for changing the font size of the message box. The first option is to change the native Windows message box settings. From Windows XP, right-click on your desktop and go to "Properties". Click on the "Appearance" tab in the Display Properties dialog box, and click on the "Advanced" button. In the Advanced Appearance dialog box, select "Message Box" from the "Item" drop-down menu. This will allow you to change the font of the message box text.
    Your other option is to use a custom step type. This KnowledgeBase has more information on this option, including a link to an example program.
    Russell G.
    NI Applications Engineering

  • Message box to confirm choice in Delivery document

    Hi Everyone,
    I have a User Defined Field on my documents with three choices, "A", "B" or "C". Based on the type of Delivery, the user selects the appropriate choice.
    However, this User Defined Field needs to be set to default to "A" for all the other documents.
    The behavior I would like to set is to have this User Defined Field set to default to "A" for absolutely all documents, but pops up a message box with the message "Please confirm your choice" with Ok and Cancel buttons. If Ok then carry on else modify choice in Delivery document and pop up the message until Ok is clicked.
    I can do this as an error message from the Transaction Notification, but the error message is totally user UNfriendly.
    Could someone advise on how I can setup this message box from the Transaction Notification? I just need the message box syntax if such a thing exists.
    Thanks!
    Phil

    HI Phil,
    You may try an easy work around:
    Add another UDF (Y/N) next to this UDF that user must be select Y value but default value is N.
    Train user that always check the Default A for the first UDF is acceptable or not.
    A Transaction Notification can be created to block any document that user had not changed the other UDF value.
    Thanks,
    Gordon

  • How to display non modal dialog box in a Dll call from TestStand implemented in visual c

    Dear Jason F.
    Applications Engineer
    National Instruments
    Hello
    I did the same way you told me
    the non modal dialog appeared and
    system hangs and
    giving the error message
    ""SeqEdit.exe-Application Error
    The instruction at �0x047fc5b0� referenced memory at �0x047fc5b0�. The memory could not be �read� ""
    please solve my problem
    and thanks for yours early response
    you can email me at
    [email protected]

    Hi Mkehret,
    Does your dialog have ActiveX controls on it? If your DLL dialog uses ActiveX controls and is not programmed in a certain manner it can hang because of a conflict in the threading model used by the TestStand Engine that is calling into your DLL and the model that is required by the MFC ActiveX Container. If you are using ActiveX controls in your dialog, you need to make special considerations for the threading model MFC dialogs that use ActiveX controls need in order to work properly. The example under \Examples\MFCActiveXContainerDlg illustrates how to appropriately handle this situation as well as explaining why it is necessary.
    Note: The above example displays the dialog as modal, but this is irrelevant to the problem I am describing.
    Again for information on properly creating a dialog class object and displaying it as non-modal refer to the information on MSDN that I referred you to in this post:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000E98A0000&USEARCHCONTEXT_CATEGORY_0=_8_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_8_&UCATEGORY_S=0
    If your dialog does not use ActiveX controls or after trying the programming method illustrated in the "MFCActiveXContainerDlg" example TestStand still hangs when calling your DLL, try calling your DLL from another environment just to make sure whether the DLL works at all. If the DLL works properly when called by another environment (e.g. VB, VC++, LabVIEW, or CVI), please submit a MINIMAL and REPRODUCEABLE example source project for your DLL for us to look at (please exclude all unnecessary code not required to reproduce the specific problem of displaying the dialog, and include all files necessary to build your dll with any
    specific instructions needed to do so).
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • System wide modal message box pop-up from applet

    Hi,
    I am having an applet which is listening on a soket and has to pop-up a message box with the received data as and when it receives it.
    I have used JOptionPane.showMessageDialog() for this.
    Now, the requirement is the MsgBox should come up even if the user is working on another console/window. Btw, I am running the applet on windows-XP/2000 with JRE1.4.2. I have used null as the first parameter to the showMessageDialog function above, but its not popping up if I am workin in some other window.
    Anybody having ideas on how to do it, please reply.
    Thanks
    Sujit

    Pop up a Frame or JFrame showing the message. You can make it passably modal by having the applet nap while it's visible:
    JFrame msg = new JFrame( "Got Data!" );
    ...// add message
    msg.setVisible( true );
    // may not pop up instantly:
    while ( !msg.isVisible() ) pause( 10 );
    while ( msg.isVisible() ) pause( 50 ); // wait for user to close
    private static void pause( int millis ) {
       try { Thread.sleep( millis ); }
       catch ( InterruptedException e ) {}
    }

  • You too can display non-modal dialog boxes: LrDialogs.presentFloatingDialog

    Undocumented function: LrDialogs.presentFloatingDialog
    ref: http://feedback.photoshop.com/photoshop_family/topics/sdk_lrdialogs_presentfloatingdialog_ and_showstringsdialog_undocumented
    This works for displaying non-modal dialog box:
    LrFunctionContext.postAsyncTaskWithContext( "test", function( context )
        local LrPhotoPictureView = import 'LrPhotoPictureView'
        local photo = catalog:getTargetPhoto()
        local pictureView = LrPhotoPictureView.makePhotoPictureView{
              width = 400, height = 400, photo = photo,
        local result = LrDialogs.presentFloatingDialog {
            title = "Thumbnail test",
            background_color = LrColor ("white"), -- required for (uncolored) static_text display, else inside of box is black and so can't see black text.
            contents = vf:column {
                vf:static_text {
                    title = photo:getFormattedMetadata ("fileName"),
                pictureView,
                --vf:edit_field { - no sirve, presumably keystrokes are not trapped by box.
                --    bind_to_object = prefs,
                --    value = app:getGlobalPrefBinding( 'tempForTest' ),
                vf:push_button {
                    title = "Click me",
                    action = function( button )
                        app:show{ info="Pushed" } -- glorified call to LrDialogs.presentModalDialog - works.
                    end,
        -- LrDialogs( app:getGlobalPref( 'tempForTest' ), result ) -- no sirve.
    end )
    Enjoy!
    Rob

    jarnoh wrote:
    there is no way to activate previously opened dialog?
    I assume that to be the case, and so it takes a moment to come up if there is much contents.
    jarnoh wrote:
    Doesn't seem to be really useful
    For me, it would be very useful, if it was reliable, but so far, not so good.
    UPDATE: Bug I thought was in non-modal dialog is also in modal dialog (scrolled_view must not be followed by another components in tabbed container - see comments in code below):
    LrFunctionContext.postAsyncTaskWithContext( "tt", function( context )
        local props = LrBinding.makePropertyTable( context )
        props.tv = 0
        local vi = {
            vf:tab_view {
                vf:tab_view_item {
                    identifier = "t1",
                    title = "T1",
                    vf:static_text {
                        title = "temp1"
                vf:tab_view_item {
                    identifier = "t2",
                    title = "T2",
                    vf:scrolled_view {
                        vf:slider {
                            bind_to_object = props,
                            value = LrView.bind( 'tv' ),        
                    -- with this here, Lr crashes after adjusting slider and then switching tabs - comment it out, and all is well:
                    --vf:static_text {
                    --    title = "this cant be here",
        LrDialogs.presentModalDialog {
            title = "test",
            contents = vf:view( vi )
    end )
    R
    Message was edited by: Rob Cole

  • Is it possible to call a subscreen/modal dialog box from the global class

    Hi,
    Is it possible to call a subscreen or modal dialog box from the global class ..
    or is there any option to display a pop screen or subscreen in order to get the values from user which as to be implemented
    in the global class..
    thanks and regards,
    Poornima.

    Hi Poornima,
    you should follow Uwe's suggestion. The only alternative I can imagine is dynamic document in a dialog container. But I don't know any standardized classes to make use with minimum effort. Have a look at report DD_ADD_FORM_INPUT. Here they put the input field in a container control in a screen; you can put the container control on a dialog container (CL_GUI_DIALOGBOX_CONTAINER).
    We will not get rid of any screen for the time being, but if your application is started from any screen, the DIALOGBOX_CONTAINER can start from there.
    Regards,
    Clemens

  • How to create non-modal dialog box?

    I'm trying to create a non-modal dialog box. The purpose is to show an alarm for the user but should leave the calling VI continuing to run. I have created such a thing -- the problem is that I can't figure out how to get the dialog box to go away! It stops running but the window just hangs around. See the attached VIs and image.
    Thanks in advance for your help,
    Chad
    Attachments:
    alarm_ui.png ‏11 KB
    alarm_ui-2.vi ‏11 KB
    message_to_user.vi ‏11 KB

    Ok, I've attached the files. Thanks for looking at this.
    Chad
    Attachments:
    alarm_ui-2.vi ‏11 KB
    message_to_user.vi ‏11 KB

  • JDialog Non Modal....Default button remains

    I've created a non modal JDialog
    By doing the following
    1. Creating an object of JOptionPane(message, JOptionPane.ERROR_MESSAGE)
    2. Adding the JOptionPane object to the ContentPane
    3. Creating a button
    4. Adding button("End Application") to ContentPane
    5. Adding listeners to window and button
    The result is a dialog
    Message
    ICON "OK" Button...............................NOT REQUIRED
    "End Application" Button
    I don't require the "OK" Button. Is there a way of removing this button. I need the dialog box to be modal so can't use showMessageDialog, rename "Ok" button to "End Application" etc.
    Should I be taking a different approach ie Not adding JOptionPane to JDialog??
    If the above isn't possible. Do you know where I can find the default error gif on error dialog boxes?
    Kind regards,
    Jean

    Get the error icon with UIMananger.getIcon("OptionPane.errorIcon"). It might throw exceptions while painting because it's expecting to be painting in a JOptionPane. Just catch and ignore the exceptions and it will paint alright.

Maybe you are looking for

  • Airplay no longer working on iTunes 11.1.3 Windows 8.1

    I have a PC connected by ethernet cable to a router, which is sending a wireless IPv4 signal to an airport express on my home network, which is in turn connected to some speakers. I also have an Apple TV connected to the same network. Airplay worked

  • SYM Acc for /3E1,/3E2,/3E2,/3F1,/3F2,/3F3,/3F3 Etc.

    Hi, CAn anybody plz guide me about these SYM Acc's & their assignments. Whether it is correct or Work.Please guide. /3E1 Ee ESI contribution 1 - 5008 F EE ESI Contri /3E2 Er ESI contribution 1 + 5009 C ER ESI Contri 1 /3E2 Er ESI contribution 2 - 500

  • Error in FTP sender -Error during STOR/APPE

    Hi, I am working on IDOC- File. I am getting the following error in Communication channel, Error occurred while connecting to the FTP server "server name": java.io.IOException: Error during STOR/APPE epilogue: com.sap.aii.adapter.file.ftp.FTPEx: 550

  • I dont know whats going on but...

    Ok so i added this album i was going to buy next month and then today i recieved an email from iTunes and its a recipt saying that i bought the album today but its not in my library it is still in my shopping cart. What do I do??

  • Where do I find more Music Scores for Premiere Elements

    Hi everybody Does somebody know if it's possible to download (for free or to buy) more Music Scores for Premiere Elements 12? Thanks for answers.