how to set Parent to Control

how to set Parent to Control

Postby Jimmy » Sun Oct 23, 2022 8:11 am

hi,

i know Fivewin use OF Window ti assin Control

now i have this
Code: Select all  Expand view  RUN
  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() :idea:

if want to TABPAGE so i have to assign every Instance of TExplorer() to "Parent" TABPAGE
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: how to set Parent to Control

Postby Enrico Maria Giordano » Sun Oct 23, 2022 9:20 am

Look at the fifth parameter:

Code: Select all  Expand view  RUN
METHOD New( nTop, nLeft, nWidth, nHeight, oWnd, nClrFore, nClrBack, oBrush, ;
            l2007, l2010, l2013, l2015 ) CLASS TExplorerBar
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: how to set Parent to Control

Postby Jimmy » Sun Oct 23, 2022 9:46 am

hi Enrico,
Enrico Maria Giordano wrote:Look at the fifth parameter:

ooh, YES oWnd
Code: Select all  Expand view  RUN
DEFAULT oWnd := GetWndDefault()

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

thx for help
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Re: how to set Parent to Control

Postby Jimmy » 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
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 67 guests