Thanks Don, That is why I risk looking "out of date" when I post, because even when what I share is out of date, someone else has another nugget to add that takes it to another level.
Thanks for the additional curve. I have also learned another method that is a little better than nothing, but not as good as Pause with AllowUserAbort(Off), but useful when there is no option other than opening a window and ending up with a "Halt" awaiting further action. You can set this new window's layout to have a menu-set with NO menu options, other than File Copy and then deactivate all commands except Close, then assign this the script step "Halt" -- and this affects the window "X" as well. Or do as I do because I love the pop-up window, but prefer maximized application state in most circumstances. Because of this preference I am destined to have to enter a new window only after resizing the current window to width:GetDesktopWindowWidth; height:GetDesktopWindowHeight; top:0; left:0. And then doing my business. Thus to have things revert to Maxized after new window action, I have my close routine maximize and *then* CloseWindow(). And I assign the Close menu item to this. I think the WishList item you articulate is still common enough to make it worthwhile without all the gerryrigging I just described. Speaking of wishlisting: three surrounding this topic include: 1. I wish that "Freeze Window" could "lock onto" the current window while you travel to different windows, and that in particular, this applied to the "Window State" of being Maximized (or whatever else). It is more true to the intent of "Freeze" to begin with (that no change of the view is made) and to be able to freeze all aspects of one window while operating in another seems in line with the "spirit" of this new (to me) Multi-Window feature set. I know that this "stay maximized" tends toward "windows" and many, miximized windows tends toward "mac" so I don't want ruffle the zealots' feathers, but I lobby for FileMaker in many context's because it is X-Plat and this seems to be an aspect of FileMaker that uncharacteristically tends to the mac users among us. (Please this is not a flame -- I worked exclusively on Macs and loved them when I was paid by a Mac institution, now I work for Windows people, so I am windows based.) 2. Short of the above, and also regardless of above... It would seem that "resize to fit" is a "shorthand" for what could be done by a whole string of Get values and window resizing settings based upon those. (I know that there are realestate differences X-Plat and this automatically resolves some of those, but still I think it could be done by some Get functions too). So I propose two addendums to this: either within, or as additional options called one after the other, offer a "Maximum - mixed" that is the equivelent to resizing as I kludge above (better term certainly, but I think you get it). Also, allow the window to be "auto-center-center" (or "up-left", "center-right", "top-center" and so on, 9 total). I have written the custom functions centerFromLeft() = (GetWindowDesktopWidth - GetWindowWidth)/2 and centerFromTop() = (GetWindowDesktopHeight - GetWindowHeight)/2 but it is still somewhat overkill for something that is so normal. 3. I wish that all resizing attributes would allow (like CSS) either px or %, where % would be "of available window", that way I could place a window centered this way: height:40%; width:60%; from top: 30%; from left: 20% (this would imply "GetWindowHeightPercent" and "GetWindowWidthPercent" (both calculable, or could be custom functions). Another option, make the "orientation" able to be altered, that is allow "offset from horizontal center" or "offset from vertical center" instead of just top and left. Again, most of this can be done via existing expressions of the very exacting functions, but since they have the shortcut "resize to fit" then FM can't be totally against some such shortcuts... Or maybe extend what can be done in Custom Functions so I can write my own shortcuts. Personally, I would like there to be the ability to write a fullon scripts, I don't understand the limitation. Also I would like non-required parameters with defaults (I do this already by testing empty, but you have to pass the empty string), and (almost too cool) the ability to have variable number of function parameters like PHP. But while I am at it I might as well wish for OO and construct custom methods -- this might be the limitation for Custom Functions and scripts, and if Custom Functions were one thing, and Custom Methods that could be written and applied to standard FileMaker objects (like windows) that would let *me* do all that I ask for above for myself if I like, you would just need to be able to "apply custom method" script step. Wow! The power of caffiene! I meant this to be a short "Thanks Don" and it grew and grew. Thanks for anyone's input. -- Brad On Fri, Jul 11, 2008 at 2:13 PM, Don Wieland <[EMAIL PROTECTED]> wrote: > On Jul 11, 2008, at 11:19 AM, Brad Lowry wrote: > > I *cannot* believe that this crucial expansion of AllowUserAbort is not in >> the help system prominently with links to a more robust explanation of its >> effect on the whole new Multiple Windows paradigm (and its really tough >> implications with Record Ownership if not handled properly). I shouldn't >> have to stumble over this! (Or was I missing something obvious -- totally >> possible :-) >> > > Hi Brad, > > Glad you found some joy in FileMaker ;-) I have been using this routine > similar to this to lock windows for years now : > > Allow User Abort [OFF] > Loop > Pause/Resume Script [] > End Loop > > And now that you can pass script parameters, it become even more useful. I > wish I knew you did not know about it about 5 years ago. I would of shared > it with you. That being said, from a programming stand point, it would be > nice if FileMaker would offer us a: > > Set Window Options [Close: ON, Minimize: ON, Maximize: OFF] > > and remove the buttons according to settings. DEFAULT could be ALL ON. > > ---- > > Another little trick with the new multiple window scheme: You can pop open > a new window OFF-SCREEN to use in your processes. > > For example: > > New Window [Height: 0, Width: 0, Top: Get(WindowDesktopHeight), Left: > Get(WindowDesktopWidth)] > > I usually create a sub-script called "Process Window" and uses it in other > scripts. > > I find that in FMP9, I find process move fast when done OFF-SCREEN. Weird > huh??? > > Maybe a script that uses this would look something like this: > > Allow User Abort [OFF] > Set Error Capture [ON] > Commit Record/Request [] > Perform Script [Process Window] > Go To Layout [Whatever] > Stuff > Stuff > Stuff > Close Window [] > > You original window will remain intact and unaltered. The only problem is > that you must make sure you close it via the same script otherwise it just > lingers there hidden. > > Maybe this is helpful to someone ;-) > > Take care!!! > > Don Wieland > D W D a t a C o n c e p t s > ~~~~~~~~~~~~~~~~~~~~~~~~~ > [EMAIL PROTECTED] > Direct Line - (714) 389-4026 > > Integrated data solutions to fit your business needs. > -- Sincerely, Brad
