[Lazarus] Strange interaction between combox and IniPropStorage
Flávio Etrusco
flavio.etrusco at gmail.com
Fri Aug 14 16:03:57 CEST 2015
On Thu, Aug 13, 2015 at 4:24 AM, Luca Olivetti <luca at wetron.es> wrote:
> El 12/08/15 a les 16:37, Luca Olivetti ha escrit:
>
>>
>> Definitely a regression: I just had to modify an old program (where this
>> feature worked) and it doesn't work anymore :-(
>> At least the workaround seems to do the job.
>
>
> It's not a regression, it's probably always been there, but I manually
> called SaveProperties previously, but since the IniPropstorage does it
> automatically, I removed my call.
> *However* it calls it when the form is being freed, and in that case the
> combobox returns the previous itemindex, not the changed one.
> I added a comment and a couple of possible patches in the bugreport.
>
> http://bugs.freepascal.org/view.php?id=28514
Good job. I would add a comment explaining the need for the
GetItemIndex call, however ;-)
I recall combobox went through various iteations to fix synchronizing
state between the LCL and the underlying widgetset...
Best regards,
Flávio
More information about the Lazarus
mailing list