Window & Popupmenu
Posted on 2000-02-12
I have a program that creates multiple windows using the same DLOG resource. My problem is that this window has a popupmenu CNTL resource that I append menu items to depending on a certain criteria. But when I go to open another window using the same DLOG resource I end up with the same menu items in the new window but I don't want the same menu items, I want diferent items depending on criteria. Also If I close one of the windows the popupmenu disappears in the other windows. Obviously this is because the menu is disposed of (I think). How can I create a NewMenu( baseID +1, "\pOptions); for each window and install this dynamically created menu to the popupcontrol of the window. I am using a CNTL resource, the control type is System 7 Popup, fixed width, window font.