Beijer Electronics (formerly QSI Corporation)
http://www.qsiforums.com/

QwertykeypadV2 Value Changed Equivalent
http://www.qsiforums.com/viewtopic.php?f=6&t=4475
Page 1 of 1

Author:  kkwon [ Thu Jul 19, 2012 7:02 am ]
Post subject:  QwertykeypadV2 Value Changed Equivalent

Hi,
Would like to use the QwertyKeypadV2 object but it lacks a value change function. I would like to echo what is typed on the QwertyKeypad in a popup edit box.

I am currently using the TextEntryPadV2 object since it has an OnChange event function I can use, but don't like the layout and appearance of the TextEntrypad.

Is there a way to make the QwertyKeypadV2 object have an event function equivalent to a OnChange
event function?

Author:  Ron L. [ Thu Jul 19, 2012 8:21 am ]
Post subject:  Re: QwertykeypadV2 Value Changed Equivalent

Here's how I might implement that. I would create a TimerV2 with the following code.

Code:
init parent := screen_1
init timertype := _tt_periodic
init timeunits := _tt_milliseconds
init timeperiod := 100

func timeout()
    if (editbox_1.Value <> qwertykeypad_1.Value) then
        editbox_1.Value = qwertykeypad_1.Value
    endif
endfunc

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/