On Thu, Aug 13, 2015 at 4:24 AM, Luca Olivetti <[email protected]> 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 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
