to keep the current Y position, but revert to the min/max allowed X position:
#################### Set Map Center (firstSmall_x1 , latest_y1) #################### i'm sure you can figger out the rest. -----Original Message----- From: Scott Walsh [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:08 PM To: [EMAIL PROTECTED] Subject: MI-L Workspace Position--shifting map??? List, I'm not sure if I can explain this well enough, but here I go... Here's what I'm trying to do: I have a Workspace (NWSMap) which I'm trying to control how far a user can pan (I don't want them to go too far North, South, East or West). So when the user zooms, pans etc. in the WinChangedHandler Sub I'm getting the current values... latest_x1 = MapperInfo(NWSMap, MAPPER_INFO_MINX) latest_y1 = MapperInfo(NWSMap, MAPPER_INFO_MINY) latest_x2 = MapperInfo(NWSMap, MAPPER_INFO_MAXX) latest_y2 = MapperInfo(NWSMap, MAPPER_INFO_MAXY) So I want to compare, for example, "latest_x1" against a constraint. Example: IF latest_x1 > firstSmall_x1 THEN 'SO IF THE CURRENT X1 VALUE IS > THEN THE CONSTRAINT THEN I WANT TO MOVE/SHIFT 'THE WORKSPACE WINDOW BACK TO THE MAXIMUM POSITION I SET ("firstSmall_x1"). END IF I will need to compare all 4 values and then reset the map position if the current value meets the condition. QUESTION: How do I reset the window position? Thanks in advance for your help! Scott --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9024 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9025
