English
Examples

area of the circle

 

HofK
Importent Info!
The subesquent Posts relating itself on ursprüngliche versions of AndroidProfan/Infinity-Profan from the year 2015 and are so with regard to content/syntaktisch antiquated and accordingly not run. (15.01.2016)


_____________________________________________________________

Musste simply time dry testing, How AndroidProfan - new name Infinity-Profan - itself so coded.
In of my Programmiersteinzeit durfte I in tidy large Druckbuchstaben one Programmformular describe. And then to persönlicher submitted one, two days on The long gedruckte Fehlerliste Waiting.
The Steinzeitheimwerker mussten indeed with 'nem Faustkeil cope.

now integrally soft typed and by network in any world common. time see, what nowadys so zurückkommt.

first local: tidy tabuliert (comes in the Codebox not fully rüber) is the clear.
might me saponaceous so make friends and if need be on The Beginner api dispense.

Update:
See IF-Fehlerfindung under, but well still bestanden? so itself Error not get around, have I tappt im dunkeln markiert and correct. the Pi sooo long is - hereon entrapment I guaranteeing again mere.

The colours I had aware time rgb() and times as Konstanten in Internetfarben #hexhexhex indicated. moreover I had yet nothing näheres discover or overlooking ($ Notation).
would be but useful, The HTML- Notation optional benefit to.

Update: code null
there The Syntax for gui changed watts is the code null. becomes soon on the actually stood brought.
is results, see below.
 

area of the circle

// Program area of the circle
var  headl = "Das first AndroidA Program
var  stat  = "Status: Kreis"
var  kfl   = 0.0
var  grg   = gui( gui.add, gui.grid, gui.hwnd, [3,4] )// GrundRasterGrid
var  h_txt = gui( gui.add, gui.Text, grg[2,1], headl )// Textcontrol for Headline settle
var  m_txt = gui( gui.add, gui.Text, grg[2,2], kfl )// Textcontrol Hauptzelle
var  s_txt = gui( gui.add, gui.Text, grg[2,3], stat )// Textcontrol for internen status
//----------------------------------------------------
gui  gui.mod, gui.bgcolor,   gui.hwnd, rgb(192,192,192)// primitive colour silver (dezent gray)
gui  gui.mod, gui.width,     grg, [8,84,8]// Spaltenbreiten prozentual
gui  gui.mod, gui.height,    grg, [12,70,10,8]// Zeilenhöhen prozentual
gui  gui.mod, gui.textcolor, h_txt, rgb(150,191,61)// Headline in androidem green #96bf3d
gui  gui.mod, gui.bgcolor,   grg[2,2], rgb(255,255,155)// Hauptzelle gelblich
gui  gui.mod, gui.bgcolor,   grg[2,3], $e7e7e7// Statuszelle hellgrau
gui  gui.mod, gui.textcolor, s_txt, rgb(255,0,0)// roter Statustext
msgbox 0,"Radius","Kreisberechnung","OK","1.0",kflaeche// Interaction input
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

proc kflaeche(txt)

    // wrong:    kfl = math.pi*(float(txt))^2
    kfl = math(math.pi)*float(txt)^2// corrections IF
    // wrong:  gui  gui.Text, m_txt, "Die area of the circle totals\nA = " + st(kfl)
    gui  gui.mod, gui.Text, m_txt, "Die area of the circle totals\nA = " + st(kfl)// ... spending

endproc

 
02/04/15  
 



small Error see I immediate:

kfl = math.pi

should kfl = math(math.pi)*float(txt)^2

otherwise: Muahahha!

#96bf3d is neither correctly., correctly. would $3dbf96.

but not gui gui.Text, m_txt ists sooner gui gui.mod,gui.Text, m_txt
 
02/04/15  
 




HofK
The Syntax-Changes concerning gui are well "durch" and really need one only the gui.add and gui.mod rauszulöschen. so becomes it yet übersichtlicher!

Update: 10.02.
so itself my code-Schlampereien not festsetzen have I The corrections of IF (see below) umgesetzt.
hopefully now fehlerfrei. have Yes yet no Debuggingchance.
CompileMarkSeparation
// Programm Kreisfläche
var  headl = "Das erste AndroidA Programm"
var  stat  = "Status: Kreis"
var  kfl   = 0.0
var  grg   = gui( gui.grid, gui.hwnd, [3,4] )// GrundRasterGrid
var  h_txt = gui( gui.text, [grg,2,1], headl )// Textcontrol für Überschrift setzen
var  m_txt = gui( gui.text, [grg,2,2], kfl )// Textcontrol Hauptzelle
var  s_txt = gui( gui.text,  [grg,2,3], stat )// Textcontrol für internen Status
//----------------------------------------------------
gui gui.bgcolor,   gui.hwnd, rgb(192,192,192)// Grundfarbe silver (dezent grau)
gui gui.width,     grg, [8,84,8]// Spaltenbreiten prozentual
gui gui.height,    grg, [12,70,10,8]// Zeilenhöhen prozentual
gui gui.textcolor, h_txt, rgb(150,191,61)// Überschrift in androidem Grün
gui gui.bgcolor,   [grg,2,2], rgb(255,255,155)// Hauptzelle gelblich
gui gui.bgcolor,   [grg,2,3], $e7e7e7// Statuszelle hellgrau
gui gui.textcolor, s_txt, rgb(255,0,0)// roter Statustext
msgbox 0,"Radius","Kreisberechnung","OK","1.0",kflaeche// Interaktion Eingabe ...
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

proc kflaeche(btn,txt)

    kfl = math(math.pi)*float(txt)^2
    gui gui.text, m_txt, "Die Kreisfläche beträgt\nA = " + str(kfl)// ... Ausgabe

endproc


iF (04.02.15)
but not gui gui.Text, m_txt ists sooner gui gui.mod,gui.Text, m_txt


what to the previous Syntax wrong was could now voices? Have I there what geahnt???
 
02/09/15  
 



Yes, have You.

i'll today evening (if I on the PC sit) the program time
einspielen and ablichten!
 
02/09/15  
 



so, be strain dran...

ah,...
var h_txt = gui( gui.Text, grg[2,1], headl )
correctly. is:
var h_txt = gui( gui.Text, [grg,2,1], headl )


because grg is a lever and no aray
here too:
gui gui.bgcolor, grg[2,2], rgb(255,255,155)
correctly. is:
gui gui.bgcolor, [grg,2,2], rgb(255,255,155)


another small bow:
proc kflaeche(txt)
correctly. is:
proc kflaeche(btn,txt)


but now...




 
02/09/15  
 




HofK
The "Programmierer-Benchmark" application -Kreisberechnung- is on Java-Page too one Piece vorangekommen.  [...]  with wichtigstem Source and apk.

is sure not yet the last stood. should but Anfängerniveau for Java and AndroidProfan keep and vergleichbar his. therefore too weitestgehende Abstinenz of xml.

Designproblem?

in the application -Kreisberechnung- is with Android Java and AndroidProfan one for the Hochformat gedachtes simple Grid created. turn one now into Landscape, becomes with Java, if one No further institutes power, simply under cut. with AndroidProfan go The Lines if one prozentual operates z.B. gequetscht.

both behaviors can To Problemen lead. therefore there with Android Java Yes relatively complicated Layouts and things How Fragmente - z.B. right well described (german)  [...]  speziell [...]  (Image Page 2 shows the trouble) and  [...]  (Image Page 4 shows whom Lösungsansatz)

the eigentliche trouble are but the very different large Displays.

might one such a thing ähnliches as with the spreadsheet analysis with very large tables very useful is implementieren? one gives a slot or row or cell (for slot and row) to, ex the the Grid (but dependent upon one vorzugebenden Bildschirmmaß) on of/ one new "Seite" displayed becomes, everybody can through wischen right or under access. so How one by the gallery or whom Calendar wischt. with 'nem symbol V or, > could one Verfügbares intimate.

i'm clear, that there yet More Problems dranhängen, should only one Denkanstoß his. Perhaps there Yes yet something Intelligenteres or is already in work?
 
02/09/15  
 



The thing is that I in AndroidProfan The cell wischbar made have,
presumably so many Problems not at all first come into being.

adopted want a 50it Kopfleiste and a 50it Fußleiste and the middle a
drittel Tonne Text, then say simply:

height...[50,zero,50]
and pappst simply whom Text into middle and is done the Döner because The
middle will adjust dank Size zero and there tappt im dunkeln automatically scrolls
ifs with the Space not ausreicht is the Layout already ready.

and whether of/ one rumwischt can ohnehin by Event discern and then
hereon react. see You there yet apertured Problems?
 
02/09/15  
 




HofK
to that abgelichteten Program:

"var h_txt = gui( gui.Text, grg[2,1], headl )
correctly. is:
var h_txt = gui( gui.Text, [grg,2,1], headl )

because grg is a lever and no Array"

there i was still To quick drüber, that the lever into Klammer heard mussich me dran gewöhnen, is then a good distinction with whom many [ ... ]
the new with the btn Have I straight gecheckt and into in work located AndroidProfan application -Kreisberechnung- installed.
 
02/09/15  
 




HofK
iF (09.02.15)
... see You there yet apertured Problems?


there must I time drüber sleep. The Problems come eh first always with the virtually work. was only so 'ne Idea because of the Ergebnises "ohne Aufwand" with Java.
 
02/09/15  
 



only on the side:

Klaus Hoffmeister (09.02.15)
in the application -Kreisberechnung- is with Android Java and AndroidProfan one for the Hochformat gedachtes simple Grid created.


one can in AndroidProfan the display slight festsetzen on Hochformat
by: display(display.rotation,display.rotation.top)

now turn itself nothing more.

Aufhebung with display(display.rotation,display.rotation.sensor)
 
02/10/15  
 



Klaus Hoffmeister (09.02.15)
turn one now into Landscape, becomes with Java, if one No further institutes power, simply under cut. with AndroidProfan go The Lines if one prozentual operates z.B. gequetscht.


and here The Landscape-Screenshots The I you not vorenthalten wished:




 
02/10/15  
 




HofK
Designproblem?

iF (09.02.15)
and whether of/ one rumwischt can ohnehin by Event discern and then
hereon react. see You there yet apertured Problems?


Klaus Hoffmeister (09.02.15)
there must I time drüber sleep.


have two Nights drüber slept, something gelesen [...] 
and a bisschen video geschaut [...] 
as well as time consider, what accurate I there "im Kopf" having.

concise To "Papier" (2 pdf) brought:

 
02/11/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

28.839 Views

Untitledvor 0 min.
DB HoKi02/28/20
Thomas Freier07/21/18
OliverJung03/11/18
bloniTec08/30/16
More...

Themeninformationen

this Topic has 2 subscriber:

HofK (23x)
iF (18x)


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