2016-04-22 09:53 AM
2016-04-22 10:20 AM
2016-04-22 11:46 AM
"Barry Kelly" wrote:
The radio button is only an on/off switch (i.e. 0 or 1)
If you want a choice of multiple values then you will need to use the UI_INFIELD.
UI_INFIELD "name", x, y, width, height
Where "name" is the parameter that contains the VALUE list of your shapes.
Barry.
2016-04-23 05:54 AM
2016-04-24 02:32 AM
UI_OUTFIELD 'Continuous:', uiX, uiY, uiLabelX1, uiLabelY3, 1 : uiX = uiX + uiLabelX1 + uiGapX UI_INFIELD{3} "bcont", uiX, uiY, uiButton1, uiLabelY3 : uiX = uiXs : uiY = uiY + uiLabelY3 + uiGapY UI_OUTFIELD 'Blocking:', uiX, uiY, uiLabelX1, uiLabelY3, 1 : uiX = uiX + uiLabelX1 + uiGapX UI_INFIELD{3} "bblock", uiX, uiY, uiButton1, uiLabelY3 : uiX = uiXs : uiY = uiY + uiLabelY3 + uiGapY UI_OUTFIELD 'Finish:', uiX, uiY, uiLabelX1, uiLabelY3, 1 : uiX = uiX + uiLabelX1 + uiGapX UI_INFIELD{3} "bfinish", uiX, uiY, uiButton1, uiLabelY3 : uiX = uiXsThen in the master script you will want to add something like this:
!! =========================================================== !! Radio Button Parameters !! =========================================================== bSetParams = 0 IF GLOB_MODPAR_NAME = "bcont" THEN bcont = 1 bblock = 0 bfinish = 0 bSetParams = 1 ENDIF IF GLOB_MODPAR_NAME = "bblock" THEN bcont = 0 bblock = 1 bfinish = 0 bSetParams = 1 ENDIF IF GLOB_MODPAR_NAME = "bfinish" THEN bcont = 0 bblock = 0 bfinish = 1 bSetParams = 1 ENDIF IF bSetParams THEN PARAMETERS bcont = bcont, bblock = bblock, bfinish = bfinish ENDIFTo contol your variables so that only one parameter can be selected at any time. This essentially creates a three way radio button that will look something like what you see in the attached image.
2016-04-25 07:57 PM
!--value script values "radiobutton" 0,1,2,3 !--UI-script UI_RADIOBUTTON "radiobutton", 0, "Zero", 10, 140, 200, 20 UI_RADIOBUTTON "radiobutton", 1, "One", 10, 160, 200, 20 UI_RADIOBUTTON "radiobutton", 2, "Two", 10, 180, 200, 20 UI_RADIOBUTTON "radiobutton", 3, "Three", 10, 200, 200, 20
2016-04-25 09:56 PM
2016-04-26 08:33 PM