What I did for my application was to make a pop-up window the size of the map view I want. I added map viewer to that pop-up window (can only have one map viewer in a product I think). Then I added a button on top of the map viewer and made sure the order was all the way to the front for that control button. Then I set actions for the button.
I did this for Zoom in/out map viewer buttons. The use of the pop-up window for the map view allowed me to show/hide the map too with a main window control button.
This make sense?
|