Making a map with buttons...

Hello,
  My problem is how to make a imagemap of the world where all the nations are buttons in delphi 3. I would also like to make cities buttons too. I hope to find a Component that is cheap under 50.00 or better yet free. Maybe imagemap is an inaccurate description. This is not a web deal, this is just a more graphic program for shipping.

Help,
David
LVL 1
nex1999Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nex1999Author Commented:
Edited text of question.
0
edeyCommented:
actually, using an ie ocx & an html image map might not be such a bad idea.


GL
Mike
0
nex1999Author Commented:
edey,

  OK how could I test this? Ah.. ocx and html I have never used them in delphi. How do you do that? Do you have a sample of code perhaps?

David
0
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

edeyCommented:
I don't have any code at work, though if you know how to do it with html the task should be trivial.  Simply grab a wrapper for the ie TWebBrowser control (or import it yourself), & drop the control on a form.  Write your .html, & use the ocx's navigate method to load the .html.  Ta da! instant webbrowser :)

Gl
Mike
0
nex1999Author Commented:
edey,

  OK I have never made an imagemap. I made a web page with buttons that was easy. What is ocx? TWebBrowser is delphi object? I will look for it in help. ocx navigate method sound cool.

this is a button with an image in html:
<A HREF="Links.html"  TARGET="main"><IMG SRC="btnLinks.gif"    width=120 height=47></A>

  I mislead you a bit sorry about that.
I know just a little about web programming.

David
0
edeyCommented:
IE's html renderer is packaged as an ActiveX.  You can "import" this control (I belive that the regestired control is called "Microsoft Internet Controls") for use within delphi, or use a vcl to help out (try: http://www.geocities.com/Tokyo/Bay/1685/ or you can try David Baldwin's custom html controls http://www.pbear.com/)

for info on client side image maps try:
http://www.webdeveloper.com/html/html_image_mapping.html


GL
Mike
0
men xinCEOCommented:
nex1999:

You can look for some icons of flags.if you cant find it,i can mail some of them for you.

menxin
0
nex1999Author Commented:
edey & menxin,

  OK I finally got that previewHTML component installed. It was kind if a pain but now I have it. So when I put that object on my form...
  1)How can I make it automatically open a html doc located on my c:\drive?  
  2)And part two is making a imagemap hard to do? I read briefly about it. I Will try tomorrow making one. I mean will i have to give position to every button along it entire boundry?

  Menxin hew sure I will take all the icons you have. That would be very cool. My email addres is nex@mediaone.com

thanx,
David
0
nex1999Author Commented:
eday,

 This loads in a html file:
procedure TForm1.FormCreate(Sender: TObject);
var
  x : string;
begin
  x := 'C:\WINDOWS\Desktop\web6\main.html';
  wMain.LoadHTML(x);
end;

  Now all I have to do is make an imagemap. I will look at that tomorrow when I am not tired.

David
0
nex1999Author Commented:
edey,

  This seems to work as far as making an imagemap. Your idea is good but I wonder if doing it this way will work well or not. With a delphi button you can control more aspects of the object than you can this way.
  I would like to leave the question open for a little while and maybe get more ideas.

This does work:
 
<HTML>
<HEAD>
<TITLE>Main</TITLE>
</HEAD>
<BODY>
<P><IMG SRC="Europe1999.jpg" USEMAP="#emap">
<MAP NAME="emap">
<AREA SHAPE="rect" href="PAGE2.html" COORDS="0,100, 200,150">
<AREA SHAPE="rect" href="PAGE2.html" COORDS="239,0, 440,20">
<AREA SHAPE="rect" href="PAGE3.html" COORDS="239,25, 441,47">
</MAP></P>
</BODY>
</HTML>

David
0
edeyCommented:
With the use of a separte window for each "link" (ie., a vcl button) one can gain more control, though at the expense of drasticaly greater reasource requirements.  As always, there are trade offs.  Hope you are able to find an acceptable solution -


GL
Mike
0
brainwareCommented:
nex1999 try look and mabye contact author, www.zieglersoft.dk
he Develops a Huge Components Collection, Prefessional made, i think it still costs about the $50 and i have a demo avalible u can try.. i belive u have all the controls u could possiple need to make an Application where you can make Regions for Clicking with events etc.

I baught the package a few years ago and still getting updates, and i can just say he does a good job, No sloopy codes etc.

Well just a option u have..

Regards
Michael
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nex1999Author Commented:
mike,

  Ah went that site zielersoft it is in german so i am lost on the site but I will try and email them about delphi Components Collection that does this stuff and see what happens.


Thanks again,
David
0
IndefreiCommented:
Hi, David
It's a danish site
Indi
0
nex1999Author Commented:
indefrei, Brianware, Edey,

   I know that now... I have been talking to the guy who made the site and the delphi components. I have a demo version and I like the alot. Claus Ziegler  www.zieglersoft.dk he is really cool and it only cost 52 bucks.
   I think this is my solution but I will leave it open for a few more days just incase there are any more ideas. If there is nothing even better suggested then Brainware you get the points.
   Edey you had a interesting way of solving the problem and it was for free but these components do a much better job. Thank you though for your ideas.

Thanx,
David
0
brainwareCommented:
if you buy it plz note that "BrainWare" Reffered u :) then he gets so happy hehe..
Anyways.. the site IS Avalible in English.. just click the UK Flag when page loaded :)

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.