Hi,
In tiOPF I normally save the Form State and Size using a singleton
function gINI.ReadFormState and gINI.WriteFormState in a BasicForm's
constructor and destructor.
I thought I would try out the TIniPropStorage component and at the
same time us it in Visual Form Inheritance (VFI).
My form hierarchy is as follows:
TBasicForm (contains TIniPropStorage and saves State, Size and Position)
|
TBasicEditForm (wanted to add extra item to save TCheckBox.Checked)
|
TLanguageEditForm
TBasicForm:
Contains the TIniPropStorage and saves State, Size and Position.
TBasicEditForm:
I wanted to add a extra item to IniPropStorage to save, a
TCheckBox.Checked property.
When I created a instance of TLanguageEditForm (before I added the
TCheckBox to BasicEditForm) everything worked fine. After I
introduced the extra property of the TCheckBox to BasicEdit, that is
now all that gets saved and restored. The Form State, Size and
Position information is now lost.
In both TBasicForm and TBasicEditForm, I used the SessionProperties
property as mentioned on the Wiki page. TBasicEditForm didn't show
the parent forms properties, which might be the problem.
Is there a work-around I can use? For example, instead of using the
Form.SessionProperties property, rather call methods directly against
the TIniPropStorage component in each forms constructor and
destructor.
If not, I'll most probably go back to using my gINI function.
--
Graeme Geldenhuys
There's no place like S34° 03.168' E018° 49.342'
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives