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


QDIRTREE Компонент

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




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 Методы
МетодТипОписаниеПараметры




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

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




OnChangeVOIDCurrent directory changes0


QDirTree Примеры
'' A Directory Tree like Windows Explorer.
'' QDIRTREE Компонент 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

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