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

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

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


QDIRTREE Component

QDirTree is a custom component used to provide users with a Windows Explorer like directory list. It eats up a lot of resources, so use with caution. You don't usually need more than one of these.

QDirTree Properties
FieldTypeR/WDefault




AlignINTEGERRWalNone
BorderStyleINTEGERRWbsSingle
ColorINTEGERRW
CursorINTEGERRWcrDefault
DirectorySTRINGRWFalse
EnabledINTEGERRWTrue
FastLoadINTEGERRWFalse
FontQFONTW
HeightINTEGERRW
HideSelectionINTEGERRWFalse
HintSTRINGRW
InitialDirSTRINGRW
LeftINTEGERRW0
ParentQFORM/QPANEL/QTABCONTROLW
PopupMenuQPOPUPMENUW
ReadOnlyINTEGERRWFalse
ReadOnStartINTEGERRWFalse
ShowHintINTEGERRWFalse
TabOrderINTEGERRW
TopINTEGERRW0
WidthINTEGERRW
VisibleINTEGERRWTrue

QScrollBar Methods
MethodTypeDescriptionParams




AddDirTypesSUBAdd directory types0
AddDriveTypesSUBAdd drive types0
DelDirTypesSUBDel directory types0
DelDirTypesSUBDel drive types0
FullCollapseSUBCollapse entire directory list0
FullExpandSUBExpand entire directory list (slow!)0
ReloadSUBRe-read directories0

QScrollBar Events
EventTypeOccurs when...Params




OnChangeVOIDCurrent directory changes0


QDirTree Examples
'' A Directory Tree like Windows Explorer.
'' QDIRTREE Component courtesy of Markus Stephany.
'' I took out removable drives because it doesn't work properly.
'' So you won't be able to view your floppy disk drives.  CD-ROM drives
'' are fine, as far as I know...

$TYPECHECK ON

DECLARE SUB ChangeDirectory

CREATE Form AS QForm
  Caption = "Directory Tree"
  Center
  CREATE DirTree AS QDirTree
    InitialDir = CURDIR$
    Width = Form.ClientWidth
    Height = Form.ClientHeight
    OnChange = ChangeDirectory
  END CREATE
  ShowModal
END CREATE

SUB ChangeDirectory
  ShowMessage DirTree.Directory
END SUB

Prev Component Contents Next Component
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2024-4-20  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2015-12-25 19:42:33