我在w_1窗口的按钮中写下这样的代码,
open(w_2)
if isvalid(w_2) then
if rb_1.checked then
w_2.tab_1.selectTab(1)
else
w_2.tab_1.selectTab(2)
end if
end if
当rb_2选中时,打开的w_2的tab_1却没有选中tabpage_2,这是为什么?
...全文
1744打赏收藏
TAB控件的问题
我在w_1窗口的按钮中写下这样的代码, open(w_2) if isvalid(w_2) then if rb_1.checked then w_2.tab_1.selectTab(1) else w_2.tab_1.selectTab(2) end if end if 当rb_2选中时,打开的w_2的tab_1却没有选中tabpage_2,这是为什么?
试试这样吧
open(w_2)
if isvalid(w_2) then
if rb_1.checked then
w_2.tab_1.selectTab(1)
elseif rb_2.chedked
messsagebox("test")
w_2.tab_1.selectTab(2)
end if
end if