Reply To: UI button – parameters

#3449
Ben Cohen
Participant

Add this to your code

parameters script

if GLOB_UI_BUTTON_ID <> 0 then
parameters n = n + GLOB_UI_BUTTON_ID
GLOB_UI_BUTTON_ID = 0
endif

interface script

for i=1 to n
ui_button ui_function, “-“, _x2+200, _y, 20, 20, -1
ui_button ui_function, “+”, _x2+220, _y, 20, 20, 1
ui_style 0, 0 :ui_outfield “mat”+str(i, 1, 0) ,_x, _y :ui_style 0, 0 :ui_infield vari_mat_[i], _x2, _y-5, _sx-200, _sy :_y=_y+_d
next i

HTH 🙂

Ben