Article View: comp.windows.interviews
Article #566Dynamically changing Unidraw Menus
From: Lee D. Coller
Date: Tue, 01 Sep 1992 17:30
Date: Tue, 01 Sep 1992 17:30
22 lines
1631 bytes
1631 bytes
I am trying to create menus in Unidraw which get their command keys from the .Xdefaults file. To accomplish this I have created a subclass of CommandControl, and overridden Reconfig to get the appropriate attributes using GetAttribute() and then setting the ControlInfo fields accordingly. This works in that the command keys are indeed retrieved and will activate those menu items, but the menu is not properly sized. It appears to use the width of the menu before the command keys are added. What additional steps do I need to take to get the menu to be of the proper width. I had also wanted to be able to set a different label through the .Xdefaults file, but that doesn't work at all. I know that is because the label is set at the time the Control is constructed, but is their an easy way to reset it without doing a lot more work (subclassing ContolInteractor and essentially duplicating most of CommandControl is more work than I really want to do). Thanks. -- ----------------------------------------------------------------- Lee D. Coller (coller@alnitak.usc.edu) +1 (310) 379-0844 USC Behavioral Technology Labs, 250 N. Harbor Dr. Ste 309 Redondo Beach, California, 90277
Technical Details
Message-ID:
<la7a67INN3se@alnitak.usc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!news From: coller@alnitak.usc.edu (Lee D. Coller) Newsgroups: comp.windows.interviews Subject: Dynamically changing Unidraw Menus Date: 1 Sep 1992 10:30:47 -0700 Organization: University of Southern California, Los Angeles, CA Lines: 22 Sender: coller@alnitak.usc.edu (Lee D. Coller) Distribution: world Message-ID: <la7a67INN3se@alnitak.usc.edu> NNTP-Posting-Host: alnitak.usc.edu