Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Continuing where we left off. . . . shapes
Message
From
22/08/2005 19:03:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Continuing where we left off. . . . shapes
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01042777
Message ID:
01042777
Views:
67
The following code in an image click method puts a shape on that image in a form.
Private lcName
lcName = sys(2015)
backcolor =  255
Backstyle = 0
thisform.addobject( lcName, "shape" )

with GETPEM(thisform,lcName)
   .Move(mcol(thisform.Name, 3),mrow( thisform.Name, 3 )) && the form name should to be unique
   .Visible = .t.
endwith
However, it's position on the screen is controlled by Mcol and Mrow and the form I have contains the image of a map that exceeds the screen size. Therefore, I am searching for a solution that uses coordinates. CurrentX and CurrentY might work. I'll try that.
I ain't skeert of nuttin eh?
Yikes! What was that?
Next
Reply
Map
View

Click here to load this message in the networking platform