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


QRICHEDIT Компонент

QRichedit implements a fully featured multi-line text edit control.

QRichedit Свойства
ПолеТипR/WПо умолчаниюПоддерживается





AlignINTEGERRWalNoneW
Align определяет как компонент располагается на родительской форме
AlignmentINTEGERRWtaLeftJustifyW
Algnment определяет, как текст выравнивается внутри the edit control.
BorderStyleINTEGERRWbsSingleW
ColorINTEGERRWW
EnabledINTEGERRWTrueWXG
FontQFONTWWX
HandleINTEGERRW
HeightINTEGERRWWXG
HideScrollBarsINTEGERRWTrueWG
HideSelectionINTEGERRWTrueW
HintSTRINGRWWG
LeftINTEGERRW0WXG
LineARRAY of STRINGRWWXG
LineCountINTEGERRWWXG
ModifiedINTEGERRWG
ParentQFORM/QPANEL/QTABCONTROLWWXG
PopupMenuQPOPUPMENUWW
PlaintextINTEGERRWFalseW
ReadonlyINTEGERRWFalseWXG
ScrollBarsINTEGERRWssNone
CONST ssNone = 0
CONST ssHorizontal = 1
CONST ssVertical = 2
CONST ssBoth = 3
WXG
SelAttributesQFONTWW
SelLengthINTEGERRWWXG
SelLength is the number of characters that are selected.
SelStartINTEGERRWWXG
SelStart is the position of the first selected character in the text. If there is no selected text, SelStart indicates the position of the cursor.
SelTextSTRINGRWWXG
SelText is the selected portion of the edit control's text.
ShowHintINTEGERRWFalseWG
TabOrderINTEGERRWW
TagINTEGERRWWXG
TextSTRINGRWWXG
TopINTEGERRW0WXG
WantTabsINTEGERRWFalseW
WantTabs determines whether the user can insert tab characters into the text.
WidthINTEGERRWWXG
WhereXINTEGERRWXG
WhereYINTEGERRWXG
WordwrapINTEGERRWTrueW
VisibleINTEGERRWTrueWXG


QRichedit Методы
МетодТипОписаниеПараметрыПоддерживается





AddStringsSUBIAdd stringsSTRING, InfiniteWXG
ClearSUBClear entire text0WXG
CopyToClipboardSUBCopy selected text to clipboard0W
CutToClipboardSUBCut selected text to clipboard0W
LoadFromFileSUB (FileName$)Load text из файла1WXG
LoadFromStreamSUB (Stream AS QFILESTREAM/QMEMORYSTREAM)Load text из потока (памяти)1WX
PasteFromClipboardSUBPaste text from clipboard0W
SaveToFileSUB (FileName$)Save text в файл1WXG
SaveToStreamSUB (Stream AS QFILESTREAM/QMEMORYSTREAM)Save text в поток (память)1W
SelectAllSUBSelects all text from Richedit0WXG

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





OnChangeVOIDText changes0WG
OnKeyDownSUB (Key AS WORD, Shift AS INTEGER)Нажата клавиша2WG
OnKeyPressSUB (Key AS BYTE)User presses a key1WG
OnKeyUpSUB (Key AS WORD, Shift AS INTEGER)Key released2WG
OnMouseDownSUB (Button%, X%, Y%, Shift%)Нажатие кнопки мыши4WX
OnMouseMoveSUB (X%, Y%, Shift%)Движение мыши2WX
OnMouseUpSUB (Button%, X%, Y%, Shift%)Кнопка мыши отпущена4WX


QRichedit Примеры
  $INCLUDE "RAPIDQ.INC"

  DIM Form AS QForm
  DIM RichEdit AS QRichEdit

  RichEdit.Parent = Form
  RichEdit.Scrollbars = ssBoth
  RichEdit.AddString "Hello world!"

  Form.ShowModal

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