Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image where I can click on portion
Message
From
10/03/2016 16:18:31
 
 
To
10/03/2016 14:11:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01632806
Message ID:
01632813
Views:
74
Hi Denis
you can divide your original photo in many small rectangular and independent zones and superpose on each zone a shape named
sh1,sh2,.....shn.these shapes are opaque in design time (readable) but transparent at runtime (setall+backstyle property=1,0)
create a table dbf with for ex this structure: (zone i,img c(30),info m)-can add others fields...
and then for each zone you prepare a photo zooming this part...store images in a folder images and report each
image location in the field img each zone can be documented in the info memo in the table.

build a form with main image, a control image to view any zone and an editbox to read info memo.
note:memo can be read in editbox, richtextbox or even a browser IE.

clicking on any shape of the main image you fire its image+info in same form+maybe another things
you want to show (these must be in table).
you can change the backcolor of the shape clicked or restore it, add colored border or no for ex or make a small move.make hand hotspot at mouseEnter and mousepointer=0 when mouseleave...
in mouseEnter/mouseleave event.
can use a shape class to encapsulate definition+procedure click or bindevent for all shapes in a loop(form.init).
can use a listbox or grid to build with the zones numbers 1,2,....n of shapes.clicking on any number you color the
relative shape on the main image.

can see this link for analogic idea :http://www.crwflags.com/fotw/flags/fr%28dep.html
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform