Home » Developer & Programmer » Forms » Dynamic Push of a Button.....Help?
Dynamic Push of a Button.....Help? [message #164594] Fri, 24 March 2006 03:52 Go to next message
ramisy2k
Messages: 150
Registered: April 2005
Senior Member
Hello,

I am trying to achive something that is I believe possible in some way but unable to figure out how, as yet..

I am sure some Gurus here would have solution for it..

I have a Push Button and on WHEN-BUTTON-PRESSED trigger, I decrease the value of an item from the previous value by one i.e. :ITEM_A_VALUE - 1

So on each seperate push of the button te value is decreased one by one

For example the value in item is 2000 
  so,     2000 - 1    ====>    one first push of the button
           1999 - 1    ====>    one 2nd push of the button
           1998 - 1    ====>    one 3rd push of the button
           1997 - 1    ====>    one 4th push of the button
           1996 - 1    ====>    one 5th push of the button
and so on..


my problem is that, to reduce the value to 5 points, I have to press the button five times. this is not what i want. I want a dynamic functionality..I want to push the button once and while holidng the left mouse button (when-mouse-down) i want the values to reduce one by one automitically as soon as i keep the left mouse button down (or pushed).

can this be achaived in Forms 6i
does any kind of timer is needed here??
I would appreciate if some one helps me to do this...

best wishes
regards
Asim.

Re: Dynamic Push of a Button.....Help? [message #164598 is a reply to message #164594] Fri, 24 March 2006 04:36 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
You could try with a timer and a WHEN-TIMER-EXPIRED trigger.

MHE
Re: Dynamic Push of a Button.....Help? [message #164693 is a reply to message #164594] Fri, 24 March 2006 14:41 Go to previous message
M0nst3r
Messages: 38
Registered: February 2006
Location: Wherever the Money Is
Member
Try Maaher's suggestion in combination with the WHEN-MOUSE-DOWN and WHEN-MOUSE-UP item-level triggers.

I haven't tried this trick, let us know if it works.
Previous Topic: Forms 10g
Next Topic: cursors
Goto Forum:
  


Current Time: Fri Sep 20 08:37:28 CDT 2024