wiki:FRAME_MARGINS_R0

Version 12 (modified by mira, 16 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=FRAME_MARGINS_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

The frames margins are the blank fields with specific width surrounding the frame. Margins could be left, right, top or bottom. They are used to separate components from one another. Margins determine on what distance should the halo menu stand from its referring frame. They could also be used to arrange the text in underneath frames (it goes around the frames margin) so it is easier to read.

Task requirements

  • The frame should have properties defining its margins width.
  • There should be HUD for paddings (could be communal with margins`s HUD)
  • All elements should adjust surrounding the margin

Task result

The result of this task is source code.

Implementation idea

  • Add Insets marginsInsets property to the Frame.
  • There should be HUD for margins (could be communal with margins`s HUD)
  • Other elements should adjust their position to the margins width.

How to demo

  • Create frame with concrete margins over other frame with text content and check if the text adjusts to its width.
  • Use the HUD to change the margins and show how the text is adjusting to the new margin.

Design

Implementation

(Implementation results should be described and linked here (from the wiki or the repository))

Testing

Comments

(Write comments for this or later revisions here.)