DECLARE SUB btnClick (Sender AS QBUTTON)
CREATE DirTreeForm AS QFORM
CAPTION = "Directory Tree"
top=260
left=250
height=250
FormStyle =3
AutoScroll=false
KeyPreview = 1
COLOR=&h9E8865
CREATE DirTree AS QDIRTREE
Align=center
Left = 4
top=60
InitialDir = "c:\"
Width =DirTreeForm.ClientHeight -5
Height =DirTreeForm.ClientHeight -65
TabOrder=1
ShowHint=false
END CREATE
CREATE LblHotDir AS QLABEL
CAPTION = "Hot directories":
Left = 4:Top = 4:
Transparent = 0
Width =200
END CREATE
CREATE BtnAddHotDir AS QBUTTON
CAPTION = "+"
Left = 220
Top = 4
Width = 15
Height = 15
Spacing=1
END CREATE
CREATE BtnDelHotDir AS QBUTTON
CAPTION = "-"
Left = 240
Top = 4
Width = 15
Height = 15
Spacing=1
END CREATE
CREATE CBoxHotDir AS QCOMBOBOX
Text = DirTree.InitialDir
Left = 4
Top = 25
Width = DirTreeForm.ClientWidth -5
Height = 99
TabOrder = 10
AddItems "c:\", "c:\temp"
END CREATE
END CREATE
CREATE Form AS QFORM
CAPTION = "RQ Search&Replace"
Width =Screen.Width/1.5
Height =Screen.Height/1.5
KeyPreview = 1
Font.size=8
windowstate=0
center
CREATE DirBtn AS QBUTTON
CAPTION = "Directory Tree"
Left =20
Top = 20
Spacing=2
Width = 125
Height = 25
tag=22
OnClick = btnClick
END CREATE
END CREATE
Form.SHOWMODAL
SUB btnClick (Sender AS QBUTTON)
SELECT CASE Sender.Tag
CASE 22:
DirTreeForm.show:
END SELECT
END SUB
|