Klaus,
My opinion, for what it is worth. Take the time to learn to use the grid. Even if you can get by without it right now, there will likely come a point where a browse window just won't give you the degree of control and options that you really need and a grid will be the solution...
But here is something interesting. If I change the code as follows:
loImg = CreateObjectEX("MapWinGIS.Image","","")
loImg.Open( 's:\mapwingis\car.jpg', ImageType_JPEG_File)
The .OPEN() method generates a different error. 'Must specify additional parameters'. So I add the remaining...
Hi Chris,
Thanks for trying.
Hmm... If the string was required to be unicode I suspect the docs might say that. No?? I've done quite a bit with the control so far and other VFP strings have worked fine. Something about this method is different.
I sent a message off to the OCX developers...
I'm using the code below to create an instance of the MapWinGIS IMAGE class so that the resulting IMAGE object can be passed into a shape file. The image object is successfully created however, my call to the .Open() method creates an OLE Error Code "Type Mismatch".
* Create a MapWinGIS image...
Hi Chris,
Thanks for the feedback. I finally got this simple example working too.
For the benefit of anyone else who may visit this thread here is the updated VFP Code
____________________________
* Creates a point shapefile by placing 1000 points randomly
thisform.AXmap.projection = 0 &&...
Just a thought.
I recall Drew Speedy doing something like this many years ago as he had a similar need to keep a display value in sight and wanted it to the far right of the main menu just to the left of the minimize, maximize and close icons.
He defined a new borderless child form...
For What It is Worth..
I've used the 32-bit version of VFPA for several years. It seems quite reliable even on some very large projects. For me, several of the fixes/modifications made in VFPA (Listed Here) have been quite useful. I have the 64-bit version installed on a test machine, but...
Hi Chris,
Okay, as long as you've ventured into this OCX a bit here is another issue I've stumbled across that you may be able to shed light upon if you care to venture further... (If not that's okay)
The MapWinGIS web site has Examples and I've been going thru some of them to try to reproduce...
UPDATE: This issue seems to be resolved and the issue is not case sensitivity but rather one of using the proper syntax.
One of the developers for the Open Source MapWinGIS OCX control was kind enough to point out that in some legacy products like VB6 and VFP the ‘get_’ prefix to the method...
Thanks again Chris,
While it is an interesting suggestion, I don't believe the OCX was designed for implementation within a web browser and I've not heard of anyone who has done that. Even if it were possible, I suspect doing so would add significant overhead and I'm not sure it would be...
Rajesh & Chris, Thanks to both of you for the feedback!
So when I examine the OCX object in the debugger at runtime, I see a pretty short list of exposed items.
When I focused in on the 'OBJECT' object within the debugger and see many more things...
but I still do not see any reference...
Hi Chriss,
Thanks for the reply. You are Correct! 'LayerHandle' is a user defined property I created on my VFP test form so that after I create the new shapefile layer and add it to the map I can store the integer HandleNumber, returned by the AxMap1.AddLayer() method, for later use. I need...
Are there any VFP folks out there with WinMapGIS OCX experience?
I'm working with the MapWinGIS OCX control (version 5.3) with some degree of success. I've code to create a Shapefile layer, and store the layer handle to a form property, but when the layer already exists I need to identify the...
Chris & Mike,
THANKS!! All great feedback here. It is always good to hear that others have blazed the trail before you......
Yes, I am very familiar with _access() and _assign() methods of object properties so this implementation was easy to add to my container class. My grid is also...
Greetings all you smart VFP people...
Maybe I am trying to do something that can't be done, but that is usually not the case with VFP!
I have a container object ('MyDispContainer') with other objects (shapes) inside that has been designed to display graphic representations of data. Similar...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.