English
Functions and Help

function: msg.box

 
msg.box ( cover [, Text, [ { string Button | aray Buttons }, [ string EingabefeldTextVorgabe [, @myProc ] ] ] ] )

Created a asynchrone MessageBox, it can at the same time several MessageBoxen showing.

Each MessageBox force to Interaction - at least The Zurücktaste must pressed go or it must selection met go (if Buttons showing should).

for the Ergebnisübermittlung can a Proc indicate, The then called is with Ergebnissen, when the User on The Message reacted has.

there the commands not only How MessageBox Messages Show can separate too How (of XProfan bekanntes: ) input$ on TextEingaben wait, can msg too uses go for Passworteingaben and for mehrzeilige Texteingaben.

Examples:

shows one Window with text without title bar, can only with the Zurücktaste closed go:
msg.box "Text"

a "OK"-Button add by third Parameter befüllen:
msg.box "Titel","Text","OK"

no Text and none cover separate only a OK-Button:

More than 1 Button (max. 3) Show, dritter Parameter as an array:
msg.box "Titel","Text",["OK","Abbrechen"]

cover and text and 3 Buttons:
msg.box "Text","Titel",["Knopf1","Knopf2","Knopf3"]

Input Show. 4. Parameter benefit MIT zero (no Input) or the "" (Input without Vorgabetext) or directly a Vorgabetext indicate "Vorgabetext":
msg.box "Titel","Text",["OK","Abbrechen"],"texteingabe"

the Input can different properties own. If properties for the Text box staid go should then whom 4. Parameter as an array transfer:
msg.box "Titel","Text","OK",["Vorgabetext",Stilkonstante(n)]

Stilkonstanten there many - according to Androidversion - z.B. 1 for "normaler Text" and "128" for "Passwort-Feld". Stilkonstanten are To add: 1+128 = normal Text as Passwortfeld. so there too date, E-Mail, Phone, NurZiffern, MultiLine etc... The Stilkonstanten Gibts here:  [...] 

The 5. Parameter (optional) expects a Zeiger (@) on a procedure, The then The Inputs or. Buttonwahl receiving.

example for a Input:
msg.box "Titel","Text","OK","VorgabeText",@myProc

proc myproc(btn,txt)

    print "Es watts Button "+st(btn)+" chosen and the inputted Text sounds: "+txt

endproc


one can on The myProc from "userdata" transfer, then is the 5. Parameter one aray How follows:
msg.box "Titel","Text","OK","VorgabeText",[@myProc,"spezialdaten"]

proc myproc(btn,txt,userdata)

    print "Es watts Button "+st(btn)+" chosen and the inputted Text sounds: "+txt+", übergebene userdata: "+userdata

endproc

 
01/14/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

3.335 Views

Untitledvor 0 min.
Sascha Patzsch03/23/16
iF02/23/16

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


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