TBounds

Hi


I am trying to get "How to save and restore a map position" to work in "Tips and Tricks".

I get the undeclared identifier TBounds when trying to write code for this callback:

procedure GmapBoundsRetrieved(Sender: TObject; Bounds: TBounds);

I have just about included in my uses clause everything I can find to do with the TWebGMaps component without any luck can you help?

Bruce.

If you right click on the type and choose "Find declaration" from the context menu, it should bring you to the unit: UWebGMapsCommonFunctions.pas, so include that in your uses list.

Bruno


Thanks it now works. When I did right-click on it and ask for find declarations I didn't get a response from the IDE and was totally blind to what was in the unit.

Bruce.




Bruno


A similar thing happens with this example:

I save a BMP without a problem:
Graphic:=Gmap.ScreenShot(itBitmap);

I save a JPG also without a problem
Graphic:=Gmap.ScreenShot(itJpeg);

But when I try to save a PNG 
Graphic:=Gmap.ScreenShot(itPng);

I get an exception Undeclared identifier 'itPng' even though I've included UWebGMapsCommon?

Has PNG been left out of the TImgType definitions?

Bruce.

Hi,


Have you tried the "File>Export Screenshot" menu command in the WebGMaps demo, which is working as expected?

Please note that export as PNG is unfortunately not supported in all versions of Delphi.
Which version of Delphi are you using?


Delphi 2007.

Unfortunately export to png is not supported in Delphi 2007.

Please use export to bmp or jpg instead.