LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I retrieve a control position ?

I am working on a software that has the feature to save screens. The screens controls and everything else are stored in .dat files.

I am in trouble trying to get the position of controls on the screen. Do you know how can I do it?


0 Kudos
Message 1 of 6
(3,937 Views)
The position of controls you get with GetCtrlBoundingRect().
Have you considered using SavePanelState() instead?
Regards, Guenter
0 Kudos
Message 2 of 6
(3,926 Views)
This function SavePanelState looks great. It seems do exactly what I need. Is it possible to save a group of tabs with their controls which are docked and undocked?

Thank you in advance
0 Kudos
Message 3 of 6
(3,918 Views)
This function, SavePanelState, looks great. It seems do exactly what I need. Is it possible to save a group of tabs with their controls which are docked and undocked?

Thank you in advance
0 Kudos
Message 4 of 6
(3,917 Views)
Do you have any example that you can share?
0 Kudos
Message 5 of 6
(3,913 Views)

Hi Oliveira,

take a look at this sample I wrote some time ago to save tab control panels. I uses easytab instrument instead ov CVI 8 tab control, but it can serve you as a skeleton for you to test and adapt to your needs.

Roberto



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 6 of 6
(3,893 Views)