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