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

QDirTree Methods
MethodTypeDescriptionParams




AddDirTypesSUBAdd directory types0
AddDriveTypesSUBAdd drive types0
Drive types can be 1, 2, 3, .... etc. to the number of possible drives on the system
DelDirTypesSUBDel directory types0
DelDirTypesSUBDel drive types0
FullCollapseSUBCollapse entire directory list0
FullExpandSUBExpand entire directory list (slow!)0
ReloadSUBRe-read directories0

QDirTree 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