SashWindow allows any of its edges to have a sash which can be dragged to resize the window. The actual content window will be created by the application as a child of SashWindow. The window (or an ancestor) will be notified of a drag via a SashEvent notification.
The following styles apply in addition to the normal Window styles.
SW_3D |
Draws a 3D effect sash and border. |
SW_3DSASH |
Draws a 3D effect sash. |
SW_3DBORDER |
Draws a 3D effect border. |
SW_BORDER |
Draws a thin black border. |
See also window styles overview.
| evt_sash_dragged(id) { | event | ... } | Process a EVT_SASH_DRAGGED event,when the user has finished dragging a sash. |
| EVT_SASH_DRAGGED_RANGE(id1, id2, func) | Process a EVT_SASH_DRAGGED_RANGE event,when the user has finished dragging a sash. The event handler is called when windows with ids in thegiven range have their sashes dragged. |
enum SashEdgePosition {
SASH_TOP = 0,
SASH_RIGHT,
SASH_BOTTOM,
SASH_LEFT,
SASH_NONE = 100
};
SashEvent, SashLayoutWindow, Event handling overview
SashWindow.new(Window parent, Integer id,
Point pos = DEFAULT_POSITION,
Size size = DEFAULT_SIZE,
Integer style = CLIP_CHILDREN SW_3D,
String name = "sashWindow")
Constructs a sash window, which can be a child of a frame, dialog or any other non-control window.
destructor()
Destructor.
Boolean get_sash_visible(SashEdgePosition edge)
Returns true if a sash is visible on the given edge, false otherwise.
Integer get_maximum_size_x()
Gets the maximum window size in the x direction.
Integer get_maximum_size_y()
Gets the maximum window size in the y direction.
Integer get_minimum_size_x()
Gets the minimum window size in the x direction.
Integer get_minimum_size_y()
Gets the minimum window size in the y direction.
Boolean has_border(SashEdgePosition edge)
Returns true if the sash has a border, false otherwise.
set_maximum_size_x(Integer min)
Sets the maximum window size in the x direction.
set_maximum_size_y(Integer min)
Sets the maximum window size in the y direction.
set_minimum_size_x(Integer min)
Sets the minimum window size in the x direction.
set_minimum_size_y(Integer min)
Sets the minimum window size in the y direction.
set_sash_visible(SashEdgePosition edge, Boolean visible)
Call this function to make a sash visible or invisible on a particular edge.
set_sash_border(SashEdgePosition edge, Boolean hasBorder)
Call this function to give the sash a border, or remove the border.
[This page automatically generated from the Textile source at Thu May 01 00:50:43 +0100 2008]