|
Hi folks,
suppose you having a visual UI editing tool, where you can place
morphs/controls and define their position(s).
I have a model in mind, where coordinates can be defined by formal
description, i.e.
morph left: morph parent left + some offset
morph width: morph parent width / 2
etc.
but i wonder, in what way such relations can be represented by UI
editor/design tool.
I want that user could easily specify following:
suppose i placing a button in form, and say that its corner
(bottom/right) should be aligned to its parent corner, with some
negative offset (-5 @ -5).
And button width/height should be calculated by taking a button label
text width & height.
So, user by specifying two ordinates - corner and width & height, is
fully describing a button visual layout.
The problem is that button's label is submorph, and i not sure how to
formally encode such relation i.e. parent width & height (or any other
parent coordinate) depends on its submorph's fixed width/height.
--
Best regards,
Igor Stasenko AKA sig.
|