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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...