Toujours sur mon composant multi conteneur ne l'étant plus
Je tombe sur un petit soucis lors de l'exécution d'une application utilisant mon composant qui me retourne l'erreur suivante :
le code exemple ne contenant pas tous le code des classes ^^Exception EReadError Addon.PanBottom.visible, la propriété n'existe pas
Donc en designtime cela fonctionne très bien pas d'erreur et j'ai l'arborescence voulu dans les propriétés de l'inspecteur d'objets
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 TPanelGenPart = class(TPersistent) private FVisible : Boolean; procedure Set_Visible(const Value: Boolean); published property Visible : Boolean read FVisible write Set_Visible default false; end; TPanelTopPart = Class(TPanelGenPart) private FBtnClose : TBtnPart; published property Visible; {Nouvelles propriétés} property BtnClose : TBtnPart read FBtnClose write FBtnClose; end; TPanelBottomPart = Class(TPanelGenPart); TPanelList = class(TPersistent) private FPanTop: TPanelTopPart; FPanBottom: TPanelBottomPart; published property PanTop : TPanelTopPart read FPanTop write FPanTop; property PanBottom : TPanelBottomPart read FPanBottom write FPanBottom; end; TNewPanel = class(TRzCustomPanel) private FPanList : TPanelList; public constructor Create( AOwner: TComponent ); override; published property Addon : TPanelList read FPanList write FPanList; end;
Si je vire toute partie "Bottom", je n'ai pas l'erreur et tout ce passe correctement.
Je sèche complètement sur ce problème![]()
Partager