PDA

View Full Version : Show Progress Indicator



Chris Wasley
09-20-2002, 02:52 AM
I have a rather large Powerpoint Slideshow (.pps) which I need to be able to launch from a menu item.
I would like to show if possible, some sort of File Progress Indicator so that the user knows that the presentation is being loaded.

If this is not possible, does anyone know of an alternative method to show that something is happening. I played around with the Busy action but couldn't get the mouse cursor to change, and when the presentation exited, the Busy message is still there.
The pps file is large and hence does take a long time to load etc. so am looking for a nice way to handle it.
Thanks in advance
Chris

TJ_Tigger
09-20-2002, 08:59 AM
It probably is not the best way, but what about a timed message. Have a dialog popup for 10 seconds stating that the file is loading.

Like I said, not accurate as far as the real time it take for the application to load but it is something.

<IR_ACTIONS_LIST>
<Action name="Timed Message">
<Type>52</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<DialogMessage>Please Wait...</DialogMessage>
<Seconds>5</Seconds>
</Action>
</IR_ACTIONS_LIST>

Lorne
09-20-2002, 10:10 AM
Just a note about the "Dialog - Busy" action...it's made so you turn it on with TRUE, and then use another "Dialog - Busy" action to turn it off with FALSE.

TJ_Tigger
09-20-2002, 02:40 PM
Just to be dense, based on the information above can you do a file execute with the wait function to open the file you want to open. Could you have the Dialog.busy set to true just before this and when the wait is done have another dialog.busy set to false to have it disappear?

Thinking out loud

Lorne
09-20-2002, 03:08 PM
Yes, exactly.

TJ_Tigger
09-20-2002, 04:06 PM
Great!!

Doesn't work. I get an error when I try to execute a .mov file. it states:

Error Executing file
<file path and file name>

I can do a file.open on the file and it works great. But when I try to execute it I get the error. Are there other arguments I need to optain and specify before I can execute a .mov file? Should I get the default viewer? Specify a working directory?

Here is what I have in the actions "On Mouse Click"

<IR_ACTIONS_LIST>
<Action name="Busy">
<Type>135</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Display>TRUE</Display>
<Text>Please Wait...</Text>
</Action>
<Action name="Execute">
<Type>8</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%SrcDir%\movie\P4060807.MOV</FileName>
<CommandLine/>
<WorkingDir/>
<RunMode>0</RunMode>
<WaitForReturn>1</WaitForReturn>
</Action>
<Action name="Busy">
<Type>135</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Display>FALSE</Display>
<Text>Please Wait...</Text>
</Action>
</IR_ACTIONS_LIST>

TJ_Tigger
09-20-2002, 04:12 PM
It works with a file open, but the Dialog.Busy goes away before the application is drawn to the screen. I put a sleep in here for 5 seconds and it looks better. I will have to keep trying the execute thing. Don't know if that will be better or not. Will keep playing