Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3688

Design question

$
0
0

Hi all…

I’ve developed a lot of custom controls for our project. To speed things up, I am going to develop each control in its own Xojo project file.

However, each control depends on a class called AppLayout. The AppLayout class contains a color scheme which is applied to various coloring properties of the control.

I want to be able to have a project file with each control, without the AppLayout class and it’s dependencies. Therefore, I was thinking about changing the approach a bit by:

  1. Exposing the coloring properties for each control.
  2. Letting AppLayout catch Initializing event for each control and apply the color values.

My question… how would you guys implement this, theoretically speaking?

I was looking into polymorphism / inheritance but Xojo can be limited here.
https://documentation.xojo.com/getting_started/object-oriented_programming/oop_design_concepts.html

I hope the issue is clear enough.

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3688

Trending Articles