You can resize a window with ``resize-window``, which takes a dimension in
pixels (or on a macOS retina display, they are 2x pixels).

Most of the UI is painted in such a way that when you resize the window, it
proportions in obvious non-squishy ways.  It's not really a vector-based UI
where you could distort by resizing.

The UI tools have a "tool-dim" that determines the size of new windows.

For example, in ui.tools.listener:


https://github.com/factor/factor/blob/master/basis/ui/tools/listener/listener.factor#L198

You can have some similar code in your ``.factor-rc`` if you want to
override that.




On Wed, Feb 14, 2018 at 7:14 PM, cat via Factor-talk <
factor-talk@lists.sourceforge.net> wrote:

> Across the board, Factor has the single best cross-platform UI system of
> any programming platform I've ever come across. Everything is made so
> simple yet usually in a way that doesn't remove any programming
> opportunities.
>
> Yet something which always seems absent from all Factor UI (really I mean
> windowing) code is setting the specific width and height with which to draw
> a window or UI or UI element. (Obviously this is usually a good thing,
> since you can just throw gadgets and have the scaling done for you.)
>
> From my basic understanding everything in the UI has scale 1x unless you
> say otherwise, but changing this doesn't give scaling to pixel amounts.
>
> Suppose I want the Factor listener (or my own custom UI) to always launch
> at certain dimensions (480x640 maybe, accounting for HiDPI) and "squish"
> scrollable or scalable gadgets.
>
> Can I do it with the high-level UI programming interface, or does it
> require custom code at the platform-specific level?
>
> Thank you!
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to