FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Change of control owner
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Change of control owner
Posted: Fri Apr 14, 2023 08:46 AM
Hi,

There are 2 controls on the window - a Tbutton and a TPanel. I need to tell the TButton that it belongs to the TPanel. How can this problem be solved ?
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Change of control owner
Posted: Fri Apr 14, 2023 08:52 AM
Dear Yuri,

When you create the TButton you use .. OF <TPanelObject>

Another way is to use Windows API function SetParent()
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setparent
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion