English
Functions and Help

function: event

 
- Page 1 -


proc event ( long id [, { long data | aray data } ] )

function event becomes called, once one globales Event appears How z.B. pressing of Systemtasten or one Error.

example:
proc event id dta

    case id==event.backkey : end//back button
    print "Event:"+id
    case dta : print dta
    case id==event.error : msg.box "ERROR #"+dta["nr"]+": "+dta["msg"]

endproc


Overview the Event-IDs:

User-IDs should always small -1 his.

-1: ERROR, one Systemfehler is aufgetreten:
data["nr"] and data["msg"] hold genauere Fehlerinformationen ready
1: Zurücktaste (hardware o. Softbutton) watts betätigt
2: Menütaste (hardware o. Softbutton) watts betätigt


Events for keyboard:

100: Button watts pressed, Tastencode in data
101: Button watts losgelassen, Tastencode in data


Events for mouse/ Fingerberührung on screen:

200: fingers/mouse on display staid
201: fingers/mouse on display moving
202: fingers/mouse of display removes

In Data finds itself each 1 assoziatives aray with subesquent Schlüsseln:

long p = pointer = fingers (ID one Fingers, 0..x)
float x = position on screen
float y = position on screen
float press: Druckstärke, with Fingern mostly 1.0
float size: The Aufdruckgröße
string devicename: Bezeichnung the Stiftes, something like How "sec_e-pen" with Pens or or "sec_touchscreen" with fingers
long deviceid = eindeutige Gerätenummer The to Neustarts but differently his can
string device = eindeutige GeräteID also Neustarts übersteht




1000: Resume, The APP watts again into Vordergrund gotten
1100: Fokusänderung, according to Data whether APP again whom Fokus has or it lost has about because of operating the Vorhanges etc.
1200: Konfigurationsänderung in the unit: Bildschirmrotation or Auflösungsänderung or Hardwaretastatur on- /abgesteckt - ggf. see assoziatives aray data.
1250: screen watts one- or off according to data.


example:
proc event

    if id == 1

        print "Zurücktaste pressed!!!"

    elseif id == 2

        print "Menütaste pressed!!!"

    elseif id == -1

        msg(0,"Error aufgetreten",data)

    else

        print "Diese ID isn't definiert: ",id

    endif

endproc


3000: GPS-position or accuracy has changed, see assoziatives aray in data: lists, found, latitude,longitude,altitude, accuracy, bearing, speed, provider.


4000: battery-Information having itself changed. Erweiterte Batterieinformationen with function device() relating!


5000: unit becomes heruntergefahren, whether Neustart standing in data
5100: unit Dockingstation-Event.


6000: One- or Ausgehender call, see assoziatives aray in data.


7000: Meldet, if one asynchroner http-Download, which Content not on a Proc separate in a File detoured go should, is done.


8000: process one Textfeldes or one Buttons.


Keywords: event,onbackpressed,onerror,onmenupressed,onkey,mouse,ontap,fingers, battery, phonestate

 
01/16/15  
 



 
- Page 1 -


New Event:

3000: GPS-position or accuracy has changed, see assoziatives aray in data: latitude,longitude,altitude, accuracy, bearing, speed, provider.
 
01/26/15  
 



New Event:

4000: battery-Information having itself changed. Erweiterte Batterieinformationen with function device() relating!
 
01/31/15  
 



2 new Events:

1250: screen watts one- or off according to data
 
01/31/15  
 



3 new Events:

5000: unit becomes heruntergefahren or new launched according to data
5100: unit Dockingstation-Event.
 
01/31/15  
 



New Event:

6000: One- or Ausgehender call, see assoziatives aray in data for phone number and status.
 
02/04/15  
 




HofK
with event are The Konstantenbezeichnungen possible not 100% clear.

therefore first once one suggestion:

event.error = -1
event.backkey = 1
event.menukey = 2
event.keydown = 100
event.keyup = 101
event.touchdown =200
event.touchmove = 201
event.touchend = 202
event.resume = 1000
event.focus = 1100
event.config = 1200
event.display.on = 1250
event.display.off = 1251
event.gps = 3000
event.battery = 4000
event.shutdown = 5000
event.reboot = 5001
event.docking = 5100
event.phonecall = 6000
 
03/04/15  
 



Hm means I find The super,
what übersehe I?
 
03/04/15  
 



 
- Page 2 -


New: (first to nächstem Update available!)

event.asynchttpmsg = 7000

Meldet, if one asynchroner http-Download, which Content not on
a Proc separate in a File detoured go should, is done.
 
11/05/15  
 



New:

there now var(variable) whom Variablentypen supply,
these a further Line in The event:
CompileMarkSeparation
CompileMarkSeparation
proc event id data

    // with this a new additional row..
    case var(id)=="string" : return msg msg.notification id

    if id==event.error// this is on error!

        print "ERROR"
        print data

    elseif id==event.backkey// this is back button

        end

    else

        //print "Event:"+id
        //case data : print data

    endif

endproc


itself quick and simply a function "debug" written namens
"event":
CompileMarkSeparation
print "ok"
event("hat ok geschrieben")
print 10*20
event("funktioniert too!)

The contents wander so into curtain - useful!
 
11/12/15  
 



event.display.on and event.display.off abstracted To event.display

whether on or off in data

event.reboot and event.shutdown abstracted To

event.shutdown

whether reboot in data
 
11/16/15  
 




HofK
with event can very simply and clear a adjust, situationsbezogene Gestensteuerung release.

See View source  [...]  to that example gps-track  [...] 
 
12/21/15  
 



New: event.button = 8000

process one Textfelders or one Buttons - genaueres in data.ctrl and data.state.
 
02/28/16  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

18.719 Views

Untitledvor 0 min.
Member 171684402/10/22
Micha1233405/18/16
AndreasS05/17/16
Nelofa04/26/16
More...

Themeninformationen

this Topic has 2 subscriber:

iF (15x)
HofK (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie