Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #4  
Antiguo 12-03-2009
Avatar de gulder
gulder gulder is offline
Miembro
 
Registrado: abr 2005
Ubicación: colombia-sucre
Posts: 384
Poder: 22
gulder Va por buen camino
Thumbs up

Hola
Gracias a dec y Young solocionada con el siguiente codigo lo dejo de muestra saludes



Código Delphi [-]
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs,IniFiles;

type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

  dir:string;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
dir := ExtractFilePath(ParamStr(0));

 iniFile := TIniFile.Create(dir+'p.ini');
  if  FileExists(dir+'p.ini') then begin

       form1.Height:= iniFile.ReadInteger('Interfaz', 'Heith_alto',0);
       form1.Width:= iniFile.ReadInteger('Interfaz', 'Whith_ancho',0);
       form1.Left:= iniFile.ReadInteger('Interfaz', 'Left_x',0);
       form1.Top:= iniFile.ReadInteger('Interfaz', 'Top_y',0);

  end else begin


  iniFile.WriteInteger('Interfaz', 'Heith_alto',580);
  iniFile.WriteInteger('Interfaz', 'Whith_ancho',800);
  iniFile.WriteInteger('Interfaz', 'Left_x',140);
  iniFile.WriteInteger('Interfaz', 'Top_y',80);

  end;

end;

procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin

  iniFile := TIniFile.Create(dir+'p.ini');
  iniFile.WriteInteger('Interfaz', 'Heith_alto',form1.Height);
  iniFile.WriteInteger('Interfaz', 'Whith_ancho',form1.Width);
  iniFile.WriteInteger('Interfaz', 'Left_x',form1.Left);
  iniFile.WriteInteger('Interfaz', 'Top_y',form1.Top);


end;

end.
Responder Con Cita
 



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
posición en pantalla de un componente elcigarra OOP 2 18-10-2005 15:06:09
Posición del mouse en la pantalla cone220 Varios 16 03-07-2005 01:16:29
Posicion cursor DBGrid en pantalla aram2r OOP 2 10-03-2005 16:11:09
Conseguir la posición de un componente en la pantalla islu Varios 3 12-01-2005 12:47:21
Posición del ratón en la pantalla chutipascal API de Windows 3 06-10-2003 19:41:03


La franja horaria es GMT +2. Ahora son las 00:50:51.


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