Jump to content

Activating hidden form


Guest

Recommended Posts

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

.

 

Link to comment
Share on other sites

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

.

 

Link to comment
Share on other sites

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.

 

 

.

 

Link to comment
Share on other sites

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.

>

>

>

 

.

 

Link to comment
Share on other sites

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.

 

 

.

 

Link to comment
Share on other sites

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

.

 

Link to comment
Share on other sites

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

 

 

.

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...