English
Functions and Help

function: gui

 
- Page 1 -


{ ... } = gui.* ( ...

The Funktionsgruppe gui bid functions for grafically Benutzeroberfläche.

gui
gui.background: background of Control
gui.destroy: removes Control
gui.gravity: Gravitation one Controls
gui.grid: prepares one Grid-Control.
gui.height: Höhe in Pixel of Control
gui.image (ctrl,file): prepares one Image
gui.show (ctrl,fashion): Sichtbarkeit Control
gui.Text: Text-Create Control
gui.textcolor: Textfarbe of Text-Control
gui.theme: Style one Contols
gui.width: wide in Pixel of Control

Keywords: Controls, Buttons, input

 
01/24/15  
 



 
- Page 2 -


Textcontrol in cell produce:

gui gui.Text,[grid,x,y],"Hallo Welt"
 
02/05/15  
 



Have The Kalkulation the boxes over again revised.

Can the so write and is it half-way verständlich or can the curtail?

Notes to Berechnung: alike whether it itself around the Höhen or the wide the boxes deals: at that lay out one Grids any boxes always same big - means Höhe and wide are "auto".

Definiert is a wide o. Höhe for any boxes so no übrige cell bliebe as Kompensator for tatsächliche wide o. Höhe the Parent-Controls, then count any wide o. Höhe -indicated as "Verhältnis" zueinander. has one Grid means 3 Split and setting time any Split on The wide 100, then go any Split same wide his.

has The mittlere slot (means The 2.) The Size 200, then becomes The mittlere slot twice so wide as both others Split. so can then z.B. instead of 100,200,100 just as too 1,2,1 indicated go or 1000,2000,1000. once but at least 1 indicated on "auto" standing, becomes The concerned cell itself strain and all the rest of them boxes receive very The angegebene Size.

having several boxes no Größenangabe, so go any boxes with Größenangabe very on The angegebene Size brought and the boxes without Größenangabe share itself whom remainder same on. would be one Grid larger as his Parent, what only then occur can if at least 1 Zellengröße "auto" is and others Zellengrößen add already larger are as the Parent, then go any Zellengrößen To equal sharing herunterskaliert except for The detailed Passgröße the Parent-Controls.
 
02/06/15  
 




HofK
... habs immediate understood, is fully ok
and could plenty faster my with Android studio whom whole Vormitttag long gebasteltes "schönes" Grid with text (and Buttons) implementieren
 
02/06/15  
 



Yes, the normal principle of Android is complete differently and right irritating -
therefore have I me too The Grids dreamup.

Have supra another couple Examples eingekloppt:

One Grid on gui.hwnd create bestehend from 3 Split and 3 Lines and the lever the Grids in myGrid Save:

var myGrid=gui(gui.grid,gui.hwnd,[3,3])

One 6x3 Grid create in cell 2,2 of Grid myGrid and the lever the 2. Grids Save:

var myGrid2=gui(gui.grid,[myGrid,2,2],[6,3])

In cell 3,1 of first Grid one Text-Create Control:

var myTxt=gui(gui.Text,[myGrid,3,1],"Hallo Welt")

The Höhe of/ one individual row or. the first row of first Grid on 100 Pixel settle:

gui gui.height,[myGrid,1],100

any 3 Höhen of first Grid settle on 100 Pixel except the level the mittleren row which automatically yield should:

gui gui.height,myGrid,[100,zero,100]
 
02/06/15  
 



Have time with the the Gravitation described:

Gravitation of boxes define:

boxes own a horizontale Gravitation, where The Gravitation on the Content the cell works and not The cell self. around the Gravitation of/ one cell To settle is gui gui.gravi,[grid,x,y],worth To benefit. worth can 1,2 or 3 his. 1 standing for left, 2 for center and 3 for right. The Gravitation of cell 2,2 one Grids settle on right+supra: gui gui.gravi,[myGrid,2,2],3
 
02/06/15  
 



New: gui.button

var myButton=gui(gui.button,[myGrid,x,y],"ButtonText",myButtonProc)

prepares one Button in Rasterzelle x,y on myGrid.

myButtonProc is a selbstdefinierte Proc The 2 Parameter receiving:

proc myButtonProc(long buttonHandle,long event)

In buttonHandle standing the lever the Buttons, so one for several
Buttons a joint ButtonProc define can. naturally
can each Button too a Own ButtonProc allocated go.

Events:
0: Button is pressed, fingers lying on
1: Button watts losgelassen
2: fingers watts weggezogen or. moved on the Button


it go never Events 0,2,1 ausgeworfen, either go
The Events 0,1 or The Events 0,2 ausgeworfen, so one simply
discern can, whether Perhaps a D&D-operation or just
one (erfolgreicher) "Klick" meant are.
 
02/08/15  
 



New:

gui.Text can also a myButtonProc transfer go, so too for pure Textcontrol Touchereignisse ausgewertet go can!

var myText=gui(gui.Text,[myGrid,x,y],"Text",myButtonProc)

prepares one TextControl in Rasterzelle x,y on myGrid.

myButtonProc is a selbstdefinierte Proc The 2 Parameter receiving:

proc myButtonProc(long buttonHandle,long event)

In buttonHandle standing the lever the TextControls, so one for
several Controls a joint ButtonProc define can.
naturally can each TextControl too a Own ButtonProc
allocated go.

Events:
0: Button is pressed, fingers lying on
1: Button watts losgelassen
2: fingers watts weggezogen or. moved on the Button


it go never Events 0,2,1 ausgeworfen, either go
The Events 0,1 or The Events 0,2 ausgeworfen, so one simply
discern can, whether Perhaps a D&D-operation or just
one (erfolgreicher) "Klick" meant are.
 
02/08/15  
 



New:

gui.textcolor now too around the Schriftfarbe the Buttons To settle.

gui gui.textcolor,myButton,rgb(255,0,0)
 
02/08/15  
 



Info: Grid-boxes can no Textfarbe own there tappt im dunkeln none Text show. If coloured Text showing should, then one Textcontrol on of/ one Grid-cell produce and the Textcontrol a colour zuordnen.

Info: Text-Controls can no Backgroundcolor own, but the Grid-cell on the one Text-Control prepares is. If for a Text-Control The option gui.bgcolor apply becomes, then becomes tappt im dunkeln detoured around the Backgroundcolor the Grid-cell To settle.
 
02/09/15  
 



New: gui.bgcolor now too for buttons!
 
02/09/15  
 



New:

Android has Farbverläufe intern slight made so I the on
AndroidProfan transmit would like.

therefore:

Farbverläufe for Hintergründe with: gui.bgcolor

with gui.bgcolor can't only a single colour as background definiert go, separate too one discretionary komplexer linearer Farbverlauf by aray:

[Winkel,[%,col],[%,col],...

Col is the function rgb(r,g,b[,a]) To relating, % standing for a Prozentwert long 0 To 100.

Ausführlicher:

[WinkelInGrad,[ProzentWert,rgb(r,g,b [,a])],[ProzentWert,rgb(r,g,b [,a])],...]

Info: it can as much as you want segments definiert go, at least however must 2 segments definiert go. launch the first cut offed not Prozentwert 0, then becomes automatically one worth for Prozentwert 0 eingefügt with the same colour as first colour in the aray. end the last cut offed not Prozentwert 100, then becomes automatically one worth for Prozentwert 100 appended with the same colour as latest colour in the aray.


Winkel is so To understand: 0° shows to supra, means 12 watch, 90° to right (means 3 watch).

example for a Farbverlauf for gui.hwnd, of supra down, of
Black to white:

gui gui.bgcolor , gui.hwnd , [180 , [0,rgb(0,0,0)] , [100,rgb(255,255,255)] ]
 
02/09/15  
 



crazy new Tolligkeit: <-- blinkt!

var myGrid=gui(gui.grid,gui.hwnd,[[100,zero,100],[100,zero,100]])

See the 3 Parameter, the yet only so anzuwenden was: [X-boxes-amount,Y-boxes-amount]
and if one then The wide and Höhen the boxes define wished
then stayed yet only: gui gui.width,myGrid,[...

now can same at create the Grids his komplexes Layout
define, simply if one instead of:

[X-boxes-amount,Y-boxes-amount]
one aray angibt:

[ [wide,wide,...] , [Höhe,Höhe,...] ]
from the Number of Entries each Arrays becomes The Number of X or Y
boxes related and it go same The wide and Höhen staid.
 
02/09/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

35.735 Views

Untitledvor 0 min.
Daniel08/05/17
Micha1233403/20/17
Michael W.10/13/16
HofK04/23/16
More...

Themeninformationen

this Topic has 3 subscriber:

iF (28x)
HofK (10x)
Micha12334 (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