Download User Manual
Transcript
4.8.2 KEY PRESSURE EVENTS These events take place when a key is pressed, the raising of the event starts the execution of the associated action (see 4.8.5) if it is. The pressure of a key can be also simulated by software, see next paragraph. 4.8.3 EVENTS RAISED BY SOFTWARE Programmer can raise events by software using the function Video_SendEvent inside the target software or in the body of the procedure, using following syntax: Video_SendEvent( event_id, param ); Where event_id is the identifier of the type of the event and param is an integer 16 bit parameter. PageLabsupports software events defined in this table: Event Parameter kWM_NULL Do not care kWM_KEY Key code Simulates the pressure of the key specified as parameter then cause the associated action if it is. Window ID Causes a system message that, once got by the system, causes the instant opening of the alarm page that has Window ID as identifier. kWM_MSG kWM_SELECT Edit box handle Description No event. In touchscreen systems simulates the pressure on the edit box whose handle is passed as parameter, causing its selection or its transition to edit mode. kWM_PUSH Button handle In touchscreen systems simulates the pressure on the button whose handle is passed as parameter, causing the execution of the associated action if it is. kEV_WM_ CHANGESETPAGE Page number Shows the page specified by the parameter (if the context is a page in which sets are used). PageLab user manual 61