kenneth2k1 Posted May 17, 2002 Posted May 17, 2002 I have a startup script. I hate to bore you with all the steps, so I won't (if this is not enough info, I will post the script). It opens another file, checks if a field is empty, if so then I would like it to maximize the related file. Basically the main file contains client records, and the related file contains producer records. If there is not a last name for producers, it shows a message that says "there are no defined producers." Then I want it to toggle the related file maximized so that they can create a producer record. The problem is that it wont. No matter what I try, the main file eventually ends up maximized. I have tried a toggle window script step, unchecking the "open minimized" box, and even calling an external script that toggles the window maximized in the related file. I can see it actually resize and become maximized, but the main file eventually comes to the front. I have checked and re-checked my scripts, and i think I have it right. But I guess not. Is there anything built into FM that always brings the main file forward after startup no matter what? Please help! Ken
kenneth2k1 Posted May 18, 2002 Author Posted May 18, 2002 Thanks for the help, but I already have something akin to that. And, as I said, when the external script is called to maximize the related file, it will resize to maximized, then the main file will reappear. I must stress that I have this problem ONLY with startup. I have buttons that toggle files during regular operation with no problem. I must just be missing something. Sorry. Ken
LiveOak Posted May 18, 2002 Posted May 18, 2002 The key here may be that you need to end the chain of scripting in the related file, NOT the main file. If your startup script terminates in the main file you will come back to this file. You might need a "halt" script step in your related file. -bd
kenneth2k1 Posted May 19, 2002 Author Posted May 19, 2002 Thanks for the insight, liveoak. I will most certainly try this when I get in the office on Monday. So what youre saying is that scripts that occur and end in a file will call this file to come to the front? And what I have to do is put a "halt script" step in my external script when the action is performed? It makes perfect sense, since the related file does appear as it should at the end of the script, but is finally overlapped by the main file window. Thanks much. Ken
Vaughan Posted May 20, 2002 Posted May 20, 2002 Another thing: I've found that in Windows (the operating system) that all the database windows need to be kept either maximised or minimised. Making one window "restored" has the effect of un-maximising all the other maximised database windows.
kenneth2k1 Posted May 20, 2002 Author Posted May 20, 2002 You know what? I noticed the same thing Vaughan. It drives me nuts (actually, it does alot worse, but I won't mention it here). I makes no sense and makes it look stupid. Thanks, Oak for the info. I did as you said and it works like a charm. Ken
Recommended Posts
This topic is 8227 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 accountSign in
Already have an account? Sign in here.
Sign In Now