Jump to content

UniFrame : How to access a component on an uniframe from a form?


Recommended Posts

Posted

Hi, i've just build a simple project, i have a form that contain a uniframe on it,

i have 1 button on that uniframe.

my question is how to access button in uniframe from Form1???

please help me! thanks!

Posted

No, just access from Form1 ...

 

procedure TMainForm.showprogramstudi(pstid : string);
begin
  FreeAndNil(FrameUtama);
  FrameUtama := TFVProgramStudi.Create(Self);
  FrameUtama.Align := alclient;
  FrameUtama.Parent := pnlutama;

 

  FVProgramStudi.   <---- its doesnot recognize by TMainForm.

end;

 

I have TMainForm and UniFrame TFVProgramStudi that contain 1 button,

I want to access that button from TMainForm ...

Posted

I have a Frame TFVProgramStudi, i 've named it FVProgramStudi, unit name UFVProgramStudi, From TMainForm  I've use unit UFVProgramStudi,

but it still doesnt recognize FVProgramStudi.Button1 ... why??? is there another way???

  • 4 months later...
Posted

hello,I'm here it dos'nt work,I use  :

if  (UniMainModule.FCurrentFrame TUniFrame1).UniCheckBox1.Checked then
       ShowMessage('true!');

But the Unigui reply:

 

Invalid class typecast.

 

what's the reason?

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...