View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004886 | JEDI VCL | 00 JVCL Components | public | 2009-08-07 16:06 | 2009-12-04 15:35 |
Reporter | jeronimo | Assigned To | obones | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Product Version | Daily / GIT | ||||
Target Version | Fixed in Version | ||||
Summary | 0004886: JvFormPlacement don't save | ||||
Description | I have JvFormStorage in a frame and it dont save the properties to the controls in this frame I think the problem is in this line if FRestored then In this procedure procedure TJvFormStorage.SavePlacement ; if comment this line. This control save this properties the variable Frestored is false and don't execute the rest of the procedure thanks | ||||
Additional Information | procedure TJvFormStorage.SavePlacement; Var JvAppStorageHandler: IJvAppStorageHandler; begin // if FRestored then // begin inherited SavePlacement; if Supports(Owner, IJvAppStorageHandler, JvAppStorageHandler)then JvAppStorageHandler.WriteToAppStorage(AppStorage, AppStoragePath); SaveProperties; StoredValues.SaveValues; // end; end; | ||||
Tags | No tags attached. | ||||
|
Well, if FRestored is False, that's because something went wrong. You should find out why it was never set to True to begin with |
|
Frestored is false only when you create the component It change to true in TJvFormStorage.RestorePlacement TJvFormPlacement.RestoreFormPlacement I think we should change the variable to false when you execute the procedure to save and check for a false for save procedure TJvFormPlacement.SaveFormPlacement; begin if Assigned(AppStorage) then begin ResolveAppStoragePath; //need to resolve if not resolved yet (for Frames) if Assigned(FBeforeSavePlacement) then FBeforeSavePlacement(Self); if VersionCheck <> fpvcNocheck then WriteInteger(siVersion, FVersion); Save; FRestored = false; // and this line ******** SavePlacement; if Assigned(FAfterSavePlacement) then FAfterSavePlacement(Self); FSaved := True; end; end; And procedure TJvFormStorage.SavePlacement; Var JvAppStorageHandler: IJvAppStorageHandler; begin if not (FRestored) then ******* begin inherited SavePlacement; if Supports(Owner, IJvAppStorageHandler, JvAppStorageHandler)then JvAppStorageHandler.WriteToAppStorage(AppStorage, AppStoragePath); SaveProperties; StoredValues.SaveValues; end; end; |
|
I'm using the component for a long time without problems. Could you create a sample showing the problems? Kind regards Jens |
|
jeronimo: Any news? Could you provide that sample application? |
|
No news, we are not able to reproduce |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-08-07 16:06 | jeronimo | New Issue | |
2009-08-07 16:29 | obones | Note Added: 0015965 | |
2009-08-07 16:29 | obones | Status | new => feedback |
2009-08-07 16:57 | jeronimo | Note Added: 0015966 | |
2009-08-08 15:09 | jfudickar | Note Added: 0015968 | |
2009-09-23 17:09 | obones | Note Added: 0016166 | |
2009-12-04 15:35 | obones | Note Added: 0016959 | |
2009-12-04 15:35 | obones | Status | feedback => resolved |
2009-12-04 15:35 | obones | Resolution | open => unable to reproduce |
2009-12-04 15:35 | obones | Assigned To | => obones |