PRE-BLOCK trigger has some very strange behavior
I have a form in which I reuse the window. I have 5 canvases, each contain a block. On the first canvas I have 4 buttons to navigate to the blocks. This is what happens:
- I enter the form
- I press the first button to go to the second block
- First, the PRE-BLOCK trigger of the second block fires
- Then the WHEN-BUTTON-PRESSED trigger of the first button fires
- Then the PRE-BLOCK trigger of the third block fires (!)
- Then the PRE-BLOCK trigger of the fourth block fires (!)
- Then the PRE-BLOCK trigger of the fifth block fires (!)
- Then the PRE-BLOCK trigger of the second block fires again (!!!)
This only happens once, no matter which button I press. When I navigate back to my original block and then press another of the 4 buttons, only the PRE-BLOCK of that particular block fires and after that the WHEN-BUTTON-PRESSED trigger fires and that's it.
I have generated the form with designer and headstart 10g, and I ran into this when my button changed the window title and the PRE-BLOCK trigger kindly changes it back the first time I press a button, simply because it is fired twice, before AND after the WHEN-BUTTON-PRESSED trigger.
How is this possible?