Sub list_create
alphabet()=Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z")
For i=0 To ArrayLen(alphabet())-1
AddImageButton("main.frmMain","btnListAlpha"&alphabet(i),430,10+26*i,50,26,alphabet(i))
ImageButton("btnListAlpha"&alphabet(i)).FontSize=12
ImageButton("btnListAlpha"&alphabet(i)).Visible=False
AddEvent("btnListAlpha"&alphabet(i),Click,"mys_list_alpha_click")
AddEvent("btnListAlpha"&alphabet(i),ButtonDown,"mys_list_alpha_down")
AddEvent("btnListAlpha"&alphabet(i),ButtonUp,"mys_list_alpha_up")
AddObject("doorObj"&alphabet(i),"Object")
AddObject("doorObjProp"&alphabet(i),"Object")
Object("doorObj"&alphabet(i)).New1(False)
Object("doorObjProp"&alphabet(i)).New1(False)
Object("doorObj"&alphabet(i)).FromControl("btnListAlpha"&alphabet(i))
AddObject("doorEventMove"&alphabet(i),"Event")
Event("doorEventMove"&alphabet(i)).New1(Object("doorObj"&alphabet(i)).Value,"MouseMove")
Next
End Sub
Sub mouse_move(x,y)
...
End Sub
Sub doorEventMove[COLOR="Red"]A[/COLOR]_NewEvent
Object("doorObjProp"&alphabet([COLOR="Red"]0[/COLOR])).Value=Event("doorEventMove"&alphabet([COLOR="Red"]0[/COLOR])).Data
mouse_move(Event(Object("doorObjProp"&alphabet([COLOR="Red"]0[/COLOR])).GetProperty("X"),Object("doorObjProp"&alphabet([COLOR="Red"]0[/COLOR])).GetProperty("Y")
End Sub
[B]More 25x:[/B]
Sub doorEventMove[COLOR="Red"]B[/COLOR]_NewEvent
...