ariopax Posted June 24, 2016 Share Posted June 24, 2016 Hi How to i can create a uniForm in runtime? Please guide me! Best Regards. Quote Link to comment Share on other sites More sharing options...
ariopax Posted June 24, 2016 Author Share Posted June 24, 2016 Hi I Find it, procedure TMainForm.CreateFormRT(FormClassName, FormCaption, FormHint: string; FormWidth,FormHeight:Integer); var Form : TUniForm; Begin Form := TUniFormClass(FindClass('T'+FormClassName)).Create(UniApplication); Form.Caption:=FormCaption; Form.Hint:=FormHint; Form.Width:=FormWidth; Form.Height:=FormHeight; Form.ShowModal(); End; But First Declare a class for you'r form and in initialization Register that class RegisterClass(TForm1); And for call CreateFormRT('Form1','CaptionForform','HintForForm',300,400 ); Best Regards. Ario. 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.