want to make a screen independent mainwindow ?

Started by Mennohexo on 24-Jun-2017/12:51:07-7:00
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%.
Cool , yeah.
Hi again , is it possible to get the system size Width and Height in separate variables ? size-width size-height The reason : You want to input a field in your GUI that has a percentage length of the system window width. WBR Mennohexo
> is it possible to get the system size Width and Height in separate variables ? eg: 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])]
Yes that works. / /Thank you.

Reply