LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DOSCompatWindow Define size of window dos application

Hi people who want to help me,

I converted an old version of CVI who worked with dos. Now, it’s works correctly with CVI 7.01 . But when I call a panel, the size is defined by dos. It’s seem to be a dos window screen 600 x 800 dpi. Unfortunately my home screen have now a different size 1024x728. So I need to resize the window at each time I start the application. It’s very boring !

I will avoid to use the new function “DisplayPanel” to display the panel because does it takes times to change my code. So the old function that I’m using is called “DOSCompatWindow” .

Is it possible to use this old function and show the full size of my panel without resize the windows ?

Thanks four your helps

Mark
0 Kudos
Message 1 of 2
(2,908 Views)
Mark,

The DOS compatibility window is sized to 625x450 pixels in order to match the typical DOS screen in which the application ran previously. You can resize it, if you like, using SetPanelSize and passing it the handle returned by the DOSCompatWindow function.

However, what we recommend is that you not even use this function at all. All you have to do is remove the calls to DOSCompatWindow, and then pass 0 as the first parameter to NewPanel or LoadPanel.

Luis
NI
Message 2 of 2
(2,905 Views)