Thomas G�lden asked in agony:
> How does the professional MapBasic programmer community solve this common
> problem ? What are the preferred methods to writing resolution-independent
> applications ?
Hi all!
Well, there is always the possibility to query the system metrics, and
indeed, such solutions has been posted to this list. And they work.
However, knowing screen resolution is not enough.
The real question is: how much screen space is available in MapInfo for
the windows of my application?
This space is of course dependant on a number of factors, namely:
How big is the MI window, is it fullscreen or not?
How many Toolbars are open and docked, how wide is the toolbar at the
top?
Does the user have a status bar at the bottom?
Which is the width of the window borders?
Funny enuogh, all this must be known to the MapInfo kernel, in order to
tile windows.
Would it be impossible to dig out this info with a MB function, for
example
AppScreenInfo(attribute)
where attribute should be
SCREEN_INFO_WIDTH, SCREEN_INFO_HEIGHT given in current paper units.
I have done like this: flash open two windows, query their size with the
WindowInfo( ) function and then use that knowledge to size my own
windows.
No a very elegant solution but the best I could come up with.
Regards, Mats.E
--
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:Email/ [EMAIL PROTECTED] ICQ#9517386 :
:---------------------------------------------------------------------:
:Mail/ GISKRAFT, Mats Elfstroem, Vaepplingv 21, SE-227 38 LUND, SWEDEN:
:Phones: +46 46 145959, +46 70 595 3935 :
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]