LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

can I move decoration?

Hi
Is it possible to make any kind of decoration move on my screen when the timer ticks?
for example a circle moving from one point on panelHandle to another?
Thanks hopefully
uzi
0 Kudos
Message 1 of 3
(2,653 Views)
Like any other control, you can retrieve its position with:

GetCtrlAttribute (panel, control, ATTR_LEFT, &LeftPos);
GetCtrlAttribute (panel, control, ATTR_TOP, &TopPos);

and move to a new position with:

SetCtrlAttribute (panel, control, ATTR_LEFT, newLeftPos);
SetCtrlAttribute (panel, control, ATTR_TOP, NewTopPos);


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?
Message 2 of 3
(2,653 Views)
Thanks Alot!! :))
I just couldn`t find the right attribute. 😞
0 Kudos
Message 3 of 3
(2,653 Views)