|
|
Stop Window Closing
has anyone got a way to stop a popup window closing unless using a
button on the layout.
|
|
0
|
|
|
|
Reply
|
The
|
11/4/2004 5:40:25 AM |
|
don't quite understand your question, but I presume you want to show a
pop-up to a user which only can be clicked away by using a button.
This for FMP6 with WinXP, but should work in FMP5 and FMP7 as well (Allso on
MAC)
create a layout "MyPopLayout"
create a layout "MyWorkLayout"
create your logo, put this on your layout
create a script "MyPopScript"
create next steps:
- Allow User Abort (Off)
- Toggle Status Area (Hide, Lock) [The lock option is a seperate tickbox]
- Goto Layout (MyPopLayout)
- Pause/Resume Script [] (Which means indefinitely)
- Goto Layout (MyWorkLayout)
- Toggle Status Area [Show]
on your "MyPopLayout" create a button (Resume Script)
test your MyPopScript
When it works goto Edit:Preferences:Document. Select: when opening
Mypop.fp5:Perform script (MyPopScript)
Lookout, after you have done this last step there is no way to access your
file other then using the button. If there is an error in your script you
will be stuck, so please test the script by starting it manually.
If you want the example-file just e-mail me and I'll send it to you.
Ursus
"The Movie Master" <None@none.com.au> schreef in bericht
news:4189c075$1@dnews.tpgi.com.au...
> has anyone got a way to stop a popup window closing unless using a button
> on the layout.
>
|
|
0
|
|
|
|
Reply
|
ursus
|
11/4/2004 8:14:42 AM
|
|
ursus.kirk wrote:
> don't quite understand your question, but I presume you want to show a
> pop-up to a user which only can be clicked away by using a button.
> This for FMP6 with WinXP, but should work in FMP5 and FMP7 as well (Allso on
> MAC)
>
> create a layout "MyPopLayout"
> create a layout "MyWorkLayout"
> create your logo, put this on your layout
> create a script "MyPopScript"
> create next steps:
> - Allow User Abort (Off)
> - Toggle Status Area (Hide, Lock) [The lock option is a seperate tickbox]
> - Goto Layout (MyPopLayout)
> - Pause/Resume Script [] (Which means indefinitely)
> - Goto Layout (MyWorkLayout)
> - Toggle Status Area [Show]
>
> on your "MyPopLayout" create a button (Resume Script)
>
> test your MyPopScript
> When it works goto Edit:Preferences:Document. Select: when opening
> Mypop.fp5:Perform script (MyPopScript)
>
> Lookout, after you have done this last step there is no way to access your
> file other then using the button. If there is an error in your script you
> will be stuck, so please test the script by starting it manually.
>
> If you want the example-file just e-mail me and I'll send it to you.
>
> Ursus
>
>
> "The Movie Master" <None@none.com.au> schreef in bericht
> news:4189c075$1@dnews.tpgi.com.au...
>
>>has anyone got a way to stop a popup window closing unless using a button
>>on the layout.
>>
>
>
>
in FM7, new window:
� New Window [ Name: " whatever you want" ]
� Go to Layout [ Get ( ScriptParameter ) ]
� Show/Hide Status Area [ Hide ]
� Adjust Window [ Resize to Fit ]
� Move/Resize Window [ Current Window; Top: 200; Left: 400 ]
the script parameter can be used for layout name, so that one script can
be used by multiple buttons (you then need to rename window...
Chris Brown
Neurosurgery
University of Adelaide
|
|
0
|
|
|
|
Reply
|
Chris
|
11/4/2004 9:56:46 PM
|
|
|
2 Replies
238 Views
(page loaded in 0.078 seconds)
|
|
|
|
|
|
|
|
|