473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Cannot remember name of tool (mapping?)

Help me out guys. Most of my work is db-oriented. I am not used to doing graphics.

I remember seeing a demo of a system that allowed the mapping of irregularly shaped areas (hotspots? mapping?) on a static image. These hot spots acted like controls or triggers. I just can't remember which technology it was in. Is there anything like that in VB.Net? (If I do anything at all with this, it will be in a Winforms app.)

Thanks.
Nov 20 '05 #1
7 974
Hi B

A good newsgroup for what you ask is
microsoft.public.dotnet.framework.drawings

Maybe you find your answer quicker there?

Cor
I remember seeing a demo of a system that allowed the mapping of irregularly shaped areas (hotspots? mapping?) on a static image. These hot
spots acted like controls or triggers. I just can't remember which
technology it was in. Is there anything like that in VB.Net? (If I do
anything at all with this, it will be in a Winforms app.)
Thanks.

Nov 20 '05 #2
* "=?Utf-8?B?Qi4gQ2hlcm5pY2s=?=" <BC*******@discussions.microsoft.com> scripsit:
I remember seeing a demo of a system that allowed the mapping of
irregularly shaped areas (hotspots? mapping?) on a static image. These
hot spots acted like controls or triggers. I just can't remember which
technology it was in. Is there anything like that in VB.Net? (If I do
anything at all with this, it will be in a Winforms app.)


I am not sure what exactly you want to do, but you can create a region
of appropriate shape (from a 'GraphicsPath') and assign it to a
control's 'Region' property at runtime.

\\\
Imports System.Drawing.Drawing2D
..
..
..
Dim p As New GraphicsPath()
p.StartFigure()
p.AddArc(New Rectangle(0, 0, 40, 40), 180, 90)
p.AddLine(40, 0, Me.Width - 40, 0)
p.AddArc(New Rectangle(Me.Width - 40, 0, 40, 40), -90, 90)
p.AddLine(Me.Width, 40, Me.Width, Me.Height - 40)
p.AddArc(New Rectangle(Me.Width - 40, Me.Height - 40, 40, 40), 0, 90)
p.AddLine(Me.Width - 40, Me.Height, 40, Me.Height)
p.AddArc(New Rectangle(0, Me.Height - 40, 40, 40), 90, 90)
p.CloseFigure()
Me.UserControl1.Region = New Region(p)
Me.BackColor = Color.Red
p.Dispose()
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
Hi Herfried,

I think you are almost there, now only the events for every part of the map.
(It is a standard HTML part as you probably know)

:-)

Cor
\\\
Imports System.Drawing.Drawing2D
.
.
.
Dim p As New GraphicsPath()
p.StartFigure()
p.AddArc(New Rectangle(0, 0, 40, 40), 180, 90)
p.AddLine(40, 0, Me.Width - 40, 0)
p.AddArc(New Rectangle(Me.Width - 40, 0, 40, 40), -90, 90)
p.AddLine(Me.Width, 40, Me.Width, Me.Height - 40)
p.AddArc(New Rectangle(Me.Width - 40, Me.Height - 40, 40, 40), 0, 90)
p.AddLine(Me.Width - 40, Me.Height, 40, Me.Height)
p.AddArc(New Rectangle(0, Me.Height - 40, 40, 40), 90, 90)
p.CloseFigure()
Me.UserControl1.Region = New Region(p)
Me.BackColor = Color.Red
p.Dispose()
///

Nov 20 '05 #4
* "Cor Ligthert" <no**********@planet.nl> scripsit:
I think you are almost there, now only the events for every part of the map.
(It is a standard HTML part as you probably know)


I am not sure what you want to tell me. You can use mutliple controls
for the different parts of the map.

In HTML you could use an imagemap ('map', 'area').

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
>
I am not sure what you want to tell me. You can use mutliple controls
for the different parts of the map.

In HTML you could use an imagemap ('map', 'area').


How do I get the right events when you click on your regions, because that
is the difficult part in my opinion.

(Do not take it serious)
:-)

Cor
Nov 20 '05 #6
* "Cor Ligthert" <no**********@planet.nl> scripsit:
I am not sure what you want to tell me. You can use mutliple controls
for the different parts of the map.

In HTML you could use an imagemap ('map', 'area').


How do I get the right events when you click on your regions, because that
is the difficult part in my opinion.


If you create controls and assign regions to it, you will still receive
events on "per region" basis.

Alternatively, you could store a list of regions and use their
'IsVisible' method to check if a point lies inside a specific region.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #7
Thanks to everyone for the response. I will try the drawing forum.

(It is possible that I am thinking of an HTML technique. What I want to do is create multiple irregularly shaped areas at design time. It would be impractical to create a separate custom control for each area on the form.)

"Herfried K. Wagner [MVP]" wrote:
* "Cor Ligthert" <no**********@planet.nl> scripsit:
I think you are almost there, now only the events for every part of the map.
(It is a standard HTML part as you probably know)


I am not sure what you want to tell me. You can use mutliple controls
for the different parts of the map.

In HTML you could use an imagemap ('map', 'area').

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: arbpen2003 | last post by:
This is driving me crazy. The markup is valid, the CSS is valid, I'm serving it right, and I still cannot figure out why I cannot get the cursor into the form element. I have tried on Opera,...
26
by: temp | last post by:
Hi, My boss is asking me to generate a column mapping report of all the queries. Basically, we get our data from ORACLE. There's a queary that create new table from ORACLE tables. Then, there...
70
by: jojoba | last post by:
Hello! Does anyone know how to find the name of a python data type. Conside a dictionary: Banana = {} Then, how do i ask python for a string representing the name of the above dictionary...
0
by: shaily | last post by:
hi I have a java web service called "Registration service" and C# client which is a consumer of that service java web service running under Tomcat has following interface API exposed ...
5
by: Masso | last post by:
Hallo to the group, my question is this: where i have to set timeout in a web application? If i set into sessionState with property Timeout="60", after 20 minutes the session is over. Always...
1
by: ronchese | last post by:
Hello All. I'm trying to remember a .NET open source tool name, but I can't!! :P That tool does the following: - allow us specify a file or a text to import to its own storage; - once the...
0
by: George2 | last post by:
Hello everyone, I found using performance counter API and using perfmon counter will result in different numeric result. Here is an example, and in the example code, virtual bytes is always...
0
by: wundertier | last post by:
Hi, I'm searching for a software tool/framework/VisualStudio addin which I came across some time ago. Unfortunately I don't remember its name or an URL or anything ... It does the following:...
2
by: David Thielen | last post by:
Hi; I have a small XML file that I need to read/change from my app. Is there some easy way to map from XML to my objects so I can just read it in to my objects, change the objects as needed,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.