Tonivi Posted September 11, 2017 Share Posted September 11, 2017 Hi I have an application that I access to the forms as uniFrames var Fr: TUniFrame; begin Fr: = TFormFrame1.Create (Self); Fr.Align: = alClient; Fr.Parent: = panelParent1; How can I access from the mainForm to the FormFrame1 form ?. I put the uses but I do not access the properties of the components or the procedures of Formframe1. Is there any way to do it ? Thanks Quote Link to comment Share on other sites More sharing options...
Alessandro Posted September 11, 2017 Share Posted September 11, 2017 I also need to know how to do it. Following... Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 15, 2017 Administrators Share Posted September 15, 2017 Hi, First of all, it is a general Delphi question. If you can do it in Delphi VCL then you can also do it in uniGUI. However, even if it was possible, this would be absolutely the wrong way to design your application. A frame is a child component with no global reference to it. You can't access it unless you keep a global reference to it somewhere and manage it yourself. Frames are just like any other components. Consider it as a Panel inside a form. You can access it only if it is already inserted in a parent. Like : UniForm1.UniFrame1 Quote Link to comment Share on other sites More sharing options...
Alessandro Posted September 18, 2017 Share Posted September 18, 2017 Hi, First of all, it is a general Delphi question. If you can do it in Delphi VCL then you can also do it in uniGUI. However, even if it was possible, this would be absolutely the wrong way to design your application. A frame is a child component with no global reference to it. You can't access it unless you keep a global reference to it somewhere and manage it yourself. Frames are just like any other components. Consider it as a Panel inside a form. You can access it only if it is already inserted in a parent. Like : UniForm1.UniFrame1 Hi. I could not make the procedure work. Can you give me a practical example of how it works? Thank you 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.