Jump to content

Acces to properties & routines of uniFrame


Tonivi

Recommended Posts

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

Link to comment
Share on other sites

  • Administrators

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

Link to comment
Share on other sites

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
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...