You can create a screen similar to an application user interface with multiple adjustable window panes.
After switching the Display/Collapsed of layout objects with visibility animation, the content display object and switch object size and location will be automatically adjusted by the Dock Panel, and the pane display will change.
For information about the function used to configure a screen composed of multiple panes, refer to the following.
Operation When Visibility Animation is Set Up
Touch the switch on the Dock Panel to collapse the layout object (left pane); the content display object (main pane) aligned thereafter will expand to fill that space. Touch the switch again to display the layout object.
Add a variable storing the [Visibility] property of the layout object.
Add the below variable(s).
[Name] |
[Data Type] |
Var1 | [INT] |
Add the below screen(s).
[ScreenID] |
[Screen Type] |
2 |
[Dock Panel] |
To define screen settings such as color, in the Document view, click the drawing area and define the settings in the properties window.
Tab |
Property |
Value |
||
[Basic] |
[Fill] |
[Color] |
[Value] |
ID:14 |
Set the properties below.
Tab |
Sub |
Property |
Value |
|
---|---|---|---|---|
[Function] |
[Basic] |
[Preference] |
[Initial Screen ID] |
2 |
This property sets the screen configured in this setting example (Screen ID: 2) to be displayed first after starting the runtime.
Add the below contents.
[Content ID] |
[Screen Type] |
1 | [Scroll Canvas] |
To define contents settings such as color, in the Document view, click the drawing area and define the settings in the Properties window.
When
designating colors with ID, the displayed colors will vary depending
on the [Color Set] in the [Tool Chest].
Color Set
Tab |
Property |
Value |
||
[Basic] |
[Fill] |
[Color] |
[Value] |
ID:25 |
Drag and drop the following objects from the [Tool Chest] to the screen.
The object alignment order can be changed with the [Object List].
Content display (Name: ContentDisplay1)
When aligning objects, drag and drop them to the outside of the layout object or outside the screen area in order to keep them from overlapping. Note that when none of the objects on the screen are selected, they can also be aligned without overlapping by double-clicking the relevant object in the [Tool Chest].
Tab |
Property |
Value |
||
[Basic] |
[Location] |
[Dock] |
[Top] |
|
[Height] |
80 |
|||
[Fill] |
[Color] |
[Value] |
ID:14 |
Tab |
Property |
Value |
||
[Basic] |
[Orientation] |
[Vertical] |
||
[Location] |
[Dock] |
[Left] | ||
[Width] |
250 |
|||
---|---|---|---|---|
[Fill] |
[Color] |
[Value] |
ID:11 |
|
[Visibility] |
[Variable] [Name]: Var1 |
Install
the accordion menu in the Stack Panel. For information about the accordion
menu, refer to the following.
Configuring an Accordion
Menu
This switch changes the pane display. When the switch is touched, the [Visibility] property of the Layout Object - Stack Panel (name: StackPanel1) is changed to 0 (Display) or 2 (Collapsed).
Tab |
Sub Tab |
Property |
Value |
Tab |
---|---|---|---|---|
[Function] |
[Touch] |
[Operation] |
[Type] |
[Word] |
[Operation] |
[XOR] |
|||
[Source] |
2 |
|||
[Destination] |
[Variable] [Name]: Var1 |
|||
[Shape] |
[Size/Location] |
[Location] |
[Dock] |
[Left] |
[Width] |
25 |
|||
[Height] |
50 |
Tab |
Sub Tab |
Property |
Value |
---|---|---|---|
[Function] |
[Basic] |
[Content ID] |
1 |