Jump to content

Custome Dialog Box (Script Maker)


This topic is 7307 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I noticed in Script Maker just now that I can make my own dialog boxes. There are not a whole lot of options but if I could do this it would save me a lot of work!

I know I can make a dialog box and have up to three buttons on it. What I don't know is if I can make each button go to a different Layout. If I could... oh, would that be awesome!

Version: v7.x

Platform: Mac OS X Panther

Link to comment
Share on other sites

Sure, just like in FM6. After the Show dialog script step, check for which button using If tests & Get ( LastMessageChoice ) = 1 or 2 or 3, and have each If test do a Go to Layout.

Is this what you were asking?

Link to comment
Share on other sites

Sintax

something like that should work (i'm sure someone will have a more elegant way to go it)

if Get ( LastMessageChoice ) = 1

go to Layout <layoutname>

endif

if Get ( LastMessageChoice ) = 2

go to Layout <layoutname>

else

go to Layout <layoutname>

endif

by using the input fields section the user can input data directly into fields

Link to comment
Share on other sites

This is all one script, I'll put each Script step on a separate line:

Show Custom Dialog[...

If [Get( LastMessageChoice ) = 1]

Go to Layout [foo]

Else If [Get( LastMessageChoice ) = 2]

Go to Layout [zoo]

Else If [Get( LastMessageChoice ) = 3]

Go to Layout [poo]

End If

In the first If test, Specify Calculations gets the: Get( LastMessageChoice ) = 1

In the Show Custom Dialog, the Specify buttons are for using a field's text for the dialog rather than typing in your own. Type in your own until you're used to how this works.

Clearer?

Link to comment
Share on other sites

Sintax said:

Thanks Aussie John -

Does that go into the Specify Calculations spot of the Dialog Setup or is this a seperate script all together?

This is a separate script ie put your "show custom dialog" before the items i indicated

Version: v6.x

Platform: Mac OS X Panther

Link to comment
Share on other sites

This topic is 7307 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.