FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour testtre2.prg - any idea how to be able to use res editor?
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
testtre2.prg - any idea how to be able to use res editor?
Posted: Mon Aug 26, 2019 08:45 AM

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

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: testtre2.prg - any idea how to be able to use res editor?
Posted: Tue Aug 27, 2019 02:06 AM

::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

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: testtre2.prg - any idea how to be able to use res editor?
Posted: Thu Aug 29, 2019 09:02 AM

Thanks for the reply Shuming.

My requirement was actually met with this ChangeParent() snippet here viewtopic.php?f=3&t=23490&start=0#p126403

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion