The Change event in PopupBox fires every time a new item is added and, also, when the user changes the selection.

The Change event in PopupBox fires every time a new item is added and, also, when the user changes the selection.

Is there any way to grab the event only when the user changes the values?

Comments

  1. Have a look at this simple code:
    gist.github.com - gist:cee00b9786d8728250ed3f6f2fc85bba

    Run the project and do the following:

    1. Press button 1 (Change event doesn't fire)
    2. Press button 2 (Change event fires after ItemIndex:=...)--Should this fire now?
    3. Then, press button 1 again (Change event fires, should this fire????)

    I think the event should only fire when the user changes the selection

    ReplyDelete
  2. Yep.. Looks like a bug. If it were me, I'd patch FMX.ExtCtrls by changing the implementation so that it fires only when desired

    ReplyDelete
  3. David Nottage Thanks. I will have a look at this but in general I prefer not to touch those files.

    ReplyDelete

Post a Comment