| View previous topic :: View next topic |
| Author |
Message |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Mon Sep 16, 2002 1:20 pm Post subject: Hotspot on graphic |
|
|
DIALOG ADD,BITMAP,BITMAP1,1,0,406,199,justin.bmp
If the above bitmap is 406 x 106...how can multiple hotspots and/or click events be added to specific locations on the graphic?
Thank you for all feedback.
Jennefer with noveltech |
|
| Back to top |
|
 |
Que Valued Newbie

Joined: 25 Aug 2001 Posts: 38 Location: Newaygo, MICH
|
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Mon Sep 16, 2002 3:17 pm Post subject: |
|
|
Here's how I do it...
In VDS 4 I use the transparent style for the TEXT dialog element with no text just a region, it works perfectly..
| Code: | DIALOG CREATE....
DIALOG ADD, BITMAP,.....
DIALOG ADD,TEXT,Test,327,140,57,29,,MyTooltip,transparent,click,hand
:TestCLICK
info Hello
goto evloop |
Hope this helps... |
|
| Back to top |
|
 |
Que Valued Newbie

Joined: 25 Aug 2001 Posts: 38 Location: Newaygo, MICH
|
Posted: Mon Sep 16, 2002 3:29 pm Post subject: |
|
|
well there ya go. I might just use that myself now that I realize it's THAT easy (I use 4.5 myself).
thx. _________________ Que |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Sep 16, 2002 5:25 pm Post subject: |
|
|
Besides using a text element, you can use another bmp element without
pointing to any bmp and use it the same manner as the text element.
-Garrett |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Mon Sep 16, 2002 9:26 pm Post subject: Thank You! |
|
|
| Thank you guys for all your help and assistance. It's working. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Sep 17, 2002 5:34 pm Post subject: |
|
|
| You can also give the bitmap a click style, and then use @click() to retrieve the position. Then, use if @both(@greater(@click(x),90),@greater(150,@click(x))). The same for the Y positions... Then you have a multiply click bitmap, without the use of any dll... I think it is only handy in vds 3.51, because 4.* has a transparant style... |
|
| Back to top |
|
 |
|