没有事件。
用计时控件监视列宽度的改变
sub MS1_gotfocus()
timer1.enabled=true
for i=0 to ms1.cols-1
ms1.coldata(i)=ms1.colwidth(i)
next i
end subsub ms1_lostfocus()
timer1.enabled=false
end subsub Timer1_Timer()
for i=0 to ms1.cols-1
if ms1.coldata(i)<>ms1.colwidth(i) then
msgbox "列" & i+1 & "宽度改变"
end if
next i
end subfor i=0 to ms1.cols-1
ms1.colwidth(i)=i*1000
next i
用计时控件监视列宽度的改变
sub MS1_gotfocus()
timer1.enabled=true
for i=0 to ms1.cols-1
ms1.coldata(i)=ms1.colwidth(i)
next i
end subsub ms1_lostfocus()
timer1.enabled=false
end subsub Timer1_Timer()
for i=0 to ms1.cols-1
if ms1.coldata(i)<>ms1.colwidth(i) then
msgbox "列" & i+1 & "宽度改变"
end if
next i
end subfor i=0 to ms1.cols-1
ms1.colwidth(i)=i*1000
next i
sub MS1_gotfocus()
for i=0 to ms1.cols-1
ms1.coldata(i)=ms1.colwidth(i)
next i
timer1.enabled=true
end sub
ms1.cols=20
ms2.cols=20
for i=0 to 19
ms1.colwidth(i)=1000
ms2.colwidth(i)=1000
next i
end subsub ms1_scroll()
ms2.leftcol=ms1.leftcol
end sub