Pitney Bowes

Den danske PB Software blog

Lås aktuel visning i kortvindue

by Peter Horsbøll Møller | 12. April 2012 | Ingen kommentarer

Har du nogen sinde haft brug for at forhindre et kortvindue i et ændre zoom eller center? I så fald er her en lille smart løsning på problemet.

MapBasic programmet DisableMapZoomAndPan.mbx kan låse kortvinduet, så man ikke kan zoome eller panorere i det. Det fungerer på følgende måde:

0. Indlæs programmet via Værktøj > Kør MapBasic-program…

1. Aktiver låsning af vinduet via Kort > Disable or Enable Zoom and Pan in Map

Nu læser programmet informationer om det aktuelle kortudsnit fra det aktive kortvindue.

2. Hvis du efterfølgende zoome, panorere eller på andre måde forsøger at ændre kortudsnittet, ændrer programmet kortudsnittet tilbage til den oprindelse indstilling- det sker via WinChangedHandleren

3. Du kan endelig fjerne begrænsning igen ved igen at klikke på Kort > Disable or Enable Zoom and Pan in Map – husk at have det låste kortvindue aktivt.

Og lige nogle kendte begræsninger:

  • Du kan kun låse et vindue ad gangen
  • Du låser ikke kortvinduets størrelse
  • Du kan stadig lukke kortvinduet

Hent program og kildekode.

Peter

Please observe our community guidelines when posting comments.

This blog is hosted by Pitney Bowes Inc. By using this blog you agree that you are solely responsible for any comment you post to the Blog and you agree to abide and be bound by the Pitney Bowes TERMS OF USE.

Please stay on topic. We may redirect certain submissions if they are better handled through another channel such as customer service. With regard to the content of any submissions you make through this Blog, you agree to remain solely responsible and agree to not submit materials that are unlawful, defamatory, abusive or obscene. You also agree that you will not submit anything to this Blog that violates any right of a third party, including copyright, trademark, privacy or other personal or proprietary rights.

Pitney Bowes reserves the right to terminate your ability to use and/or submit posts to this Blog. Pitney Bowes may not review all postings and is not responsible for comments posted on this Blog. Pitney Bowes nevertheless retains the right to not post, edit a posting or to remove any postings in its sole and absolute discretion.