| View previous topic :: View next topic |
| Author |
Message |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Wed Jun 23, 2010 12:37 pm Post subject: Bitmap Dblclick event *SOLVED* |
|
|
Hi Guyz,
I need to control a dblclick event in a bitmap element, how I can make it?
Many tnx in advance for any help
Bye
Last edited by Tdk161 on Wed Jun 23, 2010 7:37 pm; edited 1 time in total |
|
| Back to top |
|
 |
uvedese Contributor


Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Wed Jun 23, 2010 3:01 pm Post subject: |
|
|
Hi Tdk161
I tried a solution and it works fine. It works in VDS6. You can adapt it to work in VDS5:
| Code: | option decimalsep,.
dialog create,RClick in a Bitmap,-1,0,240,160
dialog add,bitmap,bitmap1,64,106,32,32,bitmap.bmp,,CLICK
dialog show
%%x1 =
%%y1 =
%%second = .5
rem ONLY FOR VDS6 *********************
%%timesep = @fdiv(%%second,84600)
:bucle
wait event
%e = @event()
goto %e
:Timer1CTDOWN
%%x1 =
%%y1 =
timer stop,1
rem SIMPLE CLICK
info Hi! You clicked me
goto Bucle
:Close
exit
:bitmap1CLICK
parse "%x;%y",@click(XY)
if @null(%%x1)
%%x1 = %x
%%y1 = %y
timer start,1,ctdown,%%timesep
else
if @both(@equal(%x,%%x1),@equal(%y,%%y1))
rem Dblclick
info Wow! Double click in me
%%x1 =
%%y1 =
while @event()
wend
end
end
goto Bucle |
Good luck!
___________
uVeDeSe
___________
Last edited by uvedese on Sat Jun 26, 2010 8:34 pm; edited 1 time in total |
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Wed Jun 23, 2010 5:05 pm Post subject: |
|
|
Many tnx Uvedese
I will try it in my script
Byez |
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Wed Jun 23, 2010 7:37 pm Post subject: |
|
|
Work!!
and work fine
Many thanks Uvedese |
|
| Back to top |
|
 |
uvedese Contributor


Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Wed Jun 23, 2010 7:48 pm Post subject: |
|
|
I'm glad to help you  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|