Xojo Conferences
XDCMay2019MiamiUSA

[WE] How do I handle a "Please Wait" window? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: [WE] No clipboard in the WebEdition?
Next thread: Changing the TextFont on multiple controls


Re: [OT] Large Screenshots   -   Rubber Chicken Software Co.
  [WE] How do I handle a "Please Wait" window?   -   Greg Olson-Hyde
   Re: [WE] How do I handle a "Please Wait" window?   -   Greg Olson-Hyde
   Re: [WE] How do I handle a "Please Wait" window?   -   Greg O'Lone
   Re: [WE] How do I handle a "Please Wait" window?   -   Greg Olson-Hyde
   Re: [WE] How do I handle a "Please Wait" window?   -   Greg Olson-Hyde
   Re: [WE] How do I handle a "Please Wait" window?   -   Christian Schmitz
   Re: [WE] How do I handle a "Please Wait" window?   -   Bill Reynolds
   RE: [WE] How do I handle a "Please Wait" window? [Multi-threading inWE]   -   Hodges, Robert CTR USAF AFMC 520 SMXS/MXDEC

[WE] How do I handle a "Please Wait" window?
Date: 03.08.11 04:54 (Wed, 3 Aug 2011 13:54:27 +1000)
From: Greg Olson-Hyde
Hi,

How do I handle the following situation:

ProgressWheel1.Visible = True

PleaseWait.Show

Dim vPDF As New MyDynapdfMBS

{A fairly long PDF creation happens here.}

The ProgressWheel does not show at all and the 'PleaseWait' window does not display until AFTER the PDF has been created - defeats the purpose really!

I thought I could use a Thread, but they don't seem to be in the WebEdition.

Any Ideas would be very welcome :-))

Cheers

Greg Olson-Hyde
Sydney Australia

2.8 GHz Quad-Core Mac Pro
Mac OS X 10.6.6
RB 2011r2 Enterprise

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: [WE] How do I handle a "Please Wait" window?
Date: 03.08.11 16:54 (Thu, 4 Aug 2011 01:54:11 +1000)
From: Greg Olson-Hyde

On 4 Aug 2011, at 01:21, Greg O'Lone wrote:

> 1. In your project editor, create a new class and set its Super to Thread.
> 2. On your WebPage, add a generic object and change its Super to Thread.

Ahhhhhhhhhhhh! I was looking for it just above the "Timer" control just like it is in a desktop app - must have missed your solution in the docs.

Thanks for the insight!

Cheers

Greg Olson-Hyde
Sydney Australia

2.8 GHz Quad-Core Mac Pro
Mac OS X 10.6.6
RB 2011r2 Enterprise

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: [WE] How do I handle a "Please Wait" window?
Date: 03.08.11 16:21 (Wed, 3 Aug 2011 11:21:21 -0400)
From: Greg O'Lone
Two ways:

1. In your project editor, create a new class and set its Super to Thread.
2. On your WebPage, add a generic object and change its Super to Thread.

Greg O'Lone
Software Engineer
Real Software, Inc.
Real World 2012, THE Real Studio Event of the year!

On Aug 3, 2011, at 6:57 AM, Greg Olson-Hyde wrote:

>
> On 3 Aug 2011, at 16:35, Christian Schmitz wrote:
>
>>> I thought I could use a Thread, but they don't seem to be in the WebEdition.
>>
>> They are there. And that could be the way to go. Because if you start a thread for the work, the event returns and the progressbar show command is sent to the client. Later you can update the webpage properties to show the content when you finish.
>> Be aware that you need to have properties in the thread where you save references to the right webpage instance.
>
> Thanks Christian,
>
> I have looked but I still cant find a Thread - I am obviously looking in the wrong place - where should I look?
>
> Cheers
>
> Greg Olson-Hyde
> Sydney Australia
>
> 2.8 GHz Quad-Core Mac Pro
> Mac OS X 10.6.6
> RB 2011r2 Enterprise
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: [WE] How do I handle a "Please Wait" window?
Date: 03.08.11 11:58 (Wed, 3 Aug 2011 20:58:37 +1000)
From: Greg Olson-Hyde

On 3 Aug 2011, at 15:43, Bill Reynolds wrote:

> I'd imagine WebDialog (modal) may work for your application, closing it
> programatically after your operations run.

Thanks for your reply Bill,

Tried that but it is the same - doesn't fire until the PDF process is complete - unless I have done something wrong! (has been known to happen!)

Cheers

Greg Olson-Hyde
Sydney Australia

2.8 GHz Quad-Core Mac Pro
Mac OS X 10.6.6
RB 2011r2 Enterprise

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: [WE] How do I handle a "Please Wait" window?
Date: 03.08.11 11:57 (Wed, 3 Aug 2011 20:57:09 +1000)
From: Greg Olson-Hyde

On 3 Aug 2011, at 16:35, Christian Schmitz wrote:

>> I thought I could use a Thread, but they don't seem to be in the WebEdition.
>
> They are there. And that could be the way to go. Because if you start a thread for the work, the event returns and the progressbar show command is sent to the client. Later you can update the webpage properties to show the content when you finish.
> Be aware that you need to have properties in the thread where you save references to the right webpage instance.

Thanks Christian,

I have looked but I still cant find a Thread - I am obviously looking in the wrong place - where should I look?

Cheers

Greg Olson-Hyde
Sydney Australia

2.8 GHz Quad-Core Mac Pro
Mac OS X 10.6.6
RB 2011r2 Enterprise

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: [WE] How do I handle a "Please Wait" window?
Date: 03.08.11 07:35 (Wed, 3 Aug 2011 08:35:24 +0200)
From: Christian Schmitz

Am 03.08.2011 um 05:54 schrieb Greg Olson-Hyde:

> Hi,
>
> The ProgressWheel does not show at all and the 'PleaseWait' window does not display until AFTER the PDF has been created - defeats the purpose really!

Yes, but that's the way Web Edition works.
You get an event and process it. The answer is sent to the client when your event finishes.

> I thought I could use a Thread, but they don't seem to be in the WebEdition.

They are there. And that could be the way to go. Because if you start a thread for the work, the event returns and the progressbar show command is sent to the client. Later you can update the webpage properties to show the content when you finish.
Be aware that you need to have properties in the thread where you save references to the right webpage instance.

Greetings
Christian

Re: [WE] How do I handle a "Please Wait" window?
Date: 03.08.11 06:43 (Tue, 2 Aug 2011 22:43:32 -0700)
From: Bill Reynolds
I'd imagine WebDialog (modal) may work for your application, closing it
programatically after your operations run.

-Bill

On Wed, 3 Aug 2011 13:54:27 +1000, Greg Olson-Hyde wrote:
> Hi,
>
> How do I handle the following situation:
>
> ProgressWheel1.Visible = True
>
> PleaseWait.Show
>
> Dim vPDF As New MyDynapdfMBS
>
> {A fairly long PDF creation happens here.}
>
> The ProgressWheel does not show at all and the 'PleaseWait' window
> does not display until AFTER the PDF has been created - defeats the
> purpose really!
>
> I thought I could use a Thread, but they don't seem to be in the WebEdition.
>
> Any Ideas would be very welcome :-))
>
> Cheers
>
> Greg Olson-Hyde
> Sydney Australia
>
> 2.8 GHz Quad-Core Mac Pro
> Mac OS X 10.6.6
> RB 2011r2 Enterprise
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>