onmouseleaveseries event bug?
Posted: Mon May 05, 2008 8:59 am
hi experts,
Onmouseleaveseries event occurs when moving cursor over one barseries
and just a few wide bar visible.
Is it a bug?
env:
XP SP2
VFP SP1
thanks:
Tamás Handari
the sample code:
Acti Scree
Clea
oparent=Createobject('parentwindow')
With oparent
.AddObject('chart','olechart')
With .chart
.addseries(1)&&barseries
With .series(0)
.Add(2,'first',255)
.Add(1,'second',255)
.Add(3,'third',255)
.Add(2,'fourth',255)
.Add(3,'fifth',255)
.Add(3,'sixth',255)
.Marks.Visible=.F.
With .asBar
.BarWidthPercent=100
.OffsetPercent=0
.multibar=0
Endwith
Endwith
With .axis.Bottom
.Automatic=.F.
.Automaticminimum= .F.
.Automaticmaximum= .F.
.maximum=6
.minimum=1
.labels.Separation=1
.minortickcount=0
Endwith
.Aspect.View3D=.F.
.Visible=.T.
Endwith
.AddObject('lbl','label')
With .lbl
.Left=210
.Width=250
.Height=90
.FontSize=12
.WordWrap=.T.
.Caption='1: move mouse over the series horizontally'+Chr(13)+Chr(10)+;
'2: onmouseleaveseries() event occurs when move from one bar to another'
.Visible=.T.
Endwith
.Show
Endwith
Read Events
Return
***class
***********
Define Class parentwindow As Form
Left=200
Width=600
Height=500
AllowOutput=.F.
Proc Unload
Clea Events
Endproc
Enddefine
Define Class olechart As OleControl
OleClass='TeeChart.TChart.8'
Width=600
Height=360
Top=140
Proc onmouseleaveseries
Lparameters seriesindex
?'onmouseleaveseries event'
Wait ' onmouseleaveseries event ' Window At 3,20 Timeout .6
Endproc
Enddefine
Onmouseleaveseries event occurs when moving cursor over one barseries
and just a few wide bar visible.
Is it a bug?
env:
XP SP2
VFP SP1
thanks:
Tamás Handari
the sample code:
Acti Scree
Clea
oparent=Createobject('parentwindow')
With oparent
.AddObject('chart','olechart')
With .chart
.addseries(1)&&barseries
With .series(0)
.Add(2,'first',255)
.Add(1,'second',255)
.Add(3,'third',255)
.Add(2,'fourth',255)
.Add(3,'fifth',255)
.Add(3,'sixth',255)
.Marks.Visible=.F.
With .asBar
.BarWidthPercent=100
.OffsetPercent=0
.multibar=0
Endwith
Endwith
With .axis.Bottom
.Automatic=.F.
.Automaticminimum= .F.
.Automaticmaximum= .F.
.maximum=6
.minimum=1
.labels.Separation=1
.minortickcount=0
Endwith
.Aspect.View3D=.F.
.Visible=.T.
Endwith
.AddObject('lbl','label')
With .lbl
.Left=210
.Width=250
.Height=90
.FontSize=12
.WordWrap=.T.
.Caption='1: move mouse over the series horizontally'+Chr(13)+Chr(10)+;
'2: onmouseleaveseries() event occurs when move from one bar to another'
.Visible=.T.
Endwith
.Show
Endwith
Read Events
Return
***class
***********
Define Class parentwindow As Form
Left=200
Width=600
Height=500
AllowOutput=.F.
Proc Unload
Clea Events
Endproc
Enddefine
Define Class olechart As OleControl
OleClass='TeeChart.TChart.8'
Width=600
Height=360
Top=140
Proc onmouseleaveseries
Lparameters seriesindex
?'onmouseleaveseries event'
Wait ' onmouseleaveseries event ' Window At 3,20 Timeout .6
Endproc
Enddefine