Hello,
i want to fire up the “change” event when a celltag is “active” but the app crashes
the cell background event:
Dim i as integer
g.ForeColor = app.dunkelblau
g.FillRect(0, 0, g.Width, g.Height)
g.ForeColor=app.hellblau
g.DrawLine(0, me.RowHeight-1, me.width, me.RowHeight-1)
dim s as Integer
if me.listcount>0 then
if Me.CellTag(row, 0)="active" then
g.ForeColor = app.gruen
g.FillRect(0, 0, g.Width, g.Height)
dim p as new Picture(45,30)
p.Graphics.DrawPicture(playSymbol,15,-2)
me.RowPicture(row) =p
me.Selected(row)=true
return true
else
dim p as new Picture(45,30)
p.Graphics.DrawPicture(playsymbol_inactive,15,-2)
me.RowPicture(row) =p
End If
end if
in the change event
if me.ListIndex<>-1 then ////app crashes/hangs with this code in "change event" .... why?
MsgBox str(me.listindex)
end if
anybody can help me with that?
Thanks Marco