A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Image map in a form



 
 
Thread Tools Display Modes
  #1  
Old February 21st, 2010, 08:46 AM posted to microsoft.public.access.forms
jschping
external usenet poster
 
Posts: 33
Default Image map in a form

Hi,

I am trying to create a seating application for a theater. I already created
a chart in Excel for every seat. I can save it as an image and use as the
background for my form.

I want to create a chart/form where the user clicks on a seat and a new form
pops up with that section showing the names of each person who bought that
seat. This way they can graphically see which seats are empty, and who is
seated where.

The problem is that there are over 500 seats!! I could make 500 tiny text
boxes over the image, and have their Click events coded, but that would make
me lose my mind.

Is there an easy way to code this? Could I make an image map like in an HTML
page to calculate the mouse position and use a formula to calculate which
seat it is? Is there a way to grab the relative mouse position?

I was thinking of making a text box cover each row in each section, but
that's still over 50 separate controls. I want something smarter.

Any ideas?

Thanks!!

John Schping
  #2  
Old February 21st, 2010, 11:40 AM posted to microsoft.public.access.forms
Stefan Hoffmann
external usenet poster
 
Posts: 991
Default Image map in a form

hi,

On 21.02.2010 09:46, jschping wrote:
I was thinking of making a text box cover each row in each section, but
that's still over 50 separate controls. I want something smarter.

Use a image map

Use the Mouse Move event of the image control to display status
information and the Mouse Down event for the form pop-up code.

Another solution is to use the WebBrowser control with an HTML page
containg a real image map and hook it its events. Or you may create your
own user control in C#/VB.Net and use it in your application.


mfG
-- stefan --
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.