Source language: Translate to:

Do not show an image or a text on starting a publication.

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Do not show an image or a text on starting a publication.

Postby jokobe » Sun May 13, 2007 12:57 am

1. I want to have an image in my pub, but this image should not be shown when starting the application, it should a appear a minute later

2. When running a mpeg file in a pub, is it possible to increase or decrease the picture size somehow automatic?

Thanks in advance for any helpful hint.

jokobe
jokobe
 
Posts: 1
Joined: Fri May 11, 2007 1:42 am
Location: Wolfenbüttel, Germany

Postby Gaev » Sun May 13, 2007 6:57 am

jokobe:
I want to have an image in my pub, but this image should not be shown when starting the application, it should a appear a minute later

a) At design time, uncheck the Visible property in the Initial State sub-section of the General section for the Picture object.

b) Setup a Timer object with ...

- the Start property set to Wait for TimerStart Action
- the Stop Timer after one execution checked

- in the TimerInterval section code ...
Code: Select all
ShowObject "Picture1" "None" "0"

... assuming "Picture1" is the name of the object in question ... then, in your pub's StartUp section ...
Code: Select all
TimerStart "Timer1" "60000"

So, 60000 milli seconds (which is one minute) after you start your pub, the Timer will pop ... and cause the hidden Picture object to be displayed.

Depending on your needs, instead of initially hiding (not visible) the Picture object, you can place it some place off screen ... and use MoveObject in the TimerInterval code to place it at the desired spot on your screen.
User avatar
Gaev
 
Posts: 3716
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest