How to create a drop down menu in Vijeo Citect application for selecting items.
Sample Cicode script to get drop down menu feature for selection purpose in Vijeo Citect project is given below.
! Create a form, add combo box and then display the form
! the operator may type in or select one of the items from the list
FUNCTION FnMenu()
STRING sBuf;
FormNew("Select Item",20,6,1);
FormComboBox(2 ,2, 15, 5, sBuf, 1);
FormAddList("Item One");
FormAddList("Item two");
FormAddList("Item three");
FormRead(0);
! sBuf should contain the selected item or entered text
END
Answers which others found helpful |