LuizZamp Posted March 24, 2020 Posted March 24, 2020 Hello, I'm trying to find a way of opening forms by its ClassName dynamically. I have a table with a user's allowed routines and their forms. Actually I'm using something like this: procedure Openform(const DescForm: String; Parent : TWinControl); var FormClass : TUniFormClass; AForm : TUniForm; begin FormClass := TUniFormClass(FindClass(DescForm)); AForm := FormClass.Create.(UniApplication); AForm.Parent := Parent; AForm.Left := 0; AForm.Top := 0; AForm.Show(); end; But using this way, I have no way of controlling whether it is assgined or not, nor do I have the UniGUI memory controls. (I would like to use the IDE's own components for this). Is there any way that I can call those Forms like UniGUI dynamically calls his? I'm using uniGUI Version FMSoft_uniGUI_Complete_Professional_1.90.0.1524. (And I'm sorry for the English, in case I didn't express myself properly). Thanks. Quote
mehamada Posted March 28, 2020 Posted March 28, 2020 using frames instead of forms is a good solution 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.