Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

ElFormPersist: How to specify the Widths of the Sections in a TElXTree for saving/restoring?

LMD ElPack    2013.2 (05.02.2013)

The position and the size of the form are successfully managed by ElFormPersist.

Now I want it to manage some properties too.

I have set ElFormPersist's epoProperties to True.

I do not see ElXTree.HeaderSections.Sections[0], ... in TElMTree.

I tried selecting ELXTree.HeaderSections, but only the ElXTree\HeaderSections section is saved.
The widths are not saved, nor are any other properties.

How is this to be done?

Thanks.
Raymond

Comments

  • 2 Comments sorted by Votes Date Added
  • >>How is this to be done?<<
    You can not use ElFormPersist for this, because HeaderSections does not provide published properties (a.ka. enough RTTI information. Information is stored binary internally - check the DFM code).

    Hence you need to persist data manually (getting Width etc. from HeaderSections items).


Sign In or Register to comment.