Posted: Sat Sep 12, 2020 8:50 am Post subject: GroupBox question
Hi.
I have a GroupBox with 5 radioButton in it
Basic action is radioButton1 but some times i use 2 to 5 option
So before doing my action i manually click in the radioButton i want
But most of the time i forget to click it back to rB1 after the action and then... shithappen lol
Is there a way in lua to "reset" the GroupBox to rB1 checked ?
And do you think i can use hotkey + and - to increase /decrease the selected rB ?
rBox.Items.Add("I index 0") --CETrainer.CERadioGroup1.Items.Add("I index 0")
rBox.Items.Add("I index 1")
rBox.Items.Add("I index 2")
rBox.Items.Add("I index 3")
local Index = rBox.ItemIndex --CETrainer.CERadioGroup1.ItemIndex
Index = -1
function Printer()
Index = rBox.ItemIndex
if Index==1 then
print("Index 1") end
if Index==3 then
print("Index 3") end
end
rBox.OnSelectionChanged=function() --function CETrainer_CERadioGroup1SelectionChanged(sender)
Index = rBox.ItemIndex
if Index==0 then
lbl1.caption="Index? 0" end
if Index==1 then
lbl1.caption="Index? 1" end
if Index==2 then
lbl1.caption="Index? 2" end
if Index==3 then
lbl1.caption="Index? 3" end
Printer()
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum