FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour how to set Parent to Control
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
how to set Parent to Control
Posted: Sun Oct 23, 2022 08:11 AM
hi,

i know Fivewin use OF Window ti assin Control

now i have this
Code (fw): Select all Collapse
   DEFINE WINDOW oWnd FROM nTop, nLeft TO nHeight, nWidth PIXEL
      oExplorer := TExplorer():New( nTop, nLeft, nWidth - 20, nHeight -20, cPath )

how to set "Parent" oWnd to CLASS TExplorer() :-)

if want to TABPAGE so i have to assign every Instance of TExplorer() to "Parent" TABPAGE
greeting,

Jimmy
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: how to set Parent to Control
Posted: Sun Oct 23, 2022 09:20 AM
Look at the fifth parameter:

Code (fw): Select all Collapse
METHOD New( nTop, nLeft, nWidth, nHeight, oWnd, nClrFore, nClrBack, oBrush, ;
            l2007, l2010, l2013, l2015 ) CLASS TExplorerBar
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: how to set Parent to Control
Posted: Sun Oct 23, 2022 09:46 AM
hi Enrico,
Enrico Maria Giordano wrote:Look at the fifth parameter:

ooh, YES oWnd
Code (fw): Select all Collapse
DEFAULT oWnd := GetWndDefault()

so it is a Handle to point to Parent (not a Object)

thx for help
greeting,

Jimmy
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: how to set Parent to Control
Posted: Sun Oct 23, 2022 09:57 AM

No, it has to be an object.

Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: how to set Parent to Control
Posted: Sun Oct 23, 2022 10:45 AM
hi Enrico,
Enrico Maria Giordano wrote:No, it has to be an object.

uuups ... sorry YES you are right
greeting,

Jimmy

Continue the discussion