Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 17th, 2007, 05:49 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Map image or make graphic button

Hello,

I am writing a proof-of-concept application for a PocketPC using Visual Studio 2005/Visual Basic 2005.

Any clues on how could I map an image - create hotspots which would mimic buttons when user click on them.

What I would like to do is to place a PictureBox on the form which would be the same size as the form, and on which the butons will already be drawn in some shape. After I've placed an image, I would like than to map those buttons on the image to act as standard buttons - to create an event when clicked on them.

If this cannot be solved by the whole image, is it possible just to place a background image, and somehow put graphical buttons on top (does the VB2005 supports that at all?).

Thank you for helping,
Danko

Reply With Quote
  #2 (permalink)  
Old May 19th, 2007, 11:42 PM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay... (Just a thought)

I guess, creating Hotspots are fine with HTML and Image mapping... So when it is Picture control, then, rather than going in "HotSpot" way... why don't you try with X and Y points. Just note down the X and Y co-ordinates and in the click event, just check if coords matches or are they are with the range of the country, and do the logical process when matches...

(hope this helps)

With Regards,
Raghavendra Mudugal
Reply With Quote
  #3 (permalink)  
Old May 19th, 2007, 11:45 PM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know, single X and Y will be difficult to track and click by endy user... so try making a box from it... like X, Y, X1, Y1.. so the region is more and even user gets to click on that region anywhere.

With Regards,
Raghavendra Mudugal
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make a particular (image)button on a web form fire toshi ASP.NET 1.0 and 1.1 Basics 2 June 1st, 2006 11:10 AM
Make a image button as default submit button toshi ASP.NET 1.0 and 1.1 Basics 1 June 1st, 2006 05:25 AM
Image Map? sporkman43 VB.NET 2002/2003 Basics 2 July 1st, 2004 10:59 AM
Zoom Graphic Image Button manville1369 ASP.NET 1.0 and 1.1 Professional 0 April 28th, 2004 10:30 AM
Storing Graphic Image on Sql Server kasie ADO.NET 3 March 27th, 2004 04:51 AM



All times are GMT -4. The time now is 12:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.