Internal Panels

  Displaying background images
  The Scrollable definition

Often you can realize a desired layout only by creating internal panels. You drop a RadiPanel onto a grid cell and what you get is a .

Tip: You can create internal panels from any contiguous selection by choosing 'Apply Panel to Selection' from the grid's . This command replaces the current selection with an internal panel containing the selection.

With Show Internal Grids deselected, an internal panel acts like any other container: to select components inside the panel you need to double-click it in order to switch to the next hierarchy level.
With Show Internal Grids selected, an internal grid shines through and components can be selected directly. (Because this can be confusing for beginners, this flag is deselected by default.)


Displaying background images     Top of page

You specify a background image with the bgImage (see an ).
All other settings are optional:
bgImageDoubleBuffered: Deselect this to save memory. The default is true.
bgImageHorizontalAlignment: One of LEFT, CENTER or RIGHT.The default is CENTER.
bgImageScaleMode: One of SCALE_NONE, SCALE_HORIZONTAL, SCALE_VERTICAL, SCALE_BOTH, SCALE_TO_FIT, SCALE_TO_FILL, REPEAT_HORIZONTAL, REPEAT_VERTICAL or REPEAT_BOTH. The default is SCALE_NONE.
bgImageVerticalAlignment: One of TOP, CENTER or BOTTOM. The default is CENTER.


The Scrollable definition     Top of page

As mentioned above, every RadiPanel has a property.
The is the editor for this property:
Fill horizontal: If deselected, the panel will not fill the viewport horizontally if its width is less than the viewport's width.
Fill vertical: If deselected, the panel will not fill the viewport vertically if its height is less than the viewport's height.
Note: If the panel's design grid has no cells with a column/row weight > 0, fill modes are meaningless.
Scrollable viewport size: Define the viewport's width and height.
Select either the panel's preferred width/height (scrolling in either the horizontal or vertical direction will be disabled) or select a fixed width/height (scrolling in either the horizontal or vertical direction will be enabled if the given value is smaller than the panel's preferred width/height).
Horizontal unit increment: Defines, how far the viewport's content will scroll after a click on the WEST or EAST arrow buttons. Select an Absolute increment (in pixels) or a Relative increment (in percent), relative either to the panel size or to the viewport size.
Vertical unit increment: Similar to horizontal unit increment, but for the vertical direction.
Horizontal block increment: Defines, how far the viewport's content will scroll after a click in the horizontal scrollbar track. Settings are similar to the ones in horizontal unit increment.
Vertical block increment: Similar to horizontal block increment, but for the vertical direction.
Restore Defaults: The defaults for a ScrollableDefinition make the panel behave as any component which not implements Scrollable.

See also:
The design grid