Jump to content

Widget Popups driving me crazy


Recommended Posts

Hey everyone! if you're in the states i hope all had a relaxing thanksgiving. 

 

i've been implementing some Widgets into my PIO and i've having issues with Popups and setting the default choice and getting what the current choice is. 

 

i've tried vs.vsoWidgetPopupSet() and SetRField() but it doesn't seem to be working. i've also tried vs.GetRField() to get the value and that also doesn't work. 

 

yes i have events turned on for the PIO. everything else seems to be working correctly except for what i stated above. 

 

Heres a example of what I'm using to make the popup

vs.vsoInsertWidget(5, 8, 9996, "Pickplate-12 Hole", 0)
vs.vsoWidgetPopupAdd(9996, 1, "1")
vs.vsoWidgetPopupAdd(9996, 2, "2")
vs.vsoWidgetPopupAdd(9996, 3, "3")
vs.vsoWidgetSetIndLvl(9996, 1)
Link to comment

VS doesn't have a way to get or set widget values, so any widgets that hold data need to be connected to an existing parameter. i.e. use vsoAddParamWidget() and vsoInsertParamWidget(). The popup parameter would already be in place via the Plug-in Manager interface. While you can use the vsoWidgetPopup commands in the widget prep event to manage the choices in the popup, you would still get and set values with Get/SetRField or vs.ParamName (the latter being read-only). Storage-wise, a popup is just a text field.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...