| Ver tema anterior :: Ver tema siguiente |
| Autor |
Mensaje |
Felip Invitado
|
Publicado: Sab 05 Jun, 2004 6:58 pm Asunto: Delphi ...> B++Builder |
|
|
Hola amigos del foro... Yo tengo código fuente en Delphi y quiero pasarlo a C++Builder, favor que me ayude... gracias...
| Código: |
{TSkinImage}
constructor TSkinImage.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
if NOT (csDesigning in ComponentState) then
with TForm(AOwner) do
begin
BorderStyle := bsnone;
Self.Top : 0;
Self.Left : 0;
OnShow : OwnerShow;
end;
end;
|
Filipe |
|
| Volver arriba |
|
 |
_Leo Site Admin

Registrado: 11 Ago 2002Mensajes: 1875Ubicación: Lanzarote - Islas Canarias (España)
|
Publicado: Dom 06 Jun, 2004 2:30 am Asunto: |
|
|
| Código: | class PACKAGE TSkinImage : public /*Pon aquí el nombre de la
clase de la que hereda*/
{
//...
public:
__fastcall TSkinImage(TComponent* AOwner);
//...
};
__fastcall TSkinImage::TSkinImage(TComponent* AOwner)
: /*Pon aquí el nombre de la clase de la que hereda*/(AOwner)
{
if (!ComponentState.Contains(csDesigning))
{
TForm* form = static_cast<TForm*>(AOwner);
form->BorderStyle = bsNone;
form->Top = 0;
form->Left = 0;
form->OnShow = OwnerShow;
}
} |
|
|
| Volver arriba |
|
 |
|