Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Chasing arrows don't chase (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Re: RealDatabase Quirks
Next thread: Canvas redraw...


Re: Changing Slider Bar Orientation   -   Ola Olsson
  Chasing arrows don't chase   -   knee
   Re: Chasing arrows don't chase   -   Kevin Ballard
    Re: Chasing arrows don't chase   -   knee
     Re: Chasing arrows don't chase   -   Kevin Ballard
      Re: Chasing arrows don't chase   -   knee
       Re: Chasing arrows don't chase   -   Kevin Ballard
        Re: Chasing arrows don't chase   -   knee
         Re: Chasing arrows don't chase   -   Kevin Ballard

Chasing arrows don't chase
Date: 01.08.03 03:29 (Fri, 1 Aug 2003 14:29:58 +1200)
From: knee
My app has one main window containing a PagePanel with 7 pages and
upwards of 250 controls. When I launch the app it takes some time for
RB to initialize my database and "assemble" this main window before I
show it - a few seconds anyway. I therefore put up a little splash
window first to assure the user that something IS happening, then hide
it when the main window is ready to be shown. I put a ChasingArrows
control on this splash window, but the arrows don't chase - they're
just a static display, I can't get them to rotate. I've tried
"refreshing" the splash window, and putting elements of the startup
procedure in a thread, but this just makes the main window get drawn
element by element on the screen - very ugly - even though I "hide" it
first. Any ideas?

Ian

------------------------------
Ian G. Morris - Tonewright
<email address removed>

"I get confused - did we go to the Moon and meet aliens,
or was the whole thing faked? I can never remember."

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

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

Re: Chasing arrows don't chase
Date: 01.08.03 03:47 (Thu, 31 Jul 2003 21:47:53 -0500)
From: Kevin Ballard
You need to put your initializing code in a thread. Otherwise, the
chasing arrows don't ever get a chance to update.

Are you initializing your window before or after it shows? If you have
a splash screen, then you could create the window and set the Visible
to False, initialize everything, then Show it and it should work fine.

On Thursday, July 31, 2003, at 09:29 PM, knee wrote:

> My app has one main window containing a PagePanel with 7 pages and
> upwards of 250 controls. When I launch the app it takes some time for
> RB to initialize my database and "assemble" this main window before I
> show it - a few seconds anyway. I therefore put up a little splash
> window first to assure the user that something IS happening, then hide
> it when the main window is ready to be shown. I put a ChasingArrows
> control on this splash window, but the arrows don't chase - they're
> just a static display, I can't get them to rotate. I've tried
> "refreshing" the splash window, and putting elements of the startup
> procedure in a thread, but this just makes the main window get drawn
> element by element on the screen - very ugly - even though I "hide" it
> first. Any ideas?

Re: Chasing arrows don't chase
Date: 01.08.03 04:50 (Fri, 1 Aug 2003 15:50:53 +1200)
From: knee
Here's an abbreviated rundown of my startup procedure:

SplashWindow.show //this has the chasing arrows on it
DoInitThread:
InitObjectManagers //module routine
InitDatabase //module routine

MainWindow.hide //this has 6 pagepanels & 250+ controls
MainWindow doInitStuff //set a few runtime values

SplashWindow.hide
MainWindow.show

The module routines take 9 ticks, drawing and initialising the
MainWindow takes 2.5 seconds. The arrows chase for a very brief time (9
ticks?) and then stop, I guess once the MainWindow is called. Also, the
MainWindow shows itself BEFORE it does the MainWindow doInitStuff
routine, then disappears for a split second and reappears.

On Friday, Aug 1, 2003, at 14:47 Pacific/Auckland, Kevin Ballard wrote:

> You need to put your initializing code in a thread. Otherwise, the
> chasing arrows don't ever get a chance to update.
>
> Are you initializing your window before or after it shows? If you have
> a splash screen, then you could create the window and set the Visible
> to False, initialize everything, then Show it and it should work fine.
>
> On Thursday, July 31, 2003, at 09:29 PM, knee wrote:
>
>> My app has one main window containing a PagePanel with 7 pages and
>> upwards of 250 controls. When I launch the app it takes some time for
>> RB to initialize my database and "assemble" this main window before I
>> show it - a few seconds anyway. I therefore put up a little splash
>> window first to assure the user that something IS happening, then
>> hide it when the main window is ready to be shown. I put a
>> ChasingArrows control on this splash window, but the arrows don't
>> chase - they're just a static display, I can't get them to rotate.
>> I've tried "refreshing" the splash window, and putting elements of
>> the startup procedure in a thread, but this just makes the main
>> window get drawn element by element on the screen - very ugly - even
>> though I "hide" it first. Any ideas?
>
> --
> Kevin Ballard
> REAL Software, Inc.
> http://www.realsoftware.com
>
> ---
> A searchable archive of this list is available at:
> <http://support.realsoftware.com/listarchives/search.php>
> Unsubscribe or switch delivery mode:
> <http://support.realsoftware.com/listmanager/>
Ian

------------------------------
Ian G. Morris - Tonewright
<email address removed>

"If there really was a UFO cover-up, do you think NASA
would be a civilian organization reduced to orbiting in a
20-year-old space shuttle observing how plants germinate?"

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

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

Re: Chasing arrows don't chase
Date: 01.08.03 05:00 (Thu, 31 Jul 2003 23:00:12 -0500)
From: Kevin Ballard
Try setting MainWindow.Visible to False in the properties window, so it
shouldn't show at all until the MainWindow.Show call.

On Thursday, July 31, 2003, at 10:50 PM, knee wrote:

> Here's an abbreviated rundown of my startup procedure:
>
> SplashWindow.show //this has the chasing arrows on it
> DoInitThread:
> InitObjectManagers //module routine
> InitDatabase //module routine
>
> MainWindow.hide //this has 6 pagepanels & 250+ controls
> MainWindow doInitStuff //set a few runtime values
>
> SplashWindow.hide
> MainWindow.show
>
> The module routines take 9 ticks, drawing and initialising the
> MainWindow takes 2.5 seconds. The arrows chase for a very brief time
> (9 ticks?) and then stop, I guess once the MainWindow is called. Also,
> the MainWindow shows itself BEFORE it does the MainWindow doInitStuff
> routine, then disappears for a split second and reappears.

Re: Chasing arrows don't chase
Date: 01.08.03 06:21 (Fri, 1 Aug 2003 17:21:57 +1200)
From: knee
Yep, that's better. I get a little burst of chasing arrows, then a
couple seconds of nothing, then another little burst, then the
MainWindow shows at the right time. I guess when that MainWindow is
being "assembled" it's not gonna give time to *anything*...

On Friday, Aug 1, 2003, at 16:00 Pacific/Auckland, Kevin Ballard wrote:

> Try setting MainWindow.Visible to False in the properties window, so
> it shouldn't show at all until the MainWindow.Show call.
>
> On Thursday, July 31, 2003, at 10:50 PM, knee wrote:
>
>> Here's an abbreviated rundown of my startup procedure:
>>
>> SplashWindow.show //this has the chasing arrows on it
>> DoInitThread:
>> InitObjectManagers //module routine
>> InitDatabase //module routine
>>
>> MainWindow.hide //this has 6 pagepanels & 250+ controls
>> MainWindow doInitStuff //set a few runtime values
>>
>> SplashWindow.hide
>> MainWindow.show
>>
>> The module routines take 9 ticks, drawing and initialising the
>> MainWindow takes 2.5 seconds. The arrows chase for a very brief time
>> (9 ticks?) and then stop, I guess once the MainWindow is called.
>> Also, the MainWindow shows itself BEFORE it does the MainWindow
>> doInitStuff routine, then disappears for a split second and >> reappears.

Ian

------------------------------
Ian G. Morris - Tonewright
<email address removed>

"If there really was a UFO cover-up, do you think NASA
would be a civilian organization reduced to orbiting in a
20-year-old space shuttle observing how plants germinate?"

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

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

Re: Chasing arrows don't chase
Date: 01.08.03 06:27 (Fri, 1 Aug 2003 00:27:54 -0500)
From: Kevin Ballard
Well, what are you doing to assemble the window?

On Friday, August 1, 2003, at 12:21 AM, knee wrote:

> Yep, that's better. I get a little burst of chasing arrows, then a
> couple seconds of nothing, then another little burst, then the
> MainWindow shows at the right time. I guess when that MainWindow is
> being "assembled" it's not gonna give time to *anything*...

Re: Chasing arrows don't chase
Date: 01.08.03 06:57 (Fri, 1 Aug 2003 17:57:52 +1200)
From: knee
Nothing. I think it's just because it has so many controls it takes a
while for the system to "manufacture" it (over 2 seconds on my iBook
800). There are a some runtime values that are set for a few of the
controls, but there's not much else going on.

On Friday, Aug 1, 2003, at 17:27 Pacific/Auckland, Kevin Ballard wrote:

> Well, what are you doing to assemble the window?
>
> On Friday, August 1, 2003, at 12:21 AM, knee wrote:
>
>> Yep, that's better. I get a little burst of chasing arrows, then a
>> couple seconds of nothing, then another little burst, then the
>> MainWindow shows at the right time. I guess when that MainWindow is
>> being "assembled" it's not gonna give time to *anything*...
>>

Ian

------------------------------
Ian G. Morris - Tonewright
<email address removed>

"If there really was a UFO cover-up, do you think NASA
would be a civilian organization reduced to orbiting in a
20-year-old space shuttle observing how plants germinate?"

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

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

Re: Chasing arrows don't chase
Date: 01.08.03 09:13 (Fri, 1 Aug 2003 03:13:37 -0500)
From: Kevin Ballard
Hrm, upwards of 250 controls, that's a *lot*.

Have you tried setting all controls of the same type that have no code
(like statictext lables) to be part of a control array? You can cut
down on the size of the app (a few k) and number of controls by doing
that, and it might make it initialize faster (I don't really know,
though, that's just a hypothesis)

On Friday, August 1, 2003, at 12:57 AM, knee wrote:

> Nothing. I think it's just because it has so many controls it takes a
> while for the system to "manufacture" it (over 2 seconds on my iBook
> 800). There are a some runtime values that are set for a few of the
> controls, but there's not much else going on.