June 7, 200421 yr 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
June 7, 200421 yr 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:
June 7, 200421 yr Author 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
June 7, 200421 yr 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.
June 7, 200421 yr Author 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
Create an account or sign in to comment