View Issue Details

IDProjectCategoryView StatusLast Update
0005291JEDI VCL00 JVCL Componentspublic2010-09-06 16:39
ReporterdigoniAssigned Tojfudickar 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.39 
Target VersionFixed in Version 
Summary0005291: TJvFormStorage not save at runtime
DescriptionHi,

I have a TJvFormStorage (JvFormStorage1) on my form (fxBase), and at runtime i added StoredProps of some components.
When i open the INI file, everything is fine excepts the StoredProps dont write, even, when the form is opened, the properties are not loaded.

How can i add StoredProps at runtime to load and save it ??

Additional Informationsome piece of code:

procedure TFxBase.FormCreate(Sender: TObject);
begin
   for I := 0 to pred(ComponentCount) do begin
      if (Components[I] is TJvDBGrid) then begin
         TJvDBGrid(Components[I]).IniStorage := JvFormStorage1;
         TJvDBGrid(Components[I]).Columns.State := csCustomized;
         JvFormStorage1.StoredProps.Append(TJvDBGrid(Components[I]).Name+
                                           '.AlternateRowColor');
         JvFormStorage1.StoredProps.Append(TJvDBGrid(Components[I]).Name+
                                           '.RowHeight');
         JvFormStorage1.StoredProps.Append(TJvDBGrid(Components[I]).Name+
                                           '.FixedCols');
      end;
   end;
end;
TagsJvAppIniFileStorage, JvFormStorage

Activities

jfudickar

2010-08-11 09:01

developer   ~0017554

Could you add a cimplete sample, to see how your code should work.

Kind regards
Jens

2010-08-11 13:49

 

Test-JvFormStorage.zip (620,160 bytes)

digoni

2010-08-11 13:53

reporter   ~0017558

I've added an attachment.

On FormCreate i add 3 JvDBGrid1 properties to JvFormStorage1 at runtime.

Simply open and close Project1.exe to generate the Project1.ini.

Inside the INI the 3 properties are not writed.

Thanks in advance

digoni

2010-09-06 15:55

reporter   ~0017656

Hi, somebody can change this thread status to "done" ??

The problem is solved in other thread ID 5318

Thanks

Issue History

Date Modified Username Field Change
2010-08-10 21:24 digoni New Issue
2010-08-11 09:01 jfudickar Note Added: 0017554
2010-08-11 09:01 jfudickar Status new => feedback
2010-08-11 13:49 digoni File Added: Test-JvFormStorage.zip
2010-08-11 13:53 digoni Note Added: 0017558
2010-08-11 13:55 digoni Tag Attached: JvAppIniFileStorage
2010-08-11 13:55 digoni Tag Attached: JvFormStorage
2010-09-06 15:55 digoni Note Added: 0017656
2010-09-06 16:39 jfudickar Status feedback => resolved
2010-09-06 16:39 jfudickar Resolution open => fixed
2010-09-06 16:39 jfudickar Assigned To => jfudickar