Inicio > Componentes > Componente TSaveComps

Componente TSaveComps

Share Button

(versión 1.4)

Permite guardar la posicion y tamaño de todos los componentes que se encuentran en el formulario. Utilizapara ello un fichero INI.
Basta con colocar el componente en el formulario y activarlo; Cuando la aplicación se cierra graba la posición/tamaño y al volver a ejecutarla los recupera de forma automática.

NOTA: Es indispensable para grabar la posición y tamaño de un componente que tenga definida la propiedad Name (para controles creados en RunTime).

Imagen del ejemplo

Historial:
(version 1.4): Añadido un evento (OnNotExistComponent) que facilita el trabajo con componentes creados en tiempo de ejecución (runtime); Se han revisado los componentes para trabajar con Delphi 2005/2006.

(versión 1.3): El componente permite guardar propiedades de tipo TStrings (Lines, Items,…)

(versión 1.2): Para la versión 1.2 se ha añadido la posibilidad de poder añadir propiedades por parte del usuario que se grabarán (propiedad SavedProperties).

Download Descargar componente

4.5/5 - (2 votos)
Categories: Componentes Tags: , ,
Subscribe
Notify of
guest

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.

9 Comments
Inline Feedbacks
Ver todos los comentarios
Noémie
Noémie
13 years ago

Hi.
I am using your TSaveComps component to save and load the state of a form with several components.

I sucessfully Saved and load with an INI file but I would like to know if it possible to reset the form to its original state (The state which is in the Delphi designer).

I mean for exemple :

1. Opening of the application –> The form looks like the original form (Without any modification by TSaveComps)
2. Moving the controls on runtime with TSelectOnRuntime
3. Saving the state with TSaveComps
4. Closing the application.

And Then another session of the application

1. Opening of the application –> The form looks like the original form (Without any modification by TSaveComps)
2. Loading the state as saved previously
3. Reinit the form to have the original form (The one without the SaveComps)

I tried to set SaveComps.Active to false, I tried to set IniFileName to an empty string but nothing seems to work. Am I missing something?..

I hope you will understand my request.

Thank you

Noémie

Noémie
Noémie
13 years ago

Hi, me again,

I found the solution to save the original form at the beginning of the application but I was hoping maybe it could exists another solution

Noémie
Noémie
13 years ago

Hi, Thanks for your answer.

I am looking for a way to reinit the form to its original layout without restarting the application

Cristopher
Cristopher
13 years ago

Además de tu componente TSelectOnRuntime en vez de guardar los componentes en Runtime de un formulario puede usarse tambien en un TPanel?

Engel Prensa
Engel Prensa
1 year ago

Buenas Tardes Maestro Germán Estévez, tengo poco tiempo estudiando programacion y ver su pagina me ha generado un gran interes en este lenguaje. E intentado buscar documentacion de como funcionan tus componentes TsaveComps y TSelectOnRunTime y las maneras de usarlo. Un saludos maestro

9
0
Would love your thoughts, please comment.x
()
x