Page 1 of 1

How to refresh TTabControl()/(SysTabControl32 noption?

Posted: Thu Jan 17, 2008 5:26 am
by ShumingWang
Hi,
otabs:=TTabControl():Redefine( 200, oDlg )
otabs:baction:={||sto0209(otabs)}
...

return

function sto0209(otabs)
do case
case otabs:noption==1
obrow1:show()
case otabs:noption==2
do something
otabs:noption:=1
otabs:refresh() // can't change otabs display
end
return

Best regards!

Shuming Wang

Posted: Thu Jan 17, 2008 7:36 am
by Antonio Linares
Shuming,

Please use a MsgInfo() to check that your code go that way:

do something
otabs:nopion:=1
MsgInfo( "here" )

Posted: Fri Jan 18, 2008 12:57 am
by ShumingWang
Antonio,
This works! before by my mistakes,sorry.
Shuming Wang