Rapid-Q Documentation by William Yu (c)1999-2000 Appendix A: QSPLITTER

QSPLITTER Component

QSplitter sits between a control aligned to one of the edges of the form and the controls that fill up the rest of the client area. It is used to resize the controls at runtime.

QSplitter Properties
FieldTypeR/WDefault
AlignINTEGERRWalLeft
Align determines how the control aligns within its parent control.
BeveledINTEGERRWTrue
Beveled determines whether the splitter looks beveled along the edge that moves.
ClientHeightINTEGERRW
ClientWidthINTEGERRW
ColorINTEGERRW
CursorINTEGERRWcrHSplit
EnabledINTEGERRWTrue
HeightINTEGERRW
HintSTRINGRW
LeftINTEGERRW
MinSizeINTEGERRW30
MinSize is the minimum size, in pixels, of the client area the splitter must leave on the form.
ParentQFORM/QPANEL/QTABCONTROLW
ShowHintINTEGERRWFalse
TagINTEGERRW
TopINTEGERRW
VisibleINTEGERRWTrue
WidthINTEGERRW


QSplitter Methods
MethodTypeDescriptionParams

QSplitter Events
EventTypeOccurs when...Params
OnMovedVOIDSplitter Moved0


QSplitter Examples
$INCLUDE "RAPIDQ.INC"

CREATE Form AS QFORM
    Height = 400
    Caption = "QSplitter example"
    Center
    Visible = 1                  '-- Required
    Visible = 0                  '-- trick
    CREATE Panel AS QPANEL
        Align = alTop            '-- Fill top portion of form
        Height = 100
        Caption = "PANEL"
    END CREATE
    CREATE Splitter AS QSPLITTER '-- Note position
        Align = alTop            '-- Fill middle
        Cursor = crVSplit
        Height = 10
    END CREATE
    CREATE RichEdit AS QRICHEDIT
        Align = alClient         '-- Fill rest of form
        AddStrings "RICHEDIT"
    END CREATE
    ShowModal
END CREATE

Prev Component Contents Next Component
Hosted by uCoz
D>
Hosted by uCoz