Change of control owner

Change of control owner

Postby Natter » Fri Apr 14, 2023 8: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 ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: Change of control owner

Postby Antonio Linares » Fri Apr 14, 2023 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 86 guests