Jump to content

Switch forms based on screen height


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

Recommended Posts

  • Newbies

I'm designing an application that will be distributed to peole with different screen resolutions.

I created a calc field with status(currentScreenHeight). I then created another calc field, using "IF", that returns a "0" value if height is 480 and a "1" value if height is not 480.

Now I need to have a script that takes me to the form that I set up for 640x480 resolution when the calc field has a value of "1" and takes me to another form if the value is "0".

Well... this is where I'm stuck. Any suggestions?

Link to comment
Share on other sites

Make a script that goes to the correct layout based on the screen height:

if[status(currentScreenHeight)=480]

Go To Layout(Layout1)

else

Go To Layout(Layout2)

End If

Then select Document preferences from the Edit menu. Select "When Opening...perform script", and pick the above script.

[This message has been edited by BobWeaver (edited January 13, 2001).]

Link to comment
Share on other sites

This topic is 7877 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
 Share

×
×
  • Create New...

Important Information

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