Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 19-02-2010
ioco ioco is offline
Miembro
 
Registrado: ene 2010
Posts: 42
Poder: 0
ioco Va por buen camino
TLabel not found

Buenas! Tengo una duda que me está dejando bastante paranoico porque no entiendo porqué me da el error este...

La cuestión es que desde un botón de un form, abro otro form.

Así en vacío, se abre bien... pero al añadirle una serie de TLabeledEdit y un par de TLabel (todo directo, sin modificar ninguna propiedad a nada) cuando le doy al botón me salta el error "TLabel not found" y no entiendo porqué ya que se supone que la clase está declarada en la unit StdCtrls (si he entendido bien lo que he leído por ahí).

En varios sitios he visto que hacen referencia a solucionarlo con Registerclass, pero siguen sin dejar claro ni el cómo ni el porqué (o más bien yo no lo entiendo).

¿Podríais orientarme un poco? :S

El formulario al que llamo es:
Código Delphi [-]
unit formporconcepto;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  ExtCtrls, StdCtrls;

type

  { TForm2 }

  TForm2 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    LabeledEdit1: TLabeledEdit;
    LabeledEdit10: TLabeledEdit;
    LabeledEdit11: TLabeledEdit;
    LabeledEdit12: TLabeledEdit;
    LabeledEdit13: TLabeledEdit;
    LabeledEdit14: TLabeledEdit;
    LabeledEdit15: TLabeledEdit;
    LabeledEdit16: TLabeledEdit;
    LabeledEdit17: TLabeledEdit;
    LabeledEdit18: TLabeledEdit;
    LabeledEdit19: TLabeledEdit;
    LabeledEdit2: TLabeledEdit;
    LabeledEdit20: TLabeledEdit;
    LabeledEdit21: TLabeledEdit;
    LabeledEdit3: TLabeledEdit;
    LabeledEdit4: TLabeledEdit;
    LabeledEdit5: TLabeledEdit;
    LabeledEdit6: TLabeledEdit;
    LabeledEdit7: TLabeledEdit;
    LabeledEdit8: TLabeledEdit;
    LabeledEdit9: TLabeledEdit;
  private
    { private declarations }
  public
    { public declarations }
  end; 

var
  FormConcepto: TForm2;

implementation

initialization
  {$I unit1.lrs}

end.



y lo arranco así desde el botón:
Código Delphi [-]
Application.CreateForm(TForm2, FormConcepto);
FormConcepto.Left := FormConcepto.Left + 10;
FormConcepto.Top := FormConcepto.Top + 10;
FormConcepto.Show;
Responder Con Cita
  #2  
Antiguo 23-02-2010
BrunoBsso BrunoBsso is offline
Miembro
 
Registrado: nov 2009
Ubicación: Berisso, Buenos Aires, Argentina
Posts: 239
Poder: 15
BrunoBsso Va por buen camino
No se si será la solución, pero probá en vez de:
Código Delphi [-]
Application.CreateForm(TForm2, FormConcepto);
FormConcepto.Left := FormConcepto.Left + 10;
FormConcepto.Top := FormConcepto.Top + 10;
FormConcepto.Show;

Pone:
Código Delphi [-]
TForm2.Create(Application); // o FormConcepto.Create(Application); no me acuerdo cual es
FormConcepto.Left := FormConcepto.Left + 10;
FormConcepto.Top := FormConcepto.Top + 10;
FormConcepto.Show;

Última edición por BrunoBsso fecha: 23-02-2010 a las 23:56:04. Razón: No puse el tag de cierre en delphi
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Tlabel parpadeante emeritos Varios 1 22-03-2009 19:27:16
TLabel Transparente?? NEG1414 C++ Builder 1 25-09-2008 18:43:38
Manipular TLabel NEG1414 C++ Builder 1 13-06-2008 12:41:16
Componente TLabel Caral Varios 52 06-08-2007 00:02:47
tlabel enabled anubis Varios 12 10-05-2007 08:32:50


La franja horaria es GMT +2. Ahora son las 14:41:43.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi