The Rest Of NetTalk > The Rest - Ask For Help
NetMaps how to show a number over the icon.
(1/1)
Alberto:
Hi Bruce, I need to show a number over each Icon.
Ive tried with
x# = ((ppqc:Longitud - net.LongitudeX) / net.LongitudePerPixel)
y# = ((net.LatitudeY - ppqc:Latitud) / net.LatitudePerPixel)
b" = '1'
!MESSAGE(net.LatitudeY&' '&net.LongitudeX&' '&x#&' '&y#&' '&clip(b"))
net.draw.setPenWidth(3)
net.draw.setPenColor(COLOR:Black)
net.draw._ShowFull(x#,y#,clip(b"))
HOw to do it?
Thanks
Alberto:
Now Im using the IconIndex param to set the nuember and showing it using
Compile('***',_DRAW_=1)
if pIconIndex>10
!MESSAGE('dibuja nr '&pIconIndex)
self.draw.Show(px+10,py+20,clip(pIconIndex-10))
END
***
after the _DrawIcon parent call.
It works but it this safe?
Bruce:
safe in what way? thread-safe?
Alberto:
Safe in the way that pIconIndex is suppoused to be the icon number in the icon file... but its working ok this way.
Navigation
[0] Message Index
Go to full version