Thanks Lars,

I have created a buttonpad that calls a dialog with two radio buttons:
"Resize map window" "Do not resize map window" "Ok" "Cancel".

The ok button looks at CMD_INFO_OK and calls an IF...THEN depending on the
"into" value of the radio buttons.

If I use a default value for the radio buttons, naturally that one will be
selected at run time regardless of weather it is the current state or not. I
was hoping to find a true/false statement for the current state of this MI
feature.

The only other option I know of is to wright to an *.INI file, what is
selected, then refer to that each time the routine is called, but that is an
area I've never ventured.

In summary, I would like the radio button to also indicate which state is
currently in place (ie the Radio button used last would be the default value
the next time the routine is called) Preserve zoom or scale.

Thanks again,
Dave


-----Original Message-----
From: Lars V. Nielsen, GisPro [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 16, 2003 1:40 AM
To: David Reid
Cc: MapInfo-L
Subject: Re: MI-L Preserve Zoom/Scale


Hi David,

I can't find it either in MapperInfo(). Seems to have slipped thru the MB
"object model".

But at least you *can* set it with a "Set Map" to whatever setting you
prefer.

Only work-around I can think of, is saving a temp workspace file, and look
for the info in that file.

Best regards/Med venlig hilsen
Lars V. Nielsen
GisPro, Denmark
http://www.gispro.dk/
http://hjem.get2net.dk/lars-online/
WGS84: 10.26'40"E 55.20'20"N
----- Original Message ----- 
From: "David Reid" <[EMAIL PROTECTED]>
To: "MapInfo-L" <[EMAIL PROTECTED]>
Sent: Saturday, August 16, 2003 5:33 AM
Subject: MI-L Preserve Zoom/Scale


> I've looked through my MB ref at WindowInfo() and MapperInfo() but it 
> seems this isn't doable.
> 
> I wish to query what state the Mapper window is in with regards to 
> it's resize state (Map/Options/When resizing window Fit Map... Or 
> Preserve...scale, in Mapbasic Preserve Zoom and Preserve Scale)
> 
> It would appear this is one of the attributes that is either hidden, 
> or not doable.
> 
> Thanks,
> 
> David Reid
> 
> 
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com | 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> Message number: 8045
> 
> 



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 8053

Reply via email to