Fórum Aba não aparece - Delphi 7 #131342
30/03/2010
0
Marcos
Curtir tópico
+ 0Posts
31/03/2010
Marcos
unit Qlabel4;
interface
uses
SysUtils, Classes, QControls, QStdCtrls;
type
tlabel4 = class(TLabel)
private
{ Private declarations }
FGx:Integer;
FGy:Integer;
FCarry:Boolean;
protected
{ Protected declarations }
public
{ Public declarations }
constructor Create(AOWner: TComponent); override;
destructor Destroy;override;
published
{ Published declarations }
property Gx:Integer read FGx write FGx;
property Gy:Integer read FGy write FGy;
property Carry: Boolean read FCarry write FCarry;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('MyPalete', [tlabel4]);
end;
{ tlabel4 }
constructor tlabel4.Create(AOWner: TComponent);
begin
inherited;
end;
destructor tlabel4.Destroy;
begin
inherited;
end;
end.
Gostei + 0
01/04/2010
Marcos
Gostei + 0
20/04/2010
Wesley Batista
Ao salvar o projeto, clique com o Botão direito em cima do mesmo no project manager, e " Install " , seu componente será instalado normalmente.
Espero te ajudado
Um abraço
Wesley Batista
e-mail : wesley@tdstecnologia.com.br
site : www.tdstecnologiarj.com.br
Gostei + 0
20/04/2010
Wilson Junior
Espero ter colaborado.
Gostei + 0
24/04/2010
Vtrx
interface
uses
SysUtils, Classes, QControls, QStdCtrls;
type
tlabel4 = class(TLabel)
private
{ Private declarations }
FGx:Integer;
FGy:Integer;
FCarry:Boolean;
protected
{ Protected declarations }
public
{ Public declarations }
constructor Create(AOWner: TComponent); override;
destructor Destroy;override;
published
{ Published declarations }
property Gx:Integer read FGx write FGx;
property Gy:Integer read FGy write FGy;
property Carry: Boolean read FCarry write FCarry;
end;
procedure Register;
implementation constructor tlabel4.Create(AOWner: TComponent);
begin
inherited;
end;
destructor tlabel4.Destroy;
begin
inherited;
end;
procedure Register;
begin
RegisterComponents('MyPalete', [tlabel4]);
end;
end.
Gostei + 0
25/04/2010
Marcos
Gostei + 0
26/04/2010
Vtrx
Gostei + 0
26/04/2010
Marcos
USES
Qlabel4 ; //como não aprece a aba, tentando criar em runtime.... procedure TForm1.Button1Click(Sender: TObject);
var
MM:TLabel4;
begin
MM:=TLabel4.Create(self);
MM.Parent:=self; //aqui dá erro...
MM.Caption:='Olá Mundo!';
end; end. Então dá o seguinte erro: [Error] Unit1.pas(33): Incompatible types: 'TWidgetControl' and 'TForm1' [Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
Gostei + 0
13/08/2010
Robert Cortez
Gostei + 0
13/08/2010
Marcos
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)