Article # 437, added by Geoworks, historical record
| first | previous | index | next | last |

Declaring visMonikers in separate resources.



Q. We have a resource which is 10K. It is a dialog that includes
   five 64x64 graphic monikers assigned to triggers. Since we were
   told that resource size over 4K can be a potential problem, I am
   wondering if we have to split this resource. If so, how can one
   move a GI_visMoniker into a different resource?

A. A VisMoniker or VisMonikerList must be in the same resource as
   the object as only the chunk handle of the moniker or moniker list
   is stored with the object.

   A moniker list stores optrs to its monikers, so the vis monikers
   can be in a different resource from the moniker list (and the object
   that uses that moniker list).

   You should be able to put the monikers into the new resource in
   whatever way you are currently declaring them.