Molecules - BoxTextComponent
Share
This article explains Molecules' BoxTextComponent.
BoxTextComponent is a combination of a BoxComponent (outer frame), a BoxComponent (inner frame) and a TextComponent.
A TextComponent draws only the character size from the top left of the parent Component. To set equal margins above and below, you need a Component that performs centering on the parent Component.
The drawing position is determined by the BoxComponent (outer frame), and the TextComponent is centered by the BoxComponent (inner frame).
The input parameters allow you to set the position, width, height, and color of the BoxComponent (outer frame), and the update control flag, masking flag, text body, and text color of the TextComponent.
We plan to support IME input in the future.