LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Application developed on 1024x768 display is stretched on 1280x800

We have a LabWindows 6 application on XP SP2 that was developed on a 1024x768 display and when running on a 1280x800 resolution system, the graphics are horizontally stretched.  Setting the display to 1024x768 on the 1280x800 system before involking the application, then setting back the display resolution to 1200x800 remedies the issue.  Is there a way to initially run at 1280x800 and get the proper aspect ratio in the application?
 
0 Kudos
Message 1 of 7
(4,454 Views)

Hi RadarApp.

You can switch between different display settings within your application. Use the Windows SDK functions EnumDisplaySettings() and ChangeDisplaySettings().

Check the SDK Help for details.

Regards,
Colin.
0 Kudos
Message 2 of 7
(4,449 Views)
Hi Colin,
 
Thanks for the reply.  We're actually just trying to run the application on a wide screen laptop with a 1280x800 resolution screen without the stretching effect.  The program was developed on a 1024x768 desktop system.  Switching the graphics card display resolution on the widescreen laptop was only a work around.  The general issue would be running the application on different screen resolution systems while maintaining the original aspect ratio.
0 Kudos
Message 3 of 7
(4,441 Views)
Hello RadarApp,
 
I would check that the Resolution Adjustment property of your panel is set to 0%.  You can do this by opening the Edit Panel dialog then selecting Other Attributes.  There you should see an option for resolution adjustment.
 
Also, you should disable the "Scale contents on resize" option.
 
Thanks

Message Edited by Wendy L on 10-05-2005 09:49 PM

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 7
(4,436 Views)

Hi Wendy,

Thank you so much for your response.  Your suggestion fixed the aspect ratio on our LabWindows radar application.  The real-time circular sweeping bar display (a.k.a. Plan Position Indicator) is now round, rather than elliptical, when running on the wide screen laptop.

Thanks,
 
Bruce
0 Kudos
Message 5 of 7
(4,390 Views)

Bruce,

we are looking for a PPI display for our sonar application that runs in LabView. Have you finished the PPI? How could we get a copy of your VI?

Thanks.

Rob

0 Kudos
Message 6 of 7
(4,308 Views)

I tried the suggestion and it worked for my PPI display.  However, my LED's are still an eliptical shape even though I changed the resolution to 0% on the panel and made sure that the "Scale contents on resize" option was disabled.  Does anyone have any ideas on how to fix this?
Thanks,

Donna

0 Kudos
Message 7 of 7
(4,232 Views)