English
Functions and Help

function: event

 
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  
 



2 new Events:

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.
CompileMarkSeparation
proc event(id,data)

    if id==1000

        print "willkommen zurück!"

    elseif id==1100

        if data==true

            print "Fokus wiedererlangt"

        else

            print "Fokus verloren"

        endif

    endif

endproc

 
01/18/15  
 



2 new Events:

100: Button watts pressed, Tastencode in data
101: Button watts losgelassen, Tastencode in data
 
01/18/15  
 



3 new 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 to Neustarts übersteht
 
01/20/15  
 



New Event:

1200: Konfigurationsänderung in the unit: Bildschirmrotation or Hardwaretastatur infected - see assoziatives aray data.
 
01/24/15  
 



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  
 




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.851 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