Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dang it!
Message
 
 
À
22/08/2005 13:38:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01042650
Message ID:
01042720
Vues:
20
Grady,

You may need to set the ZOrder to keep it on top of your other image.

FWIW, I put this code in the click event of a form and it seems to do exactly what you are looking for.
lcName = sys(2015)
this.AddObject( lcName, "shape" )

with evaluate( "this." + lcName )
   .Top = mrow( thisform.Caption, 3 )
   .Left = mcol( thisform.Caption, 3 )
   .Visible = .t.
endwith
>No luck so far. This my first attempt to build a class this way and use it. Here is the situation.
>
>I have a form. In the form is an image of a map. When a mouse click occurs on the map I want to place a shape on the map where the click occurs.
>
>I have the class defined in a prg which runs once on the startup of the app.
>
>Prg code
>
>
>
>Define Class marker As Shape OF _base
>	Height = 25
>	Width = 25
>	Curvature = 90
>	BackColor = 255
>	BackStyle = 0
>Enddefine
>
>
>
>I put two lines of code under the click
>
>click code
>
>
>
>Thisform.AddObject("marker", "Marker")
>Thisform.marker.Visible = .t.
>
>
>
>What have I done wrong?
>
>Thanks for your patience
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform