Thread View: comp.windows.interviews
1 messages
1 total messages
Started by Ranjana Kizakkevariath
Sun, 24 Jan 1993 17:26
I get a core dump when trying to add something to Punidraw
Author: Ranjana Kizakkevariath
Date: Sun, 24 Jan 1993 17:26
Date: Sun, 24 Jan 1993 17:26
50 lines
1812 bytes
1812 bytes
Hi,
I have the following code which creates a core dump when I run the program .
This compiles fine.
Can somebody help me with this. I am trying to modify the "Punidraw" program to
put some new GraphicComp in it.
Here is the relevant lines from code....
class PictComp : public GraphicComp {
..........................
.......................
};
........................
class MyComp : public GraphicComps {
public:
MyComp() {};
}
.................................
...............................
Picture* picture = new Picture();
GraphicComp* Newcomp = new MyComp();
GraphicView* view = (GraphicView*) Newcomp->Create(COMPONENT_VIEW);
Newcomp->Attach(view);
Label* MyLabel = new Label ("New Comp");
MyLabel->SetTransformer(new Transformer(1, 0, 0, 1, 18, 1.5));
picture->Append(MyLabel);
PictComp* pcomp = new PictComp(picture);
Newcomp->Append(pcomp);
ControlInfo* _VPanelControl_924_info = new ControlInfo(Newcomp, "r", "r
");
Tool* _VPanelControl_924_tool = new GraphicCompTool(_VPanelControl_924_info, (GraphicComp*) Newcomp->Copy());
VPanelControl* _VPanelControl_924 = new VPanelControl("_instance_521", _VPanelControl_924_info, _curCtrl_0);
GetKeyMap()->Register(_VPanelControl_924);
.........................
Am I totally in the wrong track? Is there a better way to do this?
Thank you
Ranjana
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads