View Issue Details

IDProjectCategoryView StatusLast Update
0004583JEDI VCL00 JVCL Componentspublic2008-12-22 05:32
ReporterBrianAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionwon't fix 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0004583: JvFormStorage doesn't store LisItems.cheked property
DescriptionJvFormStorage doesn't store LisItems.cheked property
Additional Informationmake a listview and fill it with some items and set some of them as checked (state 1). formstorage won't save/restore that property
TagsNo tags attached.

Activities

obones

2008-11-18 08:23

administrator   ~0015013

Please provide the zipped sources of a sample application showing this.

Brian

2008-11-18 23:31

reporter   ~0015028

object Form7: TForm7
  Left = 0
  Top = 0
  Caption = 'Form7'
  ClientHeight = 356
  ClientWidth = 458
  Color = clBtnFace
  DoubleBuffered = True
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  object ListView1: TListView
    Left = 16
    Top = 48
    Width = 425
    Height = 289
    Checkboxes = True
    Columns = <
      item
        Caption = '1'
      end>
    Items.ItemData = {
      0322000000010000000000000001000000FFFFFFFF00000000FFFFFFFF000000
      00047400650073007400}
    TabOrder = 0
    ViewStyle = vsReport
  end
  object JvAppRegistryStorage1: TJvAppRegistryStorage
    StorageOptions.BooleanStringTrueValues = 'TRUE, YES, Y'
    StorageOptions.BooleanStringFalseValues = 'FALSE, NO, N'
    SubStorages = <>
    Left = 16
    Top = 8
  end
  object JvFormStorage1: TJvFormStorage
    AppStoragePath = '%FORM_NAME%'
    StoredProps.Strings = (
      'ListView1.Items')
    StoredValues = <>
    Left = 48
    Top = 8
  end
end

obones

2008-11-19 01:46

administrator   ~0015031

zipped sources of a complete project, please.

2008-11-20 22:47

 

form storage.zip (4,596 bytes)

Brian

2008-11-20 22:47

reporter   ~0015043

added project

obones

2008-12-22 05:32

administrator   ~0015150

This is "as designed" because TListItems is a TPersistent, not a TCollection.
You will have to write your own handling code for it.

Issue History

Date Modified Username Field Change
2008-11-14 21:44 Brian New Issue
2008-11-18 08:23 obones Note Added: 0015013
2008-11-18 08:23 obones Status new => feedback
2008-11-18 23:31 Brian Note Added: 0015028
2008-11-19 01:46 obones Note Added: 0015031
2008-11-20 22:47 Brian File Added: form storage.zip
2008-11-20 22:47 Brian Note Added: 0015043
2008-12-22 05:32 obones Note Added: 0015150
2008-12-22 05:32 obones Status feedback => resolved
2008-12-22 05:32 obones Resolution open => won't fix
2008-12-22 05:32 obones Assigned To => obones