Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I have what I thought would be a very simple task.

The last step in my startup script is to run a zoom window script which goes to Layout#1 and then sizes it to the correct size using the toggle window (zoom)

I have built the layout#1 using the usual tricks of placing hidden lines at the furthest right and lowest points of the required window size.

In fact the zoom script works perfectly - It resizes the window exactly as required. In fact if I run the startup script from scriptmaker then it also zooms perfectly

BUT.....

It DOES NOT ZOOM CORECTLY WHEN I OPEN THE PROGRAM and the startup script runs automatically - The window only zooms to half the required screen height.

The only other thing I can think of is that an earlier step in the startup script forces the toolbars off and this might be affecting the final size of the window.

It is very annoying as I feel I just must be missing something especially as I really need to make this happen.

Any thoughts gents?

Thanks

Posted

Are you opening any other files after zooming the window? Are other files opening via related fields on layout#1 or the layout that the database starts on before you switch to layout#1? This could possibly cause the window to resize itself erratically.

Posted

You could verify if the script actually executes by adding a 'beep' scriptstep after the zoom step.

Maybe the file is already opened 'automatically' by a relation to a file that opened earlier, in which case the startup script will not run.

Regards,

Ernst

Posted

Thanks for the input

But...

1) The file is the only one opening from the startup script - so nothing is opening it by relationship

2)I have checked by adding a beep command to the end of the script and that always works - but the window still does not zoom to the4 correct position

It REALOLY is a very simple script but it just does not appear to do what I ask it. My screen size is 1024 x 768 and I am using WinXP Home.

Still Stuck

Posted

1) What I meant by opening it by relationship is that you wouldn't have a specific Open[] or step referencing a related file in your script, but a field on a layout would be related to a different file, and force it to open without your control.

2) While the beep is a nice interface tool, it only informs you that the script finished. It says nothing about any other scripts that might be running.

Can you post your script for us or attach the file?

This topic is 7782 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.