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


QSPLITTER Компонент

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 Свойства
ПолеТипR/WПо умолчанию




AlignINTEGERRWalLeft
Align определяет как компонент располагается на родительской форме
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, в пикселях, of the client area the splitter must leave on the form.
ParentQFORM/QPANEL/QTABCONTROLW
ShowHintINTEGERRWFalse
TagINTEGERRW
TopINTEGERRW
VisibleINTEGERRWTrue
WidthINTEGERRW


QSplitter Методы
МетодТипОписаниеПараметры





QSplitter События
СобытиеТипПроисходит когда...Параметры




OnMovedVOIDSplitter Moved0


QSplitter Примеры
$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

Предыдущий Компонент Содержание Следующий Компонент