comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Generating events while a button is pressed
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Generating events while a button is pressed [message #6248 is a reply to message #6245] Mon, 13 May 1996 00:00 Go to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <31973A26.167E@irc.chmcc.org>, Phil Williams <williams@irc.chmcc.org> writes:
> I hope someone out there can give me a hand with this one.
>
> I want to have a widget_button that generates events while the button
> remains pressed (sorta like the action of DRAG on a widget_slider) so
> that I can scroll through a stack of data, say.

I can think of one way to do it:

1) Detect button press event, program enters "scroll mode"
2) Set a timer widget for a fraction of a second. On every timer widget
event do your "scroll" action, and set the timer widget again.
3) On button release event, cancel timer event and exit "scroll mode".

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Parameter Passing - Error in doc ?
Next Topic: IDL DLLs built with VC++

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 01:27:21 PDT 2025

Total time taken to generate the page: 0.55920 seconds