Autor Beitrag
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mo 21.04.03 19:05 
Ich habe hier ein Package mit einer selbst gemachten Komponente. Wenn ich das nun compiliere und installiere, dann sagt Delphi mir die neue Komponente sei erfolgreich installiert. Ich sehe sie dann auch in dem Package. In der IDE ist aber nichts zu sehen. Da diese Gegenfrage wahrscheinlich zuerst kommt, gebe ich die Antwort gleich selber: Ja, RegisterComponents habe ich da auch drin

_________________
Gruß
Hansa
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Di 22.04.03 08:16 
Kannst vielleicht noch ein paar Infos geben:
Delphi Version?
RunTime oder DesignTime Package?
Code für die Registrierung?

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
hansa Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Di 22.04.03 11:34 
Delphi 6
RunTime und DesignTime Package

ausblenden Quelltext
1:
2:
3:
4:
procedure Register;
begin
  RegisterComponents('Eigene', [TFarbButton]);
end;

_________________
Gruß
Hansa
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Di 22.04.03 11:40 
Hallo,

kann es sein, das die Palette nur für das Projekt ausgebrendet ist?
Gucke mal unter Projekt->Optionen->Packages nach ob es vieleich deaktiviert ist.

Gruß
Klabautermann
hansa Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Di 22.04.03 11:53 
Hi,

ja das sieht etwas grau aus. 8) Ich komm da an kein Package dran. Wass ist denn das ? Bzw. wie kriege ich das weg und wo kommt das her ? Bis vogestern ging das alles einwandfrei.

_________________
Gruß
Hansa
hansa Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Di 22.04.03 12:37 
Jetzt habe ich noch eine Komponente, bei der der Effekt auftritt (die ist jetzt ganz neu) hier der Code, vielleicht ist da doch in meinem Code irgendwas falsch:

ausblenden volle Höhe Quelltext
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:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
unit DBLabeledEdit;

interface

uses
  Windows, Messages, SysUtils, Classes, Controls, StdCtrls, ExtCtrls,
  DB, DBCtrls;

procedure Register;

type
  TDBLabeledEdit = class(TLabeledEdit)
  private
    { Private declarations }
    FDataLink: TFieldDataLink;
    FReadOnly : boolean;
    function GetDataField: string;
    function GetDataSource: TDataSource;
    procedure SetDataField(const Value: string);
    procedure  SetDataSource(Value: TDataSource);
  protected
    { Protected declarations }
  public
    { Public declarations }
    constructor Create(AOwner: TComponent); override;
    destructor Destroy; override;
  published
    { Published declarations }
    property ReadOnly:boolean read FReadOnly write FReadOnly default true;
    property DataSource : TDataSource read GetDataSource write SetDataSource;
    property DataField : string read GetDataField write SetDataField;
  end;


implementation

constructor TDBLabeledEdit.Create (AOwner : TComponent);
begin
  inherited Create (AOwner);
  FDataLink := TFieldDataLink.Create;
  FDataLink.Control := self;
  FReadOnly := false;
end;

destructor TDBLabeledEdit.Destroy;
begin
  FDataLink.Free;
  inherited Destroy;
end;

function TDBLabeledEdit.GetDataField : string;
begin
  Result := FDataLink.FieldName;
end;

function TDBLabeledEdit.GetDataSource : TDataSource;
begin
  GetDataSource := FDataLink.DataSource;
end;

procedure TDBLabeledEdit.SetDataField(const Value: string);
begin
  FDataLink.FieldName := Value;
end;

procedure TDBLabeledEdit.SetDataSource(Value: TDataSource);
begin
  FDataLink.DataSource := Value;
end;

procedure Register;
begin
  RegisterComponents('Data Controls', [TDBLabeledEdit]);
end;

end.

_________________
Gruß
Hansa
hansa Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Di 22.04.03 19:19 
Habe das jetzt nochmals analysiert. Bei Projektoptionen ist mein Package zu sehen und bei -> Components ist die Komponente aufgeführt. Einige andere auch, aber das wars dann. Wieso ist einiges zu sehen und anderes nicht (in der IDE) ? Werde Delphi mal auf anderen Rechner installieren und sehen was passiert. Durch so einen Mist wird man doch tatsächlich 2 Tage aufgehalten.

_________________
Gruß
Hansa
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Di 22.04.03 19:27 
Hallo,

noch 'ne Frage, du versuchst nicht deine Komponente in deiner CLX Anwendung zu verwenden oder?
Denn eine VCL Komponente steht dir dort selbstverständlich nicht zur verfügung.

Gruß
Klabautermann
hansa Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Di 22.04.03 19:32 
CLX bleibt im Moment außen vor. Aber könnte sich das durch die Hintertür irgendwie einschleichen ?

_________________
Gruß
Hansa
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Di 22.04.03 19:36 
Hallo,
hansa hat folgendes geschrieben:
CLX bleibt im Moment außen vor. Aber könnte sich das durch die Hintertür irgendwie einschleichen ?

gute Frage. Überprüfe dein Projekt mal auf Q-Units. Also z.B. QForms anstelle von Forms. Das dürfte nicht sein (allso alles was QXXX ist raus ;)). Das gild auch fr die Komponenten.

Gruß
Klabautermann
hansa Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Di 22.04.03 19:46 
Muß ich jetzt etwa die ganzen Komponenten durchgehen ? :hair: Oder wie soll ich das machen ?

_________________
Gruß
Hansa