Guidance
指路人
g.yi.org
software / RapidQ / RQ Doc / html / qrichedit.html

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

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


QRICHEDIT Component

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

QRichedit Properties
FieldTypeR/WDefaultSupport





AlignINTEGERRWalNoneW
Align determines how the control aligns within its parent control.
AlignmentINTEGERRWtaLeftJustifyW
Alignment determines how the text is aligned within the edit control.
BorderStyleINTEGERRWbsSingleW
ColorINTEGERRWW
EnabledINTEGERRWTrueWXG
FontQFONTWWX
HandleINTEGERRW
HeightINTEGERRWWXG
HideScrollBarsINTEGERRWTrueWG
HideSelectionINTEGERRWTrueW
HintSTRINGRWWG
LeftINTEGERRW0WXG
LineARRAY of STRINGRWWXG
LineCountINTEGERRWWXG
ModifiedINTEGERRWG
ParentQFORM/QPANEL/QTABCONTROLWWXG
PopupMenuQPOPUPMENUWW
PlaintextINTEGERRWFalseW
ReadonlyINTEGERRWFalseWXG
ScrollBarsINTEGERRWssNoneWXG
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 Methods
MethodTypeDescriptionParamsSupport





AddStringsSUBIAdd stringsSTRING, InfiniteWXG
ClearSUBClear entire text0WXG
CopyToClipboardSUBCopy selected text to clipboard0W
CutToClipboardSUBCut selected text to clipboard0W
LoadFromFileSUB (FileName$)Load text from a file1WXG
LoadFromStreamSUB (Stream AS QFILESTREAM/QMEMORYSTREAM)Load text from a stream1WX
PasteFromClipboardSUBPaste text from clipboard0W
SaveToFileSUB (FileName$)Save text to a file1WXG
SaveToStreamSUB (Stream AS QFILESTREAM/QMEMORYSTREAM)Save text to a stream1W
SelectAllSUBSelects all text from Richedit0WXG

QRichedit Events
EventTypeOccurs when...ParamsSupport





OnChangeVOIDText changes0WG
OnKeyDownSUB (Key AS WORD, Shift AS INTEGER)Key held down2WG
OnKeyPressSUB (Key AS BYTE)User presses a key1WG
OnKeyUpSUB (Key AS WORD, Shift AS INTEGER)Key released2WG
OnMouseDownSUB (Button%, X%, Y%, Shift%)Mouse button held down4WX
OnMouseMoveSUB (X%, Y%, Shift%)Mouse moves2WX
OnMouseUpSUB (Button%, X%, Y%, Shift%)Mouse button is released4WX


QRichedit Examples
  $INCLUDE "RAPIDQ.INC"

  DIM Form AS QForm
  DIM RichEdit AS QRichEdit

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

  Form.ShowModal

Prev Component Contents Next Component
掌柜推荐
 
 
¥289.00 ·
 
 
¥1,080.00 ·
 
 
¥1,380.00 ·
 
 
¥638.00 ·
 
 
¥1,290.00 ·
 
 
¥1,420.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2015-12-25 19:42:46