How to refresh TTabControl()/(SysTabControl32 noption?

Post Reply
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

How to refresh TTabControl()/(SysTabControl32 noption?

Post 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
Last edited by ShumingWang on Fri Jan 18, 2008 12:45 am, edited 1 time in total.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Shuming,

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

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

Antonio Linares
www.fivetechsoft.com
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Post by ShumingWang »

Antonio,
This works! before by my mistakes,sorry.
Shuming Wang
Post Reply