Fridolin Posted June 7, 2004 Posted June 7, 2004 Hi there! I'm putting in startscripts in all my files that include the step resize window. The problem is that the result differs depending if you are a mac or a win user. In Windows XP the window is a little bit smaller. Any ideas why? Fridolin
dbruggmann Posted June 7, 2004 Posted June 7, 2004 You have to place an If condition in your script and look out for the system your solution is currently used. Use the status function "Get ( System Platform )", from FM Help:
Fridolin Posted June 7, 2004 Author Posted June 7, 2004 Thank's for the input. But it is a bit strange. I mean, a pixel is a pixel... Oh well, the thing I work on now will run mostly on mac, so I think I'll save myself some work by leaving a margin instead. Do You know if there are any standard docs on window sizes on different platforms. Would save a lot of work on my next project. Fridolin
The Shadow Posted June 7, 2004 Posted June 7, 2004 The window size settings include the border of the window. On Windows, these are under user-control, they can differ depending on the theme being used, etc. FM7 has new methods, Get(WindowContentHeight) and Get(WindowContentWidth) that would allow you to compute the current size of the borders when doing a resize, to guarentee you get a consistent size for the content-area, which sounds like what you want.
Fridolin Posted June 7, 2004 Author Posted June 7, 2004 Thanks for the tip! Didn't know about these functions. On a energetic day I'll try to implement it. That's the problem, all these new nice features in FM 7 are great but they mean more work and I'm a lazy bugger. Fridolin
Recommended Posts
This topic is 7475 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