Guest Posted February 16, 2011 Share Posted February 16, 2011 Message from: "Imagina" Hello there I create a form in runtime and is showed over MainForm. But I click in MainForm (is Maximized), the created form is hidden (under MainForm)... But how to activate a form in runtime? I tried the BringToFront and Show method but no success: TUniForm(UniApplication.FindComponent('form1')).BringToFront TUniForm(UniApplication.FindComponent('form1')).Show Thx . Quote Link to comment Share on other sites More sharing options...
Guest Posted February 16, 2011 Author Share Posted February 16, 2011 Message from: "Imagina" Imagina wrote in news:Xns9E8EB56CC516Bjosepatimaginaisnet@178.63.126.146: > Hello there > > I create a form in runtime and is showed over MainForm. But I click in > MainForm (is Maximized), the created form is hidden (under MainForm)... > But how to activate a form in runtime? > I tried the BringToFront and Show method but no success: > TUniForm(UniApplication.FindComponent('form1')).BringToFront > TUniForm(UniApplication.FindComponent('form1')).Show > > Thx > I forget to say that in VCL works ok, is in Web mode where fail. Thx . Quote Link to comment Share on other sites More sharing options...
Guest Posted February 16, 2011 Author Share Posted February 16, 2011 Message from: "Farshad Mohajeri" "Imagina" wrote in message news:Xns9E8EB56CC516Bjosepatimaginaisnet@178.63.126.146... > Hello there > > I create a form in runtime and is showed over MainForm. But I click in > MainForm (is Maximized), the created form is hidden (under MainForm)... > But how to activate a form in runtime? > I tried the BringToFront and Show method but no success: > TUniForm(UniApplication.FindComponent('form1')).BringToFront > TUniForm(UniApplication.FindComponent('form1')).Show > Calling Show should be enough. . Quote Link to comment Share on other sites More sharing options...
Guest Posted February 16, 2011 Author Share Posted February 16, 2011 Message from: "Imagina" Hello I found the problem; if change typecast to TUniExtForm works! TUniExtForm(UniApplication.FindComponent('form1')).Show Thx "Farshad Mohajeri" wrote in news:PBgRErfzLHA.2160 @anaxagvs227: > > "Imagina" wrote in message > news:Xns9E8EB56CC516Bjosepatimaginaisnet@178.63.126.146... >> Hello there >> >> I create a form in runtime and is showed over MainForm. But I click in >> MainForm (is Maximized), the created form is hidden (under MainForm)... >> But how to activate a form in runtime? >> I tried the BringToFront and Show method but no success: >> TUniForm(UniApplication.FindComponent('form1')).BringToFront >> TUniForm(UniApplication.FindComponent('form1')).Show >> > > Calling Show should be enough. > > > . Quote Link to comment Share on other sites More sharing options...
Guest Posted February 16, 2011 Author Share Posted February 16, 2011 Message from: "Farshad Mohajeri" "Imagina" wrote in message news:Xns9E8EBD1BE4E58josepatimaginaisnet@178.63.126.146... > Hello > > I found the problem; if change typecast to TUniExtForm works! > TUniExtForm(UniApplication.FindComponent('form1')).Show > I see. So you use FindComponent to find it. In version 0.85.0 this problem will be resolved. . Quote Link to comment Share on other sites More sharing options...
Guest Posted February 16, 2011 Author Share Posted February 16, 2011 Message from: "Imagina" "Farshad Mohajeri" wrote in news:xZgN7BgzLHA.2160@anaxagvs227: > > "Imagina" wrote in message > news:Xns9E8EBD1BE4E58josepatimaginaisnet@178.63.126.146... >> Hello >> >> I found the problem; if change typecast to TUniExtForm works! >> TUniExtForm(UniApplication.FindComponent('form1')).Show >> > > I see. So you use FindComponent to find it. In version 0.85.0 this > problem will be resolved. > > > Thank you, Farshad One suggestion: in VCL mode, if I have two visible forms, the color of top windows bar (where are the form caption and system buttons to minimize, etc) is DIFFERENT in both forms (only can be a active form), and is easy to see what is the active form. In web mode, however, both forms have the same color; can you do the same as VCL? Thanks again . Quote Link to comment Share on other sites More sharing options...
Guest Posted February 17, 2011 Author Share Posted February 17, 2011 Message from: "Farshad Mohajeri" "Imagina" wrote in message news:Xns9E8EBF8C7B6D2josepatimaginaisnet@178.63.126.146... > "Farshad Mohajeri" wrote in > news:xZgN7BgzLHA.2160@anaxagvs227: > >> >> "Imagina" wrote in message >> news:Xns9E8EBD1BE4E58josepatimaginaisnet@178.63.126.146... >>> Hello >>> >>> I found the problem; if change typecast to TUniExtForm works! >>> TUniExtForm(UniApplication.FindComponent('form1')).Show >>> >> >> I see. So you use FindComponent to find it. In version 0.85.0 this >> problem will be resolved. >> >> >> > > Thank you, Farshad > > One suggestion: in VCL mode, if I have two visible forms, the color of top > windows bar (where are the form caption and system buttons to minimize, > etc) is DIFFERENT in both forms (only can be a active form), and is easy > to > see what is the active form. In web mode, however, both forms have the > same > color; can you do the same as VCL? Forms are nothing but various image files wrapped in DIVs and CSS styles so there can't be a simple color change. I will look for alternative ways of distinguishing non-active form from an active form. logged #839 . 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.