LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

In Animationctrl_setattribute(), what is the significance of the second parameter

Hi All,
 
I am new to Labwindows/CVI. I have written code like this for animation.
 
 if ((panelHandle = LoadPanel (0, "test.uir", TESTPANEL)) <= 0)
 return -1; 

 DisplayPanel (panelHandle);
 
 controlID = NewCtrl (panelHandle,CTRL_PICTURE_RING,"Label_1",80, 90);   
 
 AnimateCtrl_ConvertFromPictRing(TESTPANEL, controlID );
   
 AnimateCtrl_SetAttribute (panelHandle, controlID , ATTR_ANIMATE_ENABLED, 1);
              
 AnimateCtrl_SetAttribute (panelHandle, controlID , ATTR_ANIMATE_FRAME_INTERVAL, 1);
 
 AnimateCtrl_SetAttribute (panelHandle, controlID , ATTR_ANIMATE_STOP_ON_LAST_FRAME, 0); 
  
 RunUserInterface ();
 
When i execute this, with label-1 like that , on empty box is coming with up and down arrows.I want to add some pictures or text so that i can scroll down by using these arrows.Please help me regarding this.
 
Waiting for ur reply.
 
Regards,
Harika.
Honeywell technology solutions,
Bangalore.
 
0 Kudos
Message 1 of 2
(2,900 Views)
Hello Harika,

You can add pictures to your picture ring in two ways.  You can add them when you are building your user interface.  Place a picture ring control on your panel, then double click on it to view the properties, and then click Image/Value Pairs.  In this dialog you can load images and assign a value for each.  This is the easier way to do it.

If you want to add your pictures at run time, I suggest you read the help about the Picture Ring control.  Here is a link to the help for "programming the picture ring control"  from our website:
http://zone.ni.com/reference/en-XX/help/370051K-01/cvi/cviprogramming_with_picture_ring_co/

This help topic has information on the different functions you can use to programmatically manipulate the picture ring control.

Please let me know if you have any questions.
Kristen
National Instruments
0 Kudos
Message 2 of 2
(2,873 Views)