Limiting a controls parent.

  • Thread starter Thread starter Andrew
  • Start date Start date
A

Andrew

I want to create a set of Activity Diagram controls for process control.

I need to create a base Diagram control that acts as a container for the
Activity controls ( StartPoint, EndPoint, Actvity, Decision, Message,...).

How do I implement it such that the only place I can drop an Activity
control is on a Activity Diagram?

I'm an experienced Delphi developer and I'm just getting started in C#.
There appears to be significant crossover between the two languages.
 
I want to create a set of Activity Diagram controls for process control.

I need to create a base Diagram control that acts as a container for the
Activity controls ( StartPoint, EndPoint, Actvity, Decision, Message,...)..

How do I implement it such that the only place I can drop an Activity
control is on a Activity Diagram?

I'm an experienced Delphi developer and I'm just getting started in C#.
There appears to be significant crossover between the two languages.

hi

I do not undersstand your question, are you asking how to design your
classes or your interface?
 
Please understand I'm just getting started in C# but have 10+ years of
experience in Delphi, so if I'm not clear it's mostlikely because I don't
have C# on my fingertips yet.

I'm quite sure I can design the underlying class structure for the
implementation I'm looking for. It's the details on how Visual Studio
creates components and assigns them to parent controls during the design
process.

What I'd do in Delphi is create the Diagram control first from a TPanel
control. I would then write the Activity controls from TComponents. In the
constructor for the Activity controls I would check and see if the partent
was a Diagram control. If it was not, I would display a message then have
the Activity control commit suiside.

I'm just not sure when the parent is assigned if C# and if the constructor
is the best place to check the parent class in C#.

This is all just for completeness. I want to design a set of controls I can
use over and over again and pass on to others in our group.

message
I want to create a set of Activity Diagram controls for process control.

I need to create a base Diagram control that acts as a container for the
Activity controls ( StartPoint, EndPoint, Actvity, Decision, Message,...).

How do I implement it such that the only place I can drop an Activity
control is on a Activity Diagram?

I'm an experienced Delphi developer and I'm just getting started in C#.
There appears to be significant crossover between the two languages.

hi

I do not undersstand your question, are you asking how to design your
classes or your interface?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top