In fwh\samples\testtre2.prg, the controls on oDlg were all coded.
Is it possible to design dialogues using resource editor and later to dynamically moved it to oDlg depending on which tree item was clicked on?
TIA
testtre2.prg - any idea how to be able to use res editor?
testtre2.prg - any idea how to be able to use res editor?
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
-
- Posts: 454
- Joined: Sun Oct 30, 2005 6:37 am
- Location: Guangzhou(Canton),China
Re: testtre2.prg - any idea how to be able to use res editor?
::oTree :=TTreeView(): REDEFINE( 201, odlg,0,nrgb(255,255,255))
// 201 id
::oTree:bChanged := {|oTree,oItem|eng0303(self) }
// dynamic add items
.rc / .dll :
CONTROL "", 201, "SysTreeView32", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL| TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_SHOWSELALWAYS, 3, 80, 148, 252
// manual add to .rc : | TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_SHOWSELALWAYS
Shuming Wang
// 201 id
::oTree:bChanged := {|oTree,oItem|eng0303(self) }
// dynamic add items
.rc / .dll :
CONTROL "", 201, "SysTreeView32", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL| TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_SHOWSELALWAYS, 3, 80, 148, 252
// manual add to .rc : | TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_SHOWSELALWAYS
Shuming Wang
Re: testtre2.prg - any idea how to be able to use res editor?
Thanks for the reply Shuming.
My requirement was actually met with this ChangeParent() snippet here http://forums.fivetechsupport.com/viewt ... =0#p126403
My requirement was actually met with this ChangeParent() snippet here http://forums.fivetechsupport.com/viewt ... =0#p126403
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC