English
Functions and Help

§60 - GUI, expenses, draw and colours

 
§60 - GUI, expenses, draw and colours

GUI-command, functions and Erläuterungen to Arbeitsweise of Infinity-Profan with Windows and Controls.
 
12/23/14  
 




H.Brill

CompileMarkSeparation
var h=createmenu("left","bottom")
>

would be it there not rather, The Konstanten
left, right, top and bottom OHNE " " To
implementieren ?
CompileMarkSeparation
The " would I your place solely
whom Stringliteralen or. Stringvariablen zuordnen.
it could Yes time thoroughly his, that one with
whom Konstanten calculate wants :
z.B. : left + 10
the then the menu 10 Pixel next to the left
edge plaziert.

I faith, the lead otherwise former or later To
Verwirrungen.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
01/18/15  
 



objectively Better get going lots of Konstanden give, look time on the example arr:  [...] 

1: sortiert the aray numerisch
2: sortiert the aray alphanumeric
3: kehrt The Order the items circa (reverse)

there becomes one then too write can:

a=arr(arr.sortnum,[10,30,20])

or

a=arr(arr.sort,[10,30,20])

or

a=arr(arr.reverse,[10,30,20])

or on the example fattr:  [...] 

0: Size the File or -1 unless existing or -2 if directory (same How fattr(File))
1: File or directory existing
2: is a File
3: is a directory
4: is "versteckt"/ hidden
5: is readable, Ausleserecht
6: is beschreibbar, Beschreiberecht
7: is executable, Ausführungsrecht
8: Time latest Änderung as Unixzeitstempel

Wirds then give:

fattr(fattr.exists,"datei")
fattr(fattr.isfile,"datei")
.isdir
.hidden
.canread
.canwrite
.canexecute
.lastmodified

Insofern would it then too:

createmenu(createmenu.left,createmenu.top)...

but with CreateMenu be I me anyhow not yet integrally sure obs because so hot should. there be I quasi not yet arrived.
 
01/18/15  
 




H.Brill
thanks for Info.
was yet never so my thing, that too
something like with Profan goes. there graust it me
even as old DOS-Programmer :
CompileMarkSeparation
Cls
Declare String wert
wert = "80"
Def $zahl "5"
Print "10" + 10
Print $zahl + 15
Print wert - 60
Waitkey
a>

there GetControlParas (B Roland Yes intern circa.
would be so did i never so for my programs
use. I stops me there rather on The
Konventionen the Datentypen and use
tappt im dunkeln too accordingly.

likes of course helpful for absolute Beginner his,
but one ought to nevertheless of beginning on whom
right Use with the Datentypen learn.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
01/18/15  
 



AndroidProfan power it something differently,
has imho but too a komplexere Betrachtung the variables because its type must itself constantly Change.

so can You there:

var a="10"
//here's a string
a=5.5
//here float

with print 10+"20"
comes 1020 out,
likewise with print "10"+20,
with print 10+20 naturally 30

so seen wandle I nothing circa separate heave on the kleinstmöglichen type in the Order:

zero
bool
long
float
string
aray

therefore is this too a Fließkommazahl:

print 5+10.5

istgleich 15.5

and this but a Fließkommazahl plus String

print 5+10.5+"test"

istgleich 15.5Test

and this:

5+10.5+"test"+10+3.3

yields:

15.5Test103.3

try means of left to right whom type kleinstmöglich To hold.
 
01/18/15  
 




E.T.

5+10.5+"test"+10+3.3
yields:
15.5Test103.3


and Why not 15.5Test13.3 ??
 
XProfan X2
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
01/18/15  
 




HofK
Test is first string of left, ex there string
 
01/18/15  
 



@E.T: because "test"+10 "test10" yields and "test10"+3.3 yields "test103.3". it would imho not correctly. if I time of left and times of right rechne.
 
01/18/15  
 



I wealth I have me now one tolles concept for Positionierung, order and Order of Controls and the "Bildschirm-Design" dreamup.

my idea: "The Grid", the Raster! (clear, Tron...): one created one Raster-Control with discretionary many Lines and Split and can Raster-Controls against too in Raster-boxes produce and each Raster-cell has a Own "Gravity".

one place itself z.B. one 9it Raster to:

XXX
XXX
XXX

each X standing for a Raster-cell.

want one now one solid the z.B. whom screen Mouse and Sprite divides and supra but 3 Buttons then created one one Raster 1x2 and Raster-cell 1 created one one Raster 3x1 - yields:

XXX
.......
------
.......
.......

The Gravitation einzelner boxes becomes first of all automatically certainly and can also manually modifiziert go. The Gravitation of/ one Raster-cell affects horizontal and Mouse and Sprite from, z.B. LinksOben, MitteOben, RechtsOben, LinksMitte, MitteMitte, RechtsMitte, LinksUnten, MitteUnten, RechtsUnten.

so created one one 3x3 Raster on hwnd and save his lever into Variable mygrid:
CompileMarkSeparation
Hierbei becomes one 3x3 Raster on hwnd created, any Raster-boxes are same big and the Raster has The Size of Parent (hwnd) - filling means whom screen from.

such Raster self are invisible and its Size isn't manually änderbar separate its Size yields itself always from whom Maßen the parents-Raster-cell.

Each single Raster-cell own likewise a handle. so has The first Raster-cell of Raster mygrid the lever mygrid+1, The latest Raster-cell of o.g. Raster has the lever mygrid+9.

now can naturally too in a Raster-cell one further "Unterraster" produce, z.B. one Unterraster in cell 2 produce the self but only 2 Split own:
CompileMarkSeparation
naturally can too The Maße of/ one Rasterzelle self to determine, sees then z.B. so from:
CompileMarkSeparation
setting The wide of Rasterzelle 1 of Raster mygrid on 300 Pixel.

the concept allows me automatic Anpassung too with Bildschirmrotation so the Layout always konsistent remaining and it allows the Programmer one simple create discretionary komplexer Layouts without on each Bildschirmauflösung react To must.

More about write I then with the Funktionserklärung to function gui.
 
01/24/15  
 




HofK
shining me one very praktikabler Ansatz.

iF (24.01.15)
Each single Raster-cell own likewise a handle. so has The first Raster-cell of Raster mygrid the lever mygrid+1, The latest Raster-cell of o.g. Raster has the lever mygrid+9.


with something more Verschachtelungen comes one possible with the Inizes confusion. might one not possible too The Notation mygrid+11, mygrid+12, mygrid+13, mygrid+21, ... , mygrid+33 benefit and intern on 1,... 9 converting?
 
01/24/15  
 



there's a ploy whom I for installed have: as aray-indicated. so can You instead of mygrid+9 too indicate: [mygrid,3] In this case rechnet the system for you The Rasterzellennummer from. (grid+y*yy+x)

have me for this Sonderfall deliberate against [mygrid,2] for position 9 decided (means not 0 beginnend) there these spelling Yes even solely for Übersichtlichkeit virtual is.
 
01/24/15  
 



the crazy with Android is that one The Customcontrols relatively simply (not so tricky How with windows over Subclassing) optisch adjust can, means everything can one Wallpapers own/ Schriftfarbe etc blabla. there I will nice gui(gui.mod,gui.*'s produce can and even shadow are drin etc.
 
01/24/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

12.612 Views

Untitledvor 0 min.
Thomas Zielinski09/06/19
maroro08/16/16
AndreasS05/16/16
Boroberto04/22/16
More...

Themeninformationen

this Topic has 4 subscriber:

iF (8x)
HofK (4x)
H.Brill (2x)
E.T. (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