Petzy Posted February 7, 2020 Share Posted February 7, 2020 Hi, How do I show/add/insert/embed (whatever the term is) a specific UniFrame on the MainForm based on user from database that logged in prior, using the Login form? The Login form SQL and user choosing I've got that done. I log in and it shows me the empty (mfpage set) main form. Now I'd like the MainForm to display the contents of a specific Frame, based on the user that logged in. (frame aligned to client of MainForm) How can I do that? I keep finding examples like "Frame1.Parent.." and they don't work. Could anyone provide a simple example of how to implement this? I haven't found anything in the demo's Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 7, 2020 Share Posted February 7, 2020 Hi, Please adjust your forum email address first: Quote Link to comment Share on other sites More sharing options...
Petzy Posted February 7, 2020 Author Share Posted February 7, 2020 9 minutes ago, Sherzod said: Hi, Please adjust your forum email address first: ? Found an example meanwhile: procedure TMainForm.UniFormShow(Sender: TObject); var Frame1: TFrame1; begin Frame1 := TFrame1.Create(self); Frame1.Align := alClient; Frame1.Parent := MainForm; end; It seems to work fine Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 7, 2020 Share Posted February 7, 2020 3 minutes ago, Petzy said: ? Which edition and build of UniGUI are you using!? Quote Link to comment Share on other sites More sharing options...
Dmitriy Posted April 20, 2020 Share Posted April 20, 2020 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.