In order for any object in VFP to have a visible presence in the GUI it must be a form or contained object in either a form or _screen.
So Borislav's answer is one way to get it there. Hilmar's won't work though.
>Okay, what have I done wrong with this? The little poop won't display for me.
>
>
>Define Class marker As Shape OF _base
> Height = 25
> Width = 25
> Curvature = 90
> BackColor = 255
> BackStyle = 0
>Enddefine
>
>marker.show
>
______________
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
I ain't skeert of nuttin eh?
Yikes! What was that?