Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 17th, 2007, 05:49 AM
Registered User
 
Join Date: May 2007
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

 
Old May 19th, 2007, 11:42 PM
Friend of Wrox
 
Join Date: Dec 2004
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
 
Old May 19th, 2007, 11:45 PM
Friend of Wrox
 
Join Date: Dec 2004
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.