Zoom window and minimizing the quirks

I just discovered this message that solves a problem that concerns me for a long time

More precisely: some applications of the mine should run maximized so I use SetPanelAttribute (hparent, ATTR_WINDOW_ZOOM, VAL_MAXIMIZE); to show directly the main table in full screen. According to the help of the function, the definition of the ATTR_WINDOW_ZOOM attribute still makes visible the Panel so I is not required (and do not in fact) DisplayPanel to display the window. So far so good.

A problem arises when the user tries to minimize the main window, as in certain conditions, it is not able to restore the window more, leaving kill the program as the only solution to control again. The program, however, always runs in the background even if reduced.

This only happens if the window is reduced by using the 'Show desktop' button in the taskbar: by using the window minimize button allows you to restore all the time.

Just to add a little salt if the window is minimized to reduce at least once with the help of the button, the following uses the button show desktop does not prevent restore normally!

Now, according to Yves post, if I first call DisplayPanel, then SetPanelAttribute to maximise this problem do not appear more. The first tests I did seem to comply with this statement.

This is the expected behavior? Can someone explain why it's happening?

If it's the expected behavior, in my opinion, at least a note should be added to aid stating that risk.

Yes, that is what I had in mind. The idea was to try to avoid, as much as possible, showing the Panel between the DisplayPanel and call that maximizes then it (to avoid foil) and do this without permanently change the original boundaries, not optimized in terms of it, so that when the user restores his more later, it restores the correct position.

Something like this:

Placement of WINDOWPLACEMENT;
intptr_t windowHandle;
Rect oldPos.

errChk (panelHandle = LoadPanel (0, "Application.uir of User Interface", PANEL));

bounds of array not optimized in terms of save
GetPanelAttribute (panelHandle, ATTR_TOP, & oldPos.top);
GetPanelAttribute (panelHandle, ATTR_LEFT, & oldPos.left);
GetPanelAttribute (panelHandle, ATTR_WIDTH, & oldPos.width);
GetPanelAttribute (panelHandle, ATTR_HEIGHT, & oldPos.height);

Override not optimized in terms of limits in order to try to avoid to display the front panel it is maximized.
If, as a result, he eventually be enlarged to one monitor other than that desired,
You may need to experiment with a different top/left position (or, Alternatively, not even trying to change the)

Haut/Gauche and we hope that change the height/width will suffice)
SetPanelPos (panelHandle,-10000,-10000);
SetPanelSize (panelHandle, 1, 1);

Panel before optimisation in order to bypass the CVI display bug
errChk (DisplayPanel (panelHandle));
SetPanelAttribute (panelHandle, ATTR_WINDOW_ZOOM, VAL_MAXIMIZE);

We cannot use CVI function to restore the limits not optimized in terms, since it would have the side effect of
-maximize the Panel. Therefore, we will use SetWindowPlacement to accomplish the same thing.
Get the current location of the window and update its rcNormalPosition only.
GetPanelAttribute (panelHandle, ATTR_SYSTEM_WINDOW_HANDLE, (intptr_t *) & windowHandle);
placement. Length = sizeof (WINDOWPLACEMENT);

GetWindowPlacement (windowHandle (HWND), & placement);
placement.rcNormalPosition.top = oldPos.top;
placement.rcNormalPosition.left = oldPos.left;
placement.rcNormalPosition.right = placement.rcNormalPosition.left + oldPos.width;
placement.rcNormalPosition.bottom = placement.rcNormalPosition.top + oldPos.height;

SetWindowPlacement (windowHandle (HWND), & placement);

Tags: NI Software

Similar Questions

  • Is to reinstall windows and reformatting the same windows? How can I reformat windows? TQ.

    Is to reinstall windows and reformatting the same windows? How can I reformat windows? TQ.

    There are essentially two different methods to "install Windows":

    1. a clean install (which is basically all wipes) imply the shape of the disk (or partition).

    2. a repair install (which is supposed to leave all your programs and data intact) does not imply the formatting.

    Here are some useful guides:

    http://michaelstevenstech.com/cleanxpinstall.html

    http://michaelstevenstech.com/XPrepairinstall.htm

  • I reciently reinstalled windows and now the fence, restore down and minimize buttons are not mixed together.

    I reciently reinstalled windows and now the fence, restore down and minimize buttons are not mixed together. they are indervidual buttons. Have all the updates and service pack installed.

    I saw the screen shot, I think that Aero is disabled, or the Desktop Window Manager Session Manager service is disabled or stopped. Try to run the troubleshooter 'display the Aero effects. " And when firstly, you had the drivers that do NOT support Aero and then updates, Windows does NOT automatically update the settings. You must recaulculate the computer for Aero Performance Index is enabled.

    Or you can see more help on this page, which contains explanations of the Aero and a link to a Web page for downlading an application which solves the problems.

    Hope that helps!

    Marko Calasan.

  • I want to restore switch between windows and display the desktop icon

    a few days before these two icons was actually on the task bar and now I have deleted how restore it back
    (switch between windows and display the desktop icon)

    Hello

    Copy the new:

    C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

    To your user account to:

    C:\Users\launch of \AppData\Roaming\Microsoft\Internet Explorer\Quick

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    3177349 wrote:

    Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    It depends only on the BONE of the application server.

    If your OS development and OS is different, you have to compile the fmb in the server again.

    Hamid

  • Since the update of my pc based system with 10 windows and install the last Prime Minister CC when I drag a clip on the timeline audio does not come with it. I can hear audio playback in the preview window of small file so the audio is there, but it's not

    Since the update of my pc based system with 10 windows and install the last Prime Minister CC when I drag a clip on the timeline audio does not come with it. I can hear audio playback in the preview window of small file so the audio is there, but it does not appear or play on the timeline. I can drag an audio file of Ms on the timeline, but I need audio from my original file to synchronize my audio file recorded independently - used to be no problem... any ideas what I can not edit now?

    Hi Neil,

    Drag / drop may not work if you don't have any enabl; e source patch or did not target the track for the same thing.

    https://helpx.Adobe.com/Premiere-Pro/using/source-patching-track-targetting.html

    Vinay

  • When my Captivate project is published on my LMS, course opens a new window.  You are able to copy the URL of this window and access the course without logging into the LMS.  How can I avoid this?

    When my Captivate project is published on my LMS, course opens a new window.  You are able to copy the URL of this window and access the course without logging into the LMS.  How can I avoid this?

    Return to your LMS administrator and ask them why they have not put in place more firmly. The scenario you mention should not occur if the LMS is well attached.

    Some LMS have the contents of the course are in a folder outside the web space so that users can access the course URL directly.  For example, Moodle t - it this way and then shot the course content in a temporary folder when the learner clicks on the link ask a module.  No matter how your LMS is supposed to do, it is currently not configured correctly.

  • Navigate in the photo when zoomed in and using the mask tool

    Hey guys, I tried to figure out how to move photo when I'm zooming in and using the mask and I can not understand. It's a pain to have clear the Brush tool can pan around, especially when I am trying to add a mask. If someone could help, it would be great. Thank you!

    Space bar.

  • clock appears, zoom in and out, the mouse not responding pluse

    Randomly, the clock will be displayed in the lower right of the screen, the scren performs a zoom in and zoom out and the mouse goes haywire.  What is going on?

    Have you tried to test with another mouse that your current mouse is perhaps faulty?

    On the keyboard if you press the Ctrl Key and spin the mouse wheel at the same time this causes the screen to zoom in and out in some windows, such as Internet Explorer or on the desktop (if an icon is highlighted or selected).

    As you mention that the fault is random it will be difficult to solve the problems in the usual way.  See if you can detect some rhyme or reason to explain why it is being implemented.

  • When I have 4 or 5 tabs open, by selecting one of them often force this tab to open in a new window and close the original window

    FF 32.0.1. Move between the tabs that are already open, clicking on which I opened before forced to close and open in a new window, which is a real pain. It seems to happen when I have 4 or 5 tabs open, rather than 2 or 3.

    Only, this happened last week, once reinstalled a clean Windows.

    I searched and found a lot of people have problems with the new windows that open when they want just a new tab, but this seems to be on the opening of the fresh rather than return to already open tabs, so I can't find the same problem I describe.

    This can happen if you drag a tab slightly downwards in the browser window by clicking.

    Firefox has a feature called tabs
    You can detach a tab in the current window and open in a new window by dragging a tab in the browser window.
    You can also do this via the context menu of a tab: switch to the new window
    You can drag the tab to the tab bar in the original window to cancel this detachment.

  • Firefox opens a new window and moves the active tab to it. How can I stop this?

    Has got several tabs open. Firefox has suddenly closed the tab I'm trying (this seems to happen when I'm scrolling) and puts in a new window, move the focus to a previously inactive tab. What a swell feature! How can I get rid of him?

    Firefox 3.5/6 versions have a feature called tabs.

    You can detach a tab in the current window and open in a new window by dragging a tab in the browser window.

    You can drag the tab to the tab bar in the original window to cancel this detachment.

    bug489729 (Disable detach and tear off tab): https://addons.mozilla.org/firefox/addon/12276

  • I submitted a problem (the No. URL window) and in the response email, I clicked on the link that says "no, this does not solve my problem" but when I tried to put the actions that I took (which were unsuccessful) I get error "Must choose the subject line"

    I did the "Restore Default Toolbar" without success. I've updated my Java without success. I uninstalled HP Gizmo web printing which the Add box it says incompatible with Firefox 3.6.6 - and I still have no back arrow or window URL. I guess I'll have to go to the Chrome browser because I refuse to use MS Explorer. I enjoyed Firefox while IT WORKED, but if there is no window to the URL, it is useless.

    This has happened

    Each time Firefox opened

    today

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152 .NET CLR 3.5.30729;. InfoPath.2; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)

    The URL/address bar and previous/next buttons are both on the Navigation toolbar; See below.

    Don't see the menu bar not (File, Edit, View, history, Favorites, tools, help)?
    Turn on/off the menu bar is a new feature in version 3.6.
    (~ ~ Red: Linux and OSX see ~ ~: what happened to the file, edit and view menus? )
    Windows Method 1. Press and hold the key and press the letters of the following in this exact order: V T M
    Windows method 2 Press and release the button. The Menu bar is displayed; then choose ~ ~ red: V ~ ~ iew > ~ ~ red: T ~ ~ oolbars and click on ~ ~ Red: M ~ ~ enu Bar.
    The menu bar should now be displayed permanently, unless you turn it off again using view > toolbars. Check = not displayed, NO check mark is not displayed.
    See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    Navigation, bar toolbar bookmarks and other toolbars under view > toolbars. By clicking on one of them will place a check mark (display) or remove the check mark (not shown).
    To display the status bar, view, and then click status bar to place a check mark (display) or remove the check mark (not shown).
    Mode full screen
    http://KB.mozillazine.org/netbooks#Full_screen

    See also:
    Back and front toolbar buttons or others are missing
    Customize controls, buttons, and Firefox toolbars
    How to customize the toolbar

  • AutoScale after Zoom Pan and change the axis interval

    I'm trying to connect the axes x many ScatterGraphs and I was wondering how to restore the graphics to their original point of view drawn once a user has made a lot of zoom, pan and axis range chages.  Basically how do you perform an autoscale on one axis without having to cancel each operation individually.  In the old graphic activex controls, there is an AutoScaleNow function that has done this.

    Also, how to cancel a change of range that has been achieved through code?  If interactively modify you a range, it seems the SHIFT-RIGHT CLICK to cancel the operation.  If the event of range change is captured and applied to the other charts, it can not be canceled.

    Use ScatterGraph.ResetZoomPan () to cancel all zoom, pan and change of range in a scattergraph operations. This will cancel the range changes made in the UI, but not changes made through code. To changes in the code, you will have to manage undo operations. You can store the original lines and go back to those who, when necessary. Or you can force a re-AutoScale by changing the mode of scale axis as shown below:

    scatterGraph1.XAxes [0]. Mode = NationalInstruments.UI.AxisMode.Fixed;
    scatterGraph1.XAxes [0]. Mode = NationalInstruments.UI.AxisMode.AutoScaleLoose;
    scatterGraph1.YAxes [0]. Mode = NationalInstruments.UI.AxisMode.Fixed;
    scatterGraph1.YAxes [0]. Mode = NationalInstruments.UI.AxisMode.AutoScaleLoose;

  • How to: diagnose hardware - freezes in windows and in the BIOS

    Original title: material and gel

    I have a computer that restarts and freezes frequently. Sometimes, when it freezes, the fan will go up to 4000 rpm and I have to hold the power for 5 seconds and switch it off. I don't know what could be the problem. RAM checks see the rise of nothing and the power supply is not that old. There are a few times where I would turn it on and the bios does not appear or the bios screen is frozen and incomplete. More likely, it may be material, but I don't know how I can check. I also had blue screen with kernel errors do you know what it can be?

    HP AMD Athlon (TM) 64 X 2 Dual Core Processor 6000 + 3.00 GHz

    3 GB Ram

    Windows Vista 64-bit

    I think I found the problem.

    I removed a piece of memory sharp and rebooted the computer with a normal startup. After waiting about 10-15 minutes between boots, I would restart the computer. I did about 5 boots hard to ensure that the problem not would not recur. I found that the problem was one of my RAM sticks.

    No ram shortage just like that or it could have the heat from the computer? The fan is often times at 4000 rpm and there are about 4 hard drives working there.

  • Reinstalled Windows and not the product key is not accepted.

    Error of liscense

    I have had problems with Printer Spooler and because System Restore my computer 3 times in the last 2 days.  Now that we have decided that I must clear Windows and start on it, all of a sudden don't like my product key. What happened and can it be fixed?

    Skip entering your product key Windows 7 and complete the installation.

    When you reach the desktop, click Start, right-click on computer

    Click on properties

    Scroll down to the Windows Activation

    Click the link x days before activation.

    Click on the link that says: "show me other ways to activate.

    Enter the product key

    Click next

    Select the Activation of the phone

    Click Next when you enter your key page

    Select your country

    Click Next, call the number listed

    Be sure to explain your situation to the Appeals Officer.

    Provide the installation generated when ID requested by the call agent

    They give a confirmation ID in return, enter it

    Click next to complete the activation.

    However, the requirements for the media upgrade is that you have an operating system already eligible such as Windows XP or Vista installed to use it. Since the Windows 7 end user license agreement.

    15 UPDATES. To use upgrade software, you must first be licensed for the software that is eligible for the upgrade. After the upgrade, this agreement takes the place of the agreement for the software that you upgraded. After upgrade, you can no longer use the software that you upgraded.

    So, if you are always denied, you will just have to reinstall Windows XP or Vista and let it do the verification of eligibility.

    or

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

Maybe you are looking for

  • Toshiba virtual Store account Reset - 29593

    Hi cud u please rese tpersonal c.c.p. 29593 please and thank you Post edited by: 29593

  • HP3050A: PRINT WIRELESSLY DIRECTLY?

    THE HP3050A IS DIRECT WIRELESS PRINTING?

  • change of KING imaq1394 during the capture

    Hello I use c ++ to implement an application that performs a continuous drain on my firewire camera. According to the manual, there are two ways to do so after an imaq1394CameraOpen2: (1) imaq1394SetupGrab-> imaq1394Grab2 (several times) (2) imaq1394

  • Help, please! computer HP laptop g72 does not load windows

    I can't get my laptop to initialize. I was it clean and running virus/spyware scans when it overheated and judgment (something he seems to do more in more often lately), I came back to the room to check on it and he stopped. He gave me the usual mess

  • AP signal strength

    Hi all How to get the intensity of the received signal from an access point. It is any command? I have 2 APs in bridge mode. I know that the transmitted power (100 mw). I get a failure of intermittent connection. Analysis the problem I need to know t