want to make a screen independent mainwindow ?
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%.
posted by: Mennohexo 24-Jun-2017/12:51:07-7:00
posted by: Mennohexo 24-Jun-2017/15:02:24-7:00
Hi again ,
is it possible to get the system size Width and Height in separate variables ?
The reason :
You want to input a field in your GUI that has a percentage length of the system window width.
posted by: Mennohexo 25-Jun-2017/10:37:18-7:00
> is it possible to get the system size Width and Height in separate variables ?
size-width: system/view/screen-face/size/1 * 0.75
size-height: system/view/screen-face/size/2 * 0.25
view center-face layout compose [size (to-pair reduce [size-width size-height])]
posted by: Sunanda 25-Jun-2017/12:41:44-7:00
Yes that works.
posted by: Mennohexo 25-Jun-2017/14:49:08-7:00