Dropdown list in scripting?

261 views
Skip to first unread message

Kobus Botha

unread,
Jan 20, 2015, 1:33:31 AM1/20/15
to pinnacl...@googlegroups.com
Good day

Can a person create a dropdown list in the Pinnacle scripting? I would like the users to be able to select a parameter from a list and then the value of the parameter chosen will then be used in the rest of the script.

If not possible to do a dropdown list, does anyone have any other suggestions?

Kind regards.

Kobus

Hans Rozema

unread,
Jan 20, 2015, 2:18:16 AM1/20/15
to pinnacl...@googlegroups.com

Hi Kobus,

 

We do use dropdownlists in our scripts. You create a list in the store and recall it in a windowchild.  

See the following code:

 

// List

 

Store .At .number                            = ObjectList{ChildClassName = "SimpleString";};

Store .At .number .CreateChild = "";

Store .At .number .Last .Value = "1";

Store .At .number .CreateChild = "";

Store .At .number .Last .Value = "2";

Store .At .number .CreateChild = "";

Store .At .number .Last .Value = "3";

Store .At .number .CreateChild = "";

Store .At .number .Last .Value = "4";

Store .At .number .CreateChild = "";

Store .At .number .Last .Value = "5";

Store .At .number .CreateChild = "";

 

 

Store.At.trialWindow.AddChild = "";

Store.At.trialWindow.WidgetList.Last = {

      WidgetClass                      = "OptionMenu";

      ParentName                     = "TopLevel";

      Name                                   =  "number";

      X                                            = 130;

      Y                                            = 180;

      Width                                  = 65;

      Height                                 = 34;

      QueryListKey                   = "Store.At.number.*.Name";

      QueryValueKey              = "Store.StringAt.trial_plan";

      AddAction                         = "";

      ReplaceCurrentAction =  "Store.StringAt.trial_plan";

      AddAction                         = "";

     ReplaceCurrentAction = "Store.At.trialWindow.Unrealize";  

      AddAction                         = "";

      ReplaceCurrentAction = Root.Store.StringAt.execute_refresh;

                };

 

Regards,

 

Hans Rozema

 

logoRCW50

Radiotherapiecentrum West

Locatie: Lijnbaan 32

2512 VA Den Haag

'   (070) 330 2912 / 2357

-   h.ro...@MCHaaglanden.nl

þ   http://www.RCWest.nl

R  Afwezig op Dinsdag

P please consider the environment - only print this email if necessary

--
--
You received this message because you are subscribed to the Google
Groups "pinnacle3-users" group.
To post to this group, send email to pinnacl...@googlegroups.com
To subscribe to this group, send email to
pinnacle3-us...@googlegroups.com
To unsubscribe from this group, send email to
pinnacle3-use...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pinnacle3-users?hl=en

---
You received this message because you are subscribed to the Google Groups "pinnacle3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pinnacle3-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kobus Botha

unread,
Jan 20, 2015, 5:35:37 AM1/20/15
to pinnacl...@googlegroups.com
Thank you Hans. 

I am busy trying this now.

Kind regards.

Kobus
Reply all
Reply to author
Forward
0 new messages