want to make a screen independent mainwindow ?

23 views
Skip to first unread message

Hans Schüren

unread,
Jun 24, 2017, 2:24:54 PM6/24/17
to REBOL
Hi , 
i want to make a screen independent mainwindow. 
Don't know where the screensize variable is containt in. 
    
Here is the simple code. 
    
R E B O L [title: 'Main Window' ] 
    
view center-face layout [size 700x750 ] 
    
    
size should be a percentage a the real screen where the rebol application is running on. 
Let us say width 50% and Height also 50%. 
    

Gregg Irwin

unread,
Jun 24, 2017, 4:52:14 PM6/24/17
to Hans Schüren
Hi Hans,

HS> i want to make a screen independent mainwindow. 
HS> Don't know where the screensize variable is containt in. 

`system/view/screen-face/size`

e.g.:

rebol [title: "Main Window" ] 

view center-face layout compose [size (system/view/screen-face/size / 2)] 


--Gregg

Reply all
Reply to author
Forward
0 new messages