ctlEnterEvent. See the manual:
"The control routine CtlHandleEvent sends this event. When CtlHandleEvent
receives a ctlEnterEvent, it tracks the pen until the pen is lifted from the
display. If the pen is lifted within the bounds of a control, a
ctlSelectEvent is added to the event queue; if not, a ctlExitEvent is added
to the event queue. The penDown, screenX, and screenY fields of the
EventType structure are set appropriately for the ctlExitEvent. As well, the
data field contains the following structure: "

You can use TimGetTicks or TimGetSeconds to calculate length of  time the
button was "pressed".



Ralph

"Morten Schmidt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> I need a button to react differently, whether it is pressed in a sjorter
> time than 2 sec, or whether it is longer.
>
> I.e. a counter gets ++ if the button is pressed less than 2 secs, but
> you get a form where you can change the button text if it is displayed
> longer that 2 secs.
>
> How do I go do that?
>
> I can't figure out a timer... is it ctlEnter/ExitEvent?
>
> /morten
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to