DLL Modal window in the background

Hi all!
I have a Borland C++ made DLL, which creates a modal window. The DLL function hasn't got any teststand specific parameters, since it is designed for general use.
My problem is the following: I have a sequence, where I put i.e. a built-in message popup (modal) before the DLL function call. In this case my modal window is in the background, and the focus is on the teststand window.
I've read the application notes dealing about this problem, but the solution written down there is via parameter passing the engine object (in my case this couldn't be done, because my DLL function is not just for teststand).
Could anyone please help me in the problem?
Thanks
Dave

Dave,
Could you add the SeqContext parameter, but ignore it if it's zero? Then non-TestStand uses could just pass in a zero and it would ignore the TestStand specific code that makes the dialog modal to the TestStand execution it was called from. Another way might be to create two versions of the function, one for TestStand that includes the SeqContext, and one for non-TestStand use, and that one statically sets the SeqContext to zero and ignores the TestStand modal functions. This method is similar to the many of the 'FunctionName' and 'FunctionNameEx' functions that allow for different uses of the same functionality (although all the examples I tried looking for where examples of obsolete (deprecated) functions).
I can't think of any other way you could do this without adding parameters.
-Jack

Similar Messages

  • Dwm: some questions (e.g. bring floating window to the background)

    Hi,
    currently I'm diving into the world of tiling window managers (or at least I try to).
    dwm looks nice and fast (with awesome I have the feeling that changing the master window takes much time/feels slow)
    One thing I couldn't find out is how to bring a floating window to the background (or a tiled window to the foreground). Floating windows always stay on top so that they prevent mo from seeing every part of a tiled window.
    Thanks in advance for your help
    Barghest
    Last edited by Barghest (2009-04-27 17:00:04)

    Ok, I tried the raiselower patch but it seem it's not working. I created the file raiselower.c
    void
    raisewindow (const char *arg) {
    if (!sel)
    return;
    if(!(sel->isfloating || lt->isfloating))
    return;
    if (!arg) {
    XRaiseWindow(dpy, sel->win);
    } else {
    if (lt->isfloating)
    XLowerWindow(dpy, sel->win);
    else {
    XWindowChanges wc;
    wc.stack_mode = Above;
    wc.sibling = barwin;
    XConfigureWindow(dpy, sel->win, CWSibling | CWStackMode, &wc);
    and added the line
    #include "raiselower.c"
    to my config.h but when I makepkg I receive the following message:
    In file included from config.h:39,
    from dwm.c:242:
    raiselower.c: In Funktion »raisewindow«:
    raiselower.c:5: Fehler: Anfrage nach Element »isfloating« in etwas, was keine Struktur oder Variante ist
    raiselower.c:10: Fehler: Anfrage nach Element »isfloating« in etwas, was keine Struktur oder Variante ist
    I try to translate : Request after element "isfloating" in something, that isn't a structure(?) or a variable/attribute
    /edit: Ok, I also tried pertag but I think it doesn't work with the latest version of dwm. I can only switch the layout of a tag once. When I switch to another tag and back again, changing the layout doesn't work anymore (on no tag).
    Last edited by Barghest (2009-04-27 19:29:53)

  • How to run a safari window in the background at all times?

    Ok, so you are probably wondering why I want to do this. Allow me to explain. The website twitch.tv is a streaming service for gamers, and there is a browser plugin specifically for the site called betterttv.
    One feature of this plugin is that you will get a notification whenever someone you are following starts broadcasting, right in your notification center. But because its a browser plugin, and is specifically for this one website, it requires a safari window to be open with the website twitch.tv in order to push the notifications.
    So my question is... how can I make a browser window stay open at all times and run in the background with this website open so that I get my notifications? I had the idea that I could retain the window even when I "quit" safari, because I can run a seperate instance of it in the form of Webkit Nightly which isnt affected by safari not being running.
    But I am still oblivious as to how I would set up a window like this, and it has to start at login in addition to being running throughout the day. (I shut my Mac off at night.) Any amount of help would be appricated

    I'm well aware of how to minimize thanks, and it *is* possible to have a Safari window open if you quit it, because you can run it as a separate instance by using WebKit Nightly...
    I am just looking for the best way to set it up so that a WebKit Nightly window will open upon startup, navigate to that webpage, and hide itself. Preferably in the background. This could be done using a .command file or a startup script in automator. My question is.. What is the best direction to take?

  • Can i run windows in the background?

    hi there
    i have recently purchased a macbook pro 13" and i know that it is possible to split the hard disk to be able to install windows OS, but i was wondering if anyone knows if it is possible to leave windows running in the background and switch back to OSX?
    the reason i want to try and do this is because i have a USB device for my fish tank that monitors several peramitors and uploads them to an online account so i can see what is going on in my fish tank, however it needs a local piece of software for it to be able to do this and at the minute this is only available for windows hence my question, im hoping i can get around it by spliting my mac in this way but it needs to be able to run in the background as a parralel system.
    any help would be great.

    Hey,
    You can buy Virtual Machine apps such as VMware Fusion and Parallels Desktop for Mac and these will let you run Windows as a Virtual Machine (on top of Mac OS X). You can then run Windows programs as well as Mac ones.
    If you need any more help, please ask
    Connor

  • Vertical tearing due to window in the background

    I noticed this today. When there's a scrolling terminal window behind Firefox, there is some tearing on the vertical edge of the window that's in the background.
    I'm running KDE 4.13 (just updated today), Nvidia 337.12 from the official repositories on a GTX580.
    Here's a small movie that demonstrates it: http://youtu.be/hLT5nrCog_g
    Has anyone seen this or know whether there's a fix for it?
    Last edited by mouseman (2014-04-19 16:31:07)

    My son was playing Guild Wars 2 in the back . I wanted to delete audio but I didn't have the tools available.
    Anyway, to answer your question its KDE 4.13 (just updated), latest Nvidia drivers from the official repositories on a GTX580.
    The problem doesn't exist on my laptop, intel video running OpenSuse/KDE.

  • Clicking on an application window in the background does not bring to front

    I keep several applications open at the same time and organize them with Spaces. Some applications share all Spaces like Mail, Safari, Messenger.
    The problem is when I have mail as the front application and then click on Safari's window, Safari doesn't come to the front. Mail still is in front.
    This happens alot and with several applications.
    In order to bring the app to front - I need to click on the apps icon in the dock.
    Is there a patch or fix for Leopard.

    Even worse, clicking on the icon in the dock isn't always helpful. Sometimes there is no way of bringing the document in front. I have to force quit the program, very annoying.
    The strange thing is, I can still open documents. I see them appear when I right-click on the icon in the dock. So the program isn't realy stuck. The mac is just unable to bring it to front.
    This happens a lot with InDesign and a co-worker of mine had the same problem in Exell.

  • An applescript to change the background color for all finder windows

    I'll start off by telling you what I am trying to achieve, then show you what I've tried.
    I have a macbook with several HDD's attached. what I want is for each of those hdd to have a specific finder window background color. so no matter where I am in that hdd the background color will always be the same. so for instance if I set the background color of hdd 2 to blue then as long as I see a blue background I know that I'm within hdd 2.
    I've tried setting up an applescript to do this but can only get it to change the open finder window, and none of the subfolders have their backgrounds changed.
    here is what I have so far:
    tell application "Finder"
    tell the icon view options of the front Finder window
    set the background color to {52942, 54484, 31097}
    end tell
    end tell
    so how do I get this to apply to all subfolders without opening each one and running the script.
    thanks in advance for any and all help with this

    According to this article:
    http://docs.info.apple.com/article.html?path=AppleScript/2.1/en/as2039.html
    it seems that the various options can only be set while the window is open and in icon view.
    Rather than manually opening the window of every single folder on the hard drive, it should be possible to write a script to open every folder in sequence, make sure it is in icon view, change its background, then close its window. I have never been any good at the "actions within actions" procedure needed for folders within folders, so maybe someone else with the necessary knowledge and experience might be able to assist in this regard. Such a script would probably take a few minutes to complete while it ran through "every folder of every folder", but it sure would be quicker to have the process automated than to do it by hand - computers are really good at repetitive tasks (as long as the instructions are accurate, of course!).
    On the other hand, you might like to try the following:
    open a few windows in icon view, choose Show View Options in the View menu (I'm in System 10.4), click the radio button All Windows, click the Color radio button under Background, then choose your color. It might achieve what you are trying to do.

  • Problem refreshing the parent page when closing a modal window.

    I have page that opens a modal window from a report link column. In the modal window I want to be able to make my changes and press an Apply button so that the modal window is closed and the parent page is refreshed to show the modified details in the report. In Firefox all works well but in IE I get the error message ‘Window.opener.location is null or not an object’ .
    When I comment out window.opener.location.href=window.opener.location.href; the modal window closes without error but I want to refresh the parent page with changes made in the modal window.
    I’m afraid my java script is very limited (the code is based on other peoples examples.)
    Parent Page I call this function from a report link column to display a modal window. Sets the hidden SAVE_STATUS field in destination page to ‘N’
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {
    window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px"); }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    Destination page (modal window)
    HTML Header.
    The function closeWindow should refresh the parent page and close the modal window.
    <base target=_self>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function closeWindow() {
    if ( document.getElementById("SAVE_STATUS").value == 'Y' )
    window.opener.location.href=window.opener.location.href;
    window.close();
    //-->
    </script>
    Html Body attribute.
    onLoad="closeWindow();"
    P_UPDATE_DATE process called from the Apply changes button. Sets the SAVE_STATUS flag to ‘Y’ for the onload in the html body.
    UPDATE event
    SET event_date = :P5001_EVENT_DATE
    WHERE contract_reference = :P330_EVD_CONTRACT
    AND event_number = :P330_EVD_EVENT_NUMBER;
    :SAVE_STATUS := 'Y';
    Thanks in advance, I will have a look when back in the office on Monday.
    Cheers Pete

    Hi Chris,
    Thanks for your help. I think I've sorted it using your first suggestion doing a refresh in the parent page, I just didn't know how at the time.
    What I've got in the parent window after the call to the modal window is the reload window.location.reload(); and in the modal window I close it using window.close(); The down side being the refresh happens if I use my 'Apply changes' or 'Cancel' button but I can live with that for now.
    It seems to work in IE and firefox but as I say most of what I'm doing is cobbling together using other peoples code without really understanding exactly what it does. Anyway thanks for your help, sound like I should look into JQUERY when I have time.
    Thanks Pete
    Parent window call to modal
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {  window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px");                                          }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    window.location.reload();
    Modal Window Close.
    window.close();

  • JRE 1.5.0_13  problem with Modal Window

    We have stand alone browser based application built on HTML, Javascript, and Java (non-GUI applet). We were running the Sun JRE 1.4.2_06, but have recently upgarded to 1.5.0_13. As soon as we upgraded to 1.5, started experiencing the below problem -
    The HTML screen displays a modal windows which makes a Java call to the MQClient software through Applet (via OBJECT Tag) to communicate with mainframe. The MQClient Java code seems to be blocked until the user clicks on any other area of the screen to shift the focus from our modal dialog to any other window (either clicking on the task bar, clicking on another window in the background, or hitting Alt/F10 key).
    The same code runs fine with JRE 1.4.2_06.
    Based on a further analysis+ it seems like there is an issue, when a modal html window makes a java call for creating a socket connection (other then localhost). In this scenario, socket is never created unless you drag a modal window or move a focus away from a modal window.
    Above problem seems to be resolved with JRE 1.6.0_10.
    Edited by: Ashwani_Saxena123 on Oct 31, 2008 5:42 AM

    Ashwani_Saxena123 wrote:
    Ours is a stand-alone browser based (IE 6.0) application, which communicates between JavaScript to Java using Applet (with Object Id tag).Why? What for?
    .. All the Java class files are bundled in a zip file under different packages and Zip file path is provided at run time when Application starts. It is safest to distribute classes and application resources as Jar files. One reason is that Sun decided to not bother even checking Zips for digital signatures, so no trusted app. can afford to try loading Zip files.
    ..The path of Zip file is at C:\EALife\Program ...Whoa up a second there!
    If this applet is only ever being loaded on the same machine as the codebase, why is it an applet at all? It would make more sense to distribute/install an application.
    If this applet is being loaded by PCs at remote locations, then the will probably not have a C:\EALife\Program path at all (especially is they use Ubuntu, like here).
    ..and home directory path is C:\EAFramework\Program\Screens. We are putting all paths in a single variable (APP_CLASS_PATH) and using that variable as a parameter value in Object Id tag for creating an Applet. Below is the code snnipet for Object Id tag -Sun has championed a script to use for applet versioning and writing the applet element. I suggest you use it instead, it is known as 'deployJava.js' - see top hit at Google for details.

  • Calling Modal window in a looping program

    Hi,
    I am working in Oracle Forms 6.0.
    I want to run a program unit in forms where the program has to call the modal window for the user input and continue back in a loop.
    eg.
    PROCEDURE PR_CALL_DIALOG IS
    v number;
    BEGIN
         --:BLOCK5.ITEM_MAIN := 0;
         :BLOCK5.ITEM_DIALOG := 0;
    FOR m in 1..4
    LOOP
    SHOW_WINDOW('WIN_DIALOG');
    GO_ITEM('BLOCK5.ITEM_DIALOG');
    :BLOCK5.ITEM_DIALOG := m;
    v := :BLOCK5.ITEM_DIALOG + v;
    END LOOP;
    :BLOCK5.ITEM_MAIN := :BLOCK5.ITEM_MAIN +v;
    END;
    The program is for making my point more clear.
    Can anybody help me?

    Hi.
    You must call that job within an RFC-enabled Function Module in background task.
    For example,
    call FUNCTION 'ZFM'
      IN BACKGROUND TASK
      EXPORTING
        i_data = i_Data.
    when the calling program COMMITs, then the ZFMs that have been called with the code above will start running in parallel.
    Please, read also the repsective HELP on calling Function Modules in BACKGROUND TASK.
    Reward points please if it helps.
    Regards,
    George

  • How do you disable OS X (when you focus on a window) from auto-focusing on windows from the same (or similar) program on another screen

    Hi,
    I have what is quickly becoming a major nuisance, I hope someone here knows more than me (hopefully about to change this behaviour..?).
    Whenever I click on e.g. excel on one screen, the excel windows in the background on my other screen is automatically brough to the front, hiding the window I actually want to be able to see. And if I have no excel windows on that screen, it will automatically bring e.g. MS word to the front instead.
    Does anyone know of a way to disable this extremely annoying behaviour? It seems silly to have to minimize every single window (yes, I have a lot open at any given time, and need to transfer data between several different programs) just to be able to look at windows from two different programs at the same time.
    Cheers,
    W

    this is NOT how apps behave on a Windows PC. There, the different windows of any app focus independently.
    Mmm, no, not really. All Windows apps run inside an application frame. Nothing for that app can exist outside the frame. Once you are in the frame of a given app, all of (example) Excel's open documents are also stuck inside the frame. Along with any palettes or other objects for that app. You can take it off full screen display like below, but each app, and everything associated with it is in its own frame.
    I mention this to show that you can do the same thing on your Mac. Where you said:
    I'm clicking/highlighting to the foreground (this also applies if I use alt+tab in Windows PC; you cycle through every single excel you have open,
    The equivalent on the Mac is to press Command+` (same key as the tilde ~, which should be directly above the Tab key). So it's Command+Tab to switch between apps, and Command+` to rotate between open documents within an app.
    So anyway, in the same manner you would arrange your Windows apps as shown above so you can see the contents of both apps, you simply arrange your Mac apps' documents the same way. Adjust the size of each open document as necessary so you can see the relevant information.
    Just like if a person were going from Mac to Windows, it's "different". Folders, files and apps? All the same concept. Saving and deleting files? Pretty much the same. But if you're very used to one, the other seems odd until the need to think about "simple" steps that aren't performed quite the same way as the OS you're used to becomes habit, and it no longer seems odd anymore.

  • Non Modal Window Popup BSP View

    Hi,
    I have a requirement to launch a pop up window which will allow the user to access the original screen from which the pop up was launched (i.e. a non modal window). The pop up window contains a calculator with the intention being that the user would be able to view and copy data displayed on the original screen into the fields of the calculator.
    I have created the calculator as a form view within a BSP component. All of the fields on the form view have been configured using the configuration tab. I have successfully created a modal pop up using the following on the buttons click event:
    comp_controller->window_manager->create_popup( ).
    However, this does not meet my requirement because the form view is displayed in a modal window. I have also attempted to load the pop up using javascript however the view does not initialise correctly when it is loaded which causes a null reference error.
    Can anyone please provide any advice or assistance related to creating a non-modal window for a configured form view within a BSP component? Many of the examples I have found online are related to WebDynPro applications and html pages with flow logic rather than configured views with a controller class.
    Thank you.

    Hi,
    I have a requirement to launch a pop up window which will allow the user to access the original screen from which the pop up was launched (i.e. a non modal window). The pop up window contains a calculator with the intention being that the user would be able to view and copy data displayed on the original screen into the fields of the calculator.
    I have created the calculator as a form view within a BSP component. All of the fields on the form view have been configured using the configuration tab. I have successfully created a modal pop up using the following on the buttons click event:
    comp_controller->window_manager->create_popup( ).
    However, this does not meet my requirement because the form view is displayed in a modal window. I have also attempted to load the pop up using javascript however the view does not initialise correctly when it is loaded which causes a null reference error.
    Can anyone please provide any advice or assistance related to creating a non-modal window for a configured form view within a BSP component? Many of the examples I have found online are related to WebDynPro applications and html pages with flow logic rather than configured views with a controller class.
    Thank you.

  • Adobe Form in Modal Window

    Hi all,
    I am displaying an Adobe Form in a pop up modal window. The display type of the Adobe form is native. However when the popup window shows up, the adobe form is not shown properly.
    There is no problem if i set the displayType of the adobe form on the view as ActiveX. However there is a constraint that the displayType should be native.
    Has anyone encountered such problem before?

    Only in popups, in SP19 forms were displayed in popups in firefox and IE, in SP21 only in IE. I know about this note, but in SP19 everything was working OK, so I think on SP21 should this popup functionality remain :). Or what is the reason to remove this functionality for firefox in SP21?
    Many thanks for reply

  • When I open a pdf file, Firefox opens a blank window, then the file opens in a Adobe Reader window. How can I stop the blank window?

    Whether I am using Firefox 3.6.8 or Thunderbird 3.0.6, clicking on a pdf file opens a new window. After a few seconds the pdf file opens in a separate Adobe Reader window. When I am done with that and close it, I still have to go back and close out the blank window. Got to be a configuration issue some place. I have tried several settings under Tools/Options, but haven't found the right setting yet. Any suggestions?

    Thank you very much for the reply. I followed your instructions. This fixed half of the problem. Links to pdf files that are on web pages now come up with a box that asks if I want to open or save the file, without a blank browser window in the background. That is great.
    When I tested the fix with pdf file links in email, the problem still exists. I tested links in Outlook Express, Yahoo mail, and Gmail. Any time I click on a pdf link in an email, a blank Firefox window opens and then I get the small window that asks me if I want to open or save the file. Sounds like this is a configuration issue, not a technical problem. Thanks for your help.

  • How to use applescript to click a button in a modal window

    When I try to close a Safari page, sometimes a popup (a modal window?) shows up asking if I want to "Stay on Page" or "Leave Page". I'm trying to write an applescript to look for such a window and click "Leave Page". I have trouble referencing the popup. Is it treated as a window in Safari? I asked for a count of number of windows and applescript doesn't seem to include this modal window in the count. I tried something like:
    tell application "Safari"
        set theWindows to every window
            repeat with theCurrentWindow in theWindows
                  if(modal of theCurrentWindow) then
                    -- appropriate action
                  end if
            end repeat
        end tell
    end repeat
    it looks like   "modal of theCurrentWindow" always returns false. So I'm guessing "theWindows" doesn't include the popup. How do I reference the popup so that I can perform some action on it?

    It's a sheet, not a "modal". This script should tell you if it's up or not:
    tell application "System Events"
      tell process "Safari"
      tell window 1
      if exists sheet 1 then
           display dialog "Sheet is Up"
      else
                display dialog "No sheet"
    end if
    end tell
    end tell
    end tell

Maybe you are looking for

  • Win 2012 Bit locker Infra and MBAM 2.5

    I am trying to implement a Bit locker infra that can store keys to AD. Long back I have done the same in a Win 2003 AD, by extending schema, running scripts, configure group policies etc. No I am trying to do in a Win 2012 R2 AD infra. Most of my cli

  • URGENT------Two Messages Fired Simultaneously get struck in Queue

    Hi, I am using WebLogic 8.1. In my application, I am using Message Driven Bean which listens to a Queue and when a message is found, it calls a web-service client to do further processing. There are two problems I am facing:- 1.) When there is any er

  • Brand new MacBook - DVD drive loads with clunk, clunk, clunk!

    Hi all, I have set up my new MacBook - very happy so far. This morning I went to load some software via the DVD drive and was shocked at the noise that was made whilst the DVD was loading into the slot and settling - at least three unusually loud clu

  • The videos imported from iPad to Windows PC are reversed. How to fix it?

    Hi, When i import the videos and photos from iPad to Windows PC using USB cable, the photos and videos are reversed. well i can reverse the photos from Windows photo editor, i am not able to see the proper videos. Its upside down. How do i fix it ? W

  • Is anyone still having the AME crash issue?

    I've been working very efficiently until the last day where Media Encoder just stopped finishing the job.  It will get about 50% of the way through a simple .mov to mp4 export and then freeze.  I am using a new Imac with an I7 and 20+ gigs of RAM. I