The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Constuctors for Classes

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Doltergost Posted - 06/21/2024 : 04:09:51 AM
Hello,

i wanted extra methods for the GraphLayer and DataPlot classes so I made MyGraphLayer and MyDataplot.

class MyGraphLayer : public GraphLayer
{
public:
void NewMehtod01();
void NewMehtod02();
};

class MyDataPlot : public DataPlot
{
public:
void NewMehtod01();
void NewMehtod02();
};

like this. To use them i have to make a detour via the original classes:

void test2(bool flag)
{
PageBase pb = Project.Pages("ShortName");

GraphPage gp = pb;

GraphLayer gl = gp.Layers(0);

MyGraphLayer gl2;

gl2 = gl;
}

I want to use them like:

MyGraphLayer gl = gp.Layers(0);

I can only find the prototypes of the constructors from the original classes in graph.h, but I cant find the declaration because there isnt a graph.c . Is it somewhere else to find or does someone know how I can achieve my goal?

With regards,

Markus

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000