Wikisnoodle Posted December 15, 2011 Posted December 15, 2011 Hi - I have decided to replace a few drop down lists with small windows/layouts carrying portals. I have set the window height (via 'New Window') to 225px, but they always open at 167px. If I click in the window (outside the portal) the height changes to 235px! It does what I expect if I use a greater height measurement (eg: 445), but why is it ignoring me at 225? Is 235 a default minimum? And, if so, why is it opening at 167? It sets to 225 if I use Adjust Window (resize to fit) based on a background item, but I'd rather not use this.
Wikisnoodle Posted December 15, 2011 Author Posted December 15, 2011 OK - A bit more experimenting has revealed that 445 is no longer working (perhaps I imagined it!). I've discovered that, whatever size I ask for, it opens 58px smaller! Guessing this has something to do with my next step hiding the status area, I added a move/resize step, after hiding the status area, specifying 225px (again) ...and that works. Is this the way it's done? Seems a tad illogical!
comment Posted December 15, 2011 Posted December 15, 2011 I have set the window height (via 'New Window') to 225px, but they always open at 167px. If I click in the window (outside the portal) the height changes to 235px! I cannot reproduce your issue. If your current window shows the status area, then New Window [ Height:225 ] will open a new window of total height 225 - including the status area. If your script does: New Window [ Height:225 ] Show/Hide Status Area [ Hide ] then the window will first open at height 225, then close the status area, thus reducing the window height by 58 pixels (in Mac OS).
Wikisnoodle Posted December 15, 2011 Author Posted December 15, 2011 You're right of course - I understood it eventually, after writing - but it does require a third step to achieve 225 without status area ...or I've got to remember to add 58 to every 'New Window' step. This is a Mac only project, but how would that work if it was cross-platform? The reference to the height changing to 235 was just something I noted. I was actually clicking (not dragging) on Finder's lower right 'drag window corner' square, and the height jumped to 235 (not a problem). Thanks for your time.
comment Posted December 15, 2011 Posted December 15, 2011 The thing is that a new window inherits the spawning window's attributes - but you don't want the status area to show in your new window. So yes, you should call the new window as: New Window [ Height:225 + 58 ] Show/Hide Status Area [ Hide ] how would that work if it was cross-platform? I don't remember if 58 is the correct number to use with Windows, too. If not, you would use the Get (SystemPlatform) function to pick the correct number in the above calculation.
Wikisnoodle Posted December 15, 2011 Author Posted December 15, 2011 Great stuff - filed away for future reference :)
Recommended Posts
This topic is 4726 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