English
Forum & Help

GUI and so

 
- Page 1 -



Torsten
Rümker
Hi,
I have me now to a couple Meet into Programming with infinityprofan plummeted (I übertreibe!) and be now so a little bit on the try.

The following have I so 1 To 1 from the reference for gui übernommen, and if I the everything correctly. understand ought to so supra right on the display Hello World as Text attend.
does But not, my try single boxes one Grids motley To make haven't functions. (sowohl on my Galaxy Alpha, as well as on my yoga Tablet 2)
cls
var myGrid=gui(gui.grid,gui.hwnd,[3,3])
var myGrid2=gui(gui.grid, [myGrid,2,2],[6,3])
var myTxt=gui(gui.Text, [myGrid,3,1], "Hallo world!")

proc event id data

    // End of program with Zurückbutton
    case id==1 : end

endproc


now position itself me The question, lying it on the Code or with empty Geräten?
And if it on the code lying, what make I wrong?

would be nice if someone NEN Denkanstoß for me had.
Greeting
Torsten
 
XProfan X2
Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
11/15/15  
 



« this Posting watts as Solution marked. »

- Page 1 -



HofK
yet without gui in the Beta november

see  [...] 

under the graphic The ? row to whom + Lines

Something like  [...] 
goes already!
 
11/15/15  
 



 
- Page 1 -


Hello Torsten!

I need yet 2/3 Compiler-Updates, so The Language ansich too dependable is.

then can I The function gui again implementieren.
 
11/15/15  
 




HofK
be straight thereby the book  [...]  from the Prerelease april 2015 on the stood the Beta To raise and the updating soon then for Buyer online To to put.

These receive any Updates to buy Yes free. 

too thereby can not yet each thing for good his. particularly gui remaining mere hypothetisch and useful not examined.

Problematisches becomes but in the Beta highlighted and later adjusted.

its hold in the flow.
 
11/15/15  
 




Torsten
Rümker
Jap, is hold Beta, there come yet Changes. the heard Yes moreover.
Why I simply not virtual have with my mail is Yes very the.


what difficult at try is, is Yes even, the one not always white has one now something wrong made, or functions the (yet) not so How one think.

z.B. if I write:
var infos = device()
var anz = len(infos)
var z
var comparison

while z < anz

    z = z + 2
    comparison = st(infos, z)
    Print "Durchlauf: " + z
    Print "Wert: " + comparison

    if comparison = "[batterylevel]"

        print "Batterieladung: " + st(infos, z + 1)
        break

    EndIf

    sleep 250

wend

print "Ende"

and the program not possible in The while schleife, Why it if no Error gemeldet becomes?

my Schlussfolgerung after I one
print "Wert " + anz

to the while written have, something works with len(infos) not because the worth anz as "undefinded" outputted becomes.
And then goes it again of in front go, lying it on me or on the Beta-Stadium?

therefore I will now before I you moreover belästige ersteinmal in detail reading.

Greeting
Torsten
 
XProfan X2
Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
11/15/15  
 




Torsten
Rümker
Klaus Hoffmeister (15.11.15)
be straight thereby the book  [...]  from the Prerelease april 2015 on the stood the Beta To raise and the updating soon then for Buyer online To to put.


so well How bought.
thanks for Info.
 
XProfan X2
Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
11/15/15  
 



device() supply one assoz. aray,

simply:

print device()

or

print device().batterylevel

or

device()["batterylevel"]
or

var d=device()

print d.batterylevel

or

print d["batterylevel"]
particularly what variables concerns etc. and Arrays be I but grade on the code - such items can I then first evaluate.
 
11/15/15  
 



Nochwas To sleep How You it uses:  [...] 


deference: integrally like with windows has then the program too no Time for Show. in example go too Print-expenses first outputted if the Hauptthread idle is and accordingly too print "Hallo Welt" with anschließendem sleep 5000 The Print-spending first to 5 sec shows.


your Sleep is on this place not meaningfully, sleeps in the Hauptthread always avoid - rather procs time.
 
11/15/15  
 




Torsten
Rümker
iF (15.11.15)
device() supply one assoz. aray,

Jap, and so is my Program as ganzes relatively futile, but nevertheless should still too The function len() a worth from even this aray supplying or?
Perhaps understand I assoz(iative?) Arrays too simply wrong.

iF (15.11.15)
your Sleep is on this place not meaningfully, sleeps in the Hauptthread always avoid - rather procs time.

clear, was spare stayed circa me Time To verschaffen each expenses To reading, before the screen deleted becomes, what both in the actually code not any more drin standing, and accordingly really complete unnecessary is.
 
Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
11/15/15  
 



Torsten Rümker (15.11.15)
Perhaps understand I assoz(iative?) Arrays too simply wrong.


in the contrary.

len(["a"=10,"b"=20]) should 2 zurückliefern very How len([10,20]), len(device()) properly many Entries.

I fummle momentarily on whom Arrays.
 
11/15/15  
 



 
- Page 2 -



HofK
VORSICHT:

if comparison = "[batterylevel]"

= is Zuweisung

== is the Vergleichsoperator, How Java
 
11/15/15  
 



and === jibs too yet...
 
11/15/15  
 




Torsten
Rümker
[OFFTOPIC]ought to the Topic not as Done markiert his if I a entry as Solution markiere?[/OFFTOPIC]
 
XProfan X2
Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
11/16/15  
 



[OFFTOPIC]No, are purposely 2 independent Stati.[/OFFTOPIC]
 
11/16/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

17.294 Views

Untitledvor 0 min.
Sascha Patzsch03/24/16
Micha1233402/15/16
iF01/22/16
EvoEx01/05/16
More...

Themeninformationen

this Topic has 3 subscriber:

Torsten Rümker (6x)
iF (6x)
HofK (3x)


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