* BUG: Some little corrections
* NEW: Add a Max property to ShapeLayer


git-svn-id: svn://localhost/gambas/trunk@5652 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Fabien Bodard 2013-05-09 21:37:53 +00:00
parent 2634a0d54f
commit d60e6882a8
2 changed files with 9 additions and 2 deletions

View file

@ -12,8 +12,8 @@ Public Image As Image
Public Function Contains(hMapPoint As MapPoint) As Boolean
If Bounds.X < hMapPoint.Lon And Bounds.Right > hMapPoint.Lon Then
If Bounds.Y < hMapPoint.Lat And Bounds.Bottom > hMapPoint.Lat Then
If Bounds.Lon < hMapPoint.Lon And Bounds.lon2 > hMapPoint.Lon Then
If Bounds.Lat < hMapPoint.Lat And Bounds.Lat2 > hMapPoint.Lat Then
Return True
Endif
Endif

View file

@ -15,6 +15,7 @@ Private $icolor As Integer
Private $colIDShape As New Collection
Property Read Count As Integer
Property Image As Image
Property Read Max As Integer
Public Sub _new()
@ -258,3 +259,9 @@ Public Sub Refresh()
Next
End
Private Function Max_Read() As Integer
Return $hShapes.Max
End