ronnyfaslah Posted December 3, 2014 Share Posted December 3, 2014 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! Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 3, 2014 Administrators Share Posted December 3, 2014 Access from Client Side in java script? Quote Link to comment Share on other sites More sharing options...
ronnyfaslah Posted December 3, 2014 Author Share Posted December 3, 2014 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 ... Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 3, 2014 Administrators Share Posted December 3, 2014 FrameName.uniButton1 Quote Link to comment Share on other sites More sharing options...
ronnyfaslah Posted December 3, 2014 Author Share Posted December 3, 2014 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??? Quote Link to comment Share on other sites More sharing options...
ronnyfaslah Posted December 3, 2014 Author Share Posted December 3, 2014 Solved ... to acces an uniframe from a form just using (FrameUtama as TFVProgramStudi).Button1.Caption := 'Solved'. Thanks Farshad Mohajeri ... Quote Link to comment Share on other sites More sharing options...
wangxuebin Posted April 30, 2015 Share Posted April 30, 2015 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? 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.