I've created three global radio buttons, rb1,rb2,rb3.
When loading a Layout, I initialize them with an event name "showTasks" and then add all three to a panel that has been created in the Designer.
My problem is that when a rb1, rb2 or rb3 is Clicked, the showTasks event never fires.
{sub Globals
.....
dim rb1,rb2,rb3 as radiobutton
end sub
sub LoadLayout
rb1.initialize("showTasks")
rb1.tag="radio1"
rb2.initialize("showTasks")
rb2.tag="radio2"
rb3.initialize("showTasks")
rb3.tag="radio3"
pnl.AddView(rb1,0dip,5dip,90dip,27dip)
pnl.AddView(rb2,120dip,5dip,90dip,27dip)
pnl.AddView(rb3,250dip,5dip,90dip,27dip)
end sub
sub showTasks()
dim r as radiobutton
r=sender
log(r.tag)
end sub
}
When loading a Layout, I initialize them with an event name "showTasks" and then add all three to a panel that has been created in the Designer.
My problem is that when a rb1, rb2 or rb3 is Clicked, the showTasks event never fires.
{sub Globals
.....
dim rb1,rb2,rb3 as radiobutton
end sub
sub LoadLayout
rb1.initialize("showTasks")
rb1.tag="radio1"
rb2.initialize("showTasks")
rb2.tag="radio2"
rb3.initialize("showTasks")
rb3.tag="radio3"
pnl.AddView(rb1,0dip,5dip,90dip,27dip)
pnl.AddView(rb2,120dip,5dip,90dip,27dip)
pnl.AddView(rb3,250dip,5dip,90dip,27dip)
end sub
sub showTasks()
dim r as radiobutton
r=sender
log(r.tag)
end sub
}