Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 10 total
Thread Problem With Multiple Forms...
Wed, Jul 1 2015 6:49 AMPermanent Link

Steve Gill

Avatar

I just created a brand new app in EWB2 B2 which consists of 5 forms.  When I run the app, all 5 forms show at the same time in the order they are created.  So Form 1 appears, then Form 2 appears on top of it, then Form 3 appears on top of Form 2, and so on. Basically they're stacked on top of each other.

Is anyone else experiencing this?  I tried uninstalling EWB and then reinstalling but it still behaves the same.

= Steve
Wed, Jul 1 2015 8:33 AMPermanent Link

Doc

Steve Gill wrote:

I just created a brand new app in EWB2 B2 which consists of 5 forms.  When I run the app, all 5 forms show at the same time in the order they are created.  So Form 1 appears, then Form 2 appears on top of it, then Form 3 appears on top of Form 2, and so on. Basically they're stacked on top of each other.

Is anyone else experiencing this?  I tried uninstalling EWB and then reinstalling but it still behaves the same.
______________________________________________

Yes, the same here, but no problem.
While EWB1 sets all additional forms Visible=false, in EWB2 they are by default Visible=true.
You have just to change that and do a form.show or form.visible=true at runtime.
Wed, Jul 1 2015 5:40 PMPermanent Link

Steve Gill

Avatar

Hi Doc,

<<Yes, the same here, but no problem.
While EWB1 sets all additional forms Visible=false, in EWB2 they are by default Visible=true.
You have just to change that and do a form.show or form.visible=true at runtime.>>

Are you saying I have to change the Interface?

I tried hiding all of the forms and run-time, except the main form.  When I click on a button one the main form to show another screen, it just goes blank and nothing is displayed.

frmMain.Hide;
frmLogin.Show;

I was experiencing this before with EWB2 so I'm wondering what has changed since the Preview version that makes it behave like this.

= Steve
Wed, Jul 1 2015 5:46 PMPermanent Link

Steve Gill

Avatar

I really should wake up first before typing.

This should have read:

"I tried hiding all of the forms and run-time, except the main form.  When I click on a button *on* the main form to show another screen, it just goes blank and nothing is displayed.

frmMain.Hide;
frmLogin.Show;

I *wasn't* experiencing this before with EWB2 so I'm wondering what has changed since the Preview version that makes it behave like this."

= Steve
Wed, Jul 1 2015 5:48 PMPermanent Link

Steve Gill

Avatar

If I create the forms dynamically then it works fine.  It's only when the forms are auto-created that there is a problem.

= Steve
Wed, Jul 1 2015 5:54 PMPermanent Link

Steve Gill

Avatar

Weird.  I just added one more form to the project and now all of a sudden it's working correctly!??!

= Steve
Wed, Jul 1 2015 6:13 PMPermanent Link

Raul

Team Elevate Team Elevate

On 7/1/2015 6:49 AM, Steve Gill wrote:
> I just created a brand new app in EWB2 B2 which consists of 5 forms.  When I run the app, all 5 forms show at the same time in the order they are created.  So Form 1 appears, then Form 2 appears on top of it, then Form 3 appears on top of Form 2, and so on. Basically they're stacked on top of each other.
> Is anyone else experiencing this?  I tried uninstalling EWB and then reinstalling but it still behaves the same.

I'm little unclear as to what the problem is ? Can you elaborate.

This looks normal to me - forms are auto-created and shown on app
startup so all 5 will appear stacked.

If you want to create them dynamically instead then don't auto-create
them (Project->Options->Form tab - move forms you want to create
dynamically from "Auto-create forms" list into "Available forms" list).

If you do want to auto-create them but just not show on startup then
just set the "Visible" property to false for the forms 2 thru 5. Now
only form 1 should show up as visible on startup and you can show other
forms if you want in code.

Raul
Wed, Jul 1 2015 6:53 PMPermanent Link

Steve Gill

Avatar

Hi Raul,

<< I'm little unclear as to what the problem is ? Can you elaborate.

This looks normal to me - forms are auto-created and shown on app
startup so all 5 will appear stacked.

If you want to create them dynamically instead then don't auto-create
them (Project->Options->Form tab - move forms you want to create
dynamically from "Auto-create forms" list into "Available forms" list).

If you do want to auto-create them but just not show on startup then
just set the "Visible" property to false for the forms 2 thru 5. Now
only form 1 should show up as visible on startup and you can show other
forms if you want in code. >>

Yes I'm aware of all this. It took me by surprise when it stacked all of the forms.  Except for the main form, I have now set all of the other forms to Visible := False.

The other problem I was having was that forms weren't displaying when I show-ed them.

For example:

frmMain.Hide;
frmLogin.Show;

The main form would hide but the login form would never show if it was auto-created.  If I dynamically created it then it would show. Other forms would behave the same.  I then added a 6th form and, without changing anything, the forms suddenly started showing when using the Show method.

So what I'm saying is the problem suddenly resolved itself, but I have no idea why.  Something weird was going on.  I have tried reproducing the issue with a new project but it is working fine.

= Steve


Raul
Wed, Jul 1 2015 7:08 PMPermanent Link

Raul

Team Elevate Team Elevate

On 7/1/2015 6:53 PM, Steve Gill wrote:
> The other problem I was having was that forms weren't displaying when I show-ed them.
> The main form would hide but the login form would never show if it was auto-created.  If I dynamically created it then it would show. Other forms would behave the same.  I then added a 6th form and, without changing anything, the forms suddenly started showing when using the Show method.
> So what I'm saying is the problem suddenly resolved itself, but I have no idea why.  Something weird was going on.  I have tried reproducing the issue with a new project but it is working fine.

Tried it here with new project and yes also works fine with auto-created
forms.

Only thing i can think of is some weird artifact from copy/paste or such
- in your original app (one with issues) did you create all forms and
controls on them from scratch or did you copy/paste the components from
one form to other(s) ?

Raul
Wed, Jul 1 2015 8:41 PMPermanent Link

Steve Gill

Avatar

Hi Raul,

<< Tried it here with new project and yes also works fine with auto-created
forms.

Only thing i can think of is some weird artifact from copy/paste or such
- in your original app (one with issues) did you create all forms and
controls on them from scratch or did you copy/paste the components from
one form to other(s) ?  >>

Yes, I copied some elements (logo, links, etc.) to each page. Maybe something got screwed up.

= Steve
Image