Re: Installing third part ActiveX controls in Delphi 2007
Thanks John! - Original Message - From: "John Wilson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 11, 2007 8:49 AM Subject: Re: Installing third part ActiveX controls in Delphi 2007 > Hi Rich, > > I came across something similar in dot net, on CodeProject. Basically it > shows you how to translate the lat/long into google map grid > co-ordinates, and then use those to grab the section of map that you want. > > Here's the link: > > http://www.codeproject.com/useritems/googlemap.asp > > It's not Delphi, but the principle applies :) > > Good luck with it! > > John. > > > >> Date: Tue, 10 Apr 2007 10:40:42 -0800 >> From: "Rich Cooper" <[EMAIL PROTECTED]> >> Subject: Re: Installing third part ActiveX controls in Delphi 2007 >> >> I'm using D7 on XP HE and I am trying to write a program >> that shows IP addresses (already done) so that I can click >> on them (already done) and display a map of the area (that's >> what still needs to be done) where the IP is located. >> >> The present build is getting the textual specification of >> an IP address based on searching a table of IPs. When I >> go to , I can manually paste the into >> the box and get a nice map from Google, but not in just one >> window. Instead, I get a bunch of extraneous material at the >> top and left, and just the map in the bottom right of the window. >> I've tried looking at the HTML text (using view | source) but I don't >> get a clear idea of how to extract just the map window to display >> in my application. >> >> For example, here is an IP address and its lat long: >> >> 194.117.22.137 38.723, -9.133 >> >> and when I key or paste that lat long into Google Maps, I get >> a nice image of a town in Portugal near Lisbon. Ideally, I would >> like to embed a TWebBrowser in my application, and steer it >> to the map, but the present Google response is >> >> http://maps.google.com/maps?ie=UTF-8&oe=UTF-8&hl=en&tab=wl&q= >> >> which doesn't have the lat, long physically embedded in the URL. >> Also, the portion of the image that I want to embed in my app has >> a map on the bottom right of the browser window, and extraneous >> material on the top and left sides. >> >> I've looked for places in the source that describe the window of >> interest, but I haven't found anything that seems to do the trick of >> capturing just the map info. It wouldn't hurt to also capture the >> pan and zoom buttons and the scale, which are on the same image >> as the map, but the HTML might as well be in greek. >> >> I also tried Mapquest, but I can't get maps from that one. >> >> Does anyone have any ideas that might lead to capturing the map >> of an arbitrary specification in a window by itself? >> >> Thanks, >> Rich > > ___ > Delphi mailing list -> [EMAIL PROTECTED] > http://www.elists.org/mailman/listinfo/delphi ___ Delphi mailing list -> [EMAIL PROTECTED] http://www.elists.org/mailman/listinfo/delphi
Re: Installing third part ActiveX controls in Delphi 2007
Hi Rich, I came across something similar in dot net, on CodeProject. Basically it shows you how to translate the lat/long into google map grid co-ordinates, and then use those to grab the section of map that you want. Here's the link: http://www.codeproject.com/useritems/googlemap.asp It's not Delphi, but the principle applies :) Good luck with it! John. > Date: Tue, 10 Apr 2007 10:40:42 -0800 > From: "Rich Cooper" <[EMAIL PROTECTED]> > Subject: Re: Installing third part ActiveX controls in Delphi 2007 > > I'm using D7 on XP HE and I am trying to write a program > that shows IP addresses (already done) so that I can click > on them (already done) and display a map of the area (that's > what still needs to be done) where the IP is located. > > The present build is getting the textual specification of > an IP address based on searching a table of IPs. When I > go to , I can manually paste the into > the box and get a nice map from Google, but not in just one > window. Instead, I get a bunch of extraneous material at the > top and left, and just the map in the bottom right of the window. > I've tried looking at the HTML text (using view | source) but I don't > get a clear idea of how to extract just the map window to display > in my application. > > For example, here is an IP address and its lat long: > > 194.117.22.137 38.723, -9.133 > > and when I key or paste that lat long into Google Maps, I get > a nice image of a town in Portugal near Lisbon. Ideally, I would > like to embed a TWebBrowser in my application, and steer it > to the map, but the present Google response is > > http://maps.google.com/maps?ie=UTF-8&oe=UTF-8&hl=en&tab=wl&q= > > which doesn't have the lat, long physically embedded in the URL. > Also, the portion of the image that I want to embed in my app has > a map on the bottom right of the browser window, and extraneous > material on the top and left sides. > > I've looked for places in the source that describe the window of > interest, but I haven't found anything that seems to do the trick of > capturing just the map info. It wouldn't hurt to also capture the > pan and zoom buttons and the scale, which are on the same image > as the map, but the HTML might as well be in greek. > > I also tried Mapquest, but I can't get maps from that one. > > Does anyone have any ideas that might lead to capturing the map > of an arbitrary specification in a window by itself? > > Thanks, > Rich ___ Delphi mailing list -> [EMAIL PROTECTED] http://www.elists.org/mailman/listinfo/delphi
Re: Installing third part ActiveX controls in Delphi 2007
I'm using D7 on XP HE and I am trying to write a program that shows IP addresses (already done) so that I can click on them (already done) and display a map of the area (that's what still needs to be done) where the IP is located. The present build is getting the textual specification of an IP address based on searching a table of IPs. When I go to , I can manually paste the into the box and get a nice map from Google, but not in just one window. Instead, I get a bunch of extraneous material at the top and left, and just the map in the bottom right of the window. I've tried looking at the HTML text (using view | source) but I don't get a clear idea of how to extract just the map window to display in my application. For example, here is an IP address and its lat long: 194.117.22.137 38.723, -9.133 and when I key or paste that lat long into Google Maps, I get a nice image of a town in Portugal near Lisbon. Ideally, I would like to embed a TWebBrowser in my application, and steer it to the map, but the present Google response is http://maps.google.com/maps?ie=UTF-8&oe=UTF-8&hl=en&tab=wl&q= which doesn't have the lat, long physically embedded in the URL. Also, the portion of the image that I want to embed in my app has a map on the bottom right of the browser window, and extraneous material on the top and left sides. I've looked for places in the source that describe the window of interest, but I haven't found anything that seems to do the trick of capturing just the map info. It wouldn't hurt to also capture the pan and zoom buttons and the scale, which are on the same image as the map, but the HTML might as well be in greek. I also tried Mapquest, but I can't get maps from that one. Does anyone have any ideas that might lead to capturing the map of an arbitrary specification in a window by itself? Thanks, Rich ___ Delphi mailing list -> Delphi@elists.org http://www.elists.org/mailman/listinfo/delphi
Re: Installing third part ActiveX controls in Delphi 2007
Using D2007, first create a new empty package and let it open in the project manager (or just open an existing packge). Then import the ActiveX and you'll see a new checkbox allowing you to add the created component in the package you've opened. For the palette page where the component is installed, search in the generated source code for the Register procedure. You'll see the page. You can edit it (but be aware that re-importing will overwrite your changes). -- [EMAIL PROTECTED] The author for the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "John Dammeyer" <[EMAIL PROTECTED]> To: "'Borland's Delphi Discussion List'" Sent: Thursday, April 05, 2007 12:30 AM Subject: Installing third part ActiveX controls in Delphi 2007 > Hi, > > I'm having a problem installing an activeX control like DLPortio.ocx > into the new Delphi 2007. The component is registered on my system and > it works under Delphi 5. > > When I select the install component and ask it create the wrapper etc. > that all goes fine. It even loads the .pas file for examinition. It > also tells me that it will install it in the ActiveX tools. Except > there isn't an ActiveX tools. If I try and create an ActiveX tools > folder it shows up as created but then, perhaps because it's empty, it > gets deleted when I change over to install the ActiveX control. > > Delphi 5's only strange behaviour was the ability to hide certain > controls. That doesn't seem to exist in 2007. > > So I'm a bit confused. Why would it let me go through the entire > process along with creating the .pas file for the control but not > actually let me install it. The files list shows a .bpl but it's saved > as a .proj > > Thanks, > > John Dammeyer > > > Automation Artisans Inc. > http://www.autoartisans.com > Ph. 1 250 544 4950 > > ___ > Delphi mailing list -> Delphi@elists.org > http://www.elists.org/mailman/listinfo/delphi ___ Delphi mailing list -> Delphi@elists.org http://www.elists.org/mailman/listinfo/delphi
Re: Installing third part ActiveX controls in Delphi 2007
> I'm having a problem installing an activeX control like DLPortio.ocx if this is for accessing hardware ports, checkout this one http://www.specosoft.com/zlportio.html I've used it myself recently and it works like a charm ... Orca Belgium ___ Delphi mailing list -> Delphi@elists.org http://www.elists.org/mailman/listinfo/delphi