Article View: comp.windows.interviews
Article #139Unidraw on IV PLUS (HP)
From: Rajesh Gupta
Date: Fri, 31 Jul 1992 06:28
Date: Fri, 31 Jul 1992 06:28
61 lines
2930 bytes
2930 bytes
I have been experimenting with porting Unidraw to InterViews Plus and have currently run into an obstacle which to a starter in the knowledge of IV class hierarchies seems unsurmountable. Any help/ pointers will be appreciated. Here is the description: ------------------------ I am able to get the motif look into the idraw application quite easily. I compiled all classes not supported by InterViews Plus into auxilliary libraries - using the header files of InterViews Plus and compiled idraw with the IV Plus and these auxilliary libraries. Basically involved defining some application specific variables and modifying different Makefiles/Imakefiles - quite straightforward. Now the bad part: ----------------- None of the pulldown menus of idraw work. Though the different commands on the pull down menus are accessible with the key bindings as defined by Unidraw and the application code for idraw, attempts to open any pulldown menu (e.g. File, Edit, etc.) leads to core dumps :-( - sulk sulk One solution I tried: --------------------- As per advise from some engineers at HP I eliminated all key bindings in the idraw code, recompiled the stuff and ran it. Same result. Core dumps on trying to exercise a pull down menu. The confusing part: ------------------- Comparing idraw against the ted example (compiled using IV Plus) the only difference I noted was: In idraw the call back function for different commands is a member function of Command class (e.g. NewCompCmd::Execute()). This is defined as part of the Unidraw classes. This gets invoked from the member function of the interactor for that command (CommandControl::Do()). However, in ted the call back function is defined as a member function of the EditorApp class and this is invoked from the function MenuItem::Do() for the corresponding item in the PulldownMenu. Both methods seem correct. I can't understand why idraw should core dump. Could a kind soul (Stanford Gurus ??) enlighten this novice. Anyone else out there who has tried something like this? Thanks in anticipation. --- Rajesh ************************************************************************ Semiconductor Systems Design Tech. (SSDT), 2100 East Elliot Road, Motorola, Inc. Tempe, AZ 85284 Tel: 602 897 3991 FAX: 602 897 3518 ************************************************************************
Technical Details
Message-ID:
<1992Jul31.062820.6346@newsgate.sps.mot.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!sh.wide!wnoc-tyo-news!rena!tdo!newsgate!wonderland!guptaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!sh.wide!wnoc-tyo-news!rena!tdo!newsgate!wonderland!gupta From: gupta@wonderland.sps.mot.com (Rajesh Gupta) Newsgroups: comp.windows.interviews Subject: Unidraw on IV PLUS (HP) Message-ID: <1992Jul31.062820.6346@newsgate.sps.mot.com> Date: 31 Jul 92 06:28:20 GMT Sender: usenet@newsgate.sps.mot.com Reply-To: gupta@wonderland.sps.mot.com Organization: Motorola, Inc. Lines: 61 Nntp-Posting-Host: 223.188.10.16