Article View: comp.windows.interviews
Article #337Re: Using prototypes in ibuild (question)
From: Steve Tang
Date: Wed, 15 Apr 1992 16:34
Date: Wed, 15 Apr 1992 16:34
21 lines
1208 bytes
1208 bytes
>I can use the examine graphic on the graphicCompTool which pops up
>idraw to draw the graphic. When I compile the code it runs okay. The
>problem: to add the pin to the graphic comp generated by ibuild it
>seems I have to hack at the core files. I'd like to avoid this if I
>can how do I do this.
You don't have to hack the core files. You can export the parent
graphic (the GraphicComps's graphic that you want to insert the pin
into), then do
PinGraphic* pingr = new PinGraphic;
GraphicComps* grcomps = (GraphicComps*)_parent->GetTag();
grcomps->Append(new PinComp(pingr));
/* align pingr to other exported graphics */
grcomps->Notify();
Steve
Technical Details
Message-ID:
<TANG.92Apr15163440@braun.stanford.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!leland.Stanford.EDU!portia!tangReferences:
<1992Apr14.031903.25886@trl.oz.au>Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!leland.Stanford.EDU!portia!tang From: tang@braun.stanford.edu (Steve Tang) Subject: Re: Using prototypes in ibuild (question) In-Reply-To: starkie@eddore.trl.oz.au's message of 14 Apr 92 03:19:03 GMT Message-ID: <TANG.92Apr15163440@braun.stanford.edu> Sender: news@leland.Stanford.EDU (Mr News) Organization: Stanford University References: <1992Apr14.031903.25886@trl.oz.au> Date: 15 Apr 92 16:34:40 Lines: 23