Question: Using multiple bitmaps and/or icons as a single object
I would like to add multiple bitmaps and/or icons to FalconView as a single object (i.e: with a single object handle). The idea would be that I could add/remove/modify them collectively; as well as getting only one call to GetMenuItems() if I right-click on the set of bitmaps/icons. Is this possible? If so, how can I do this? What Interface(s) can I use to resolve this?
-- JeffHurt - 29 Jun 2007
Answer
I don’t think FalconView will do it but in general you can accomplish the same thing by offsetting all the symbols by the same lat long amount for instance if you add an icon at -112, 83 and a line from (-112, 83) to (-112.4, 84) and then the user drags the icon to -111,83 you would also programmitacally move the line to (-111,83) to (-111.4,84). You would also need to set a single, get menu Items method on each item in the group.
The Tactical Graphic overlay uses this technique if you multi-select several objects and move them. Note that it keeps them separated by a fixed latitude and longitude so if you moved a collection from the equator to the arctic circle, they would be a lot closer in the east/west direction, but I don't thin it is an issue in most real world applications.
Environment
| FalconView Version: | FalconView 4.0.1 |
| Interface: | |
| Language: | Visual C++ |
(EDIT ICON)
