onFocusGained()

I have written my own calendar which is connect via onFocusGained.

The calendar shows, I make a selection and click ‘OK’. The ‘OK’ button calls a method which executes closeFormDialog().

The form is closed, and opened again. I hit 'OK again and this time it closes for good.

I have verfied this behaviour by writting a bare bones showForm() - closeForm() setup. When I call the calendar via a button everything is fine.

This stuff used to work, so I don’t know what’s going on.

I have also noticed that other onXYZ triggers fire more than they should. Consequently I strongly suspect a bigger issue within the event handling (I am no Java jock so forgive my lay terminology).

Servoy 2.2b3

What happens when you close the window? Is the focus going to the same window again? Do you check that with a variable to keep the window from opening again?

What happens when you close the window? Is the focus going to the same window again? Do you check that with a variable to keep the window from opening again?

No I don’t do anything like that. I am pretty sure that this worked a couple of versions back. Whay surprises me, is that the third time around the onFocusGained does not fire. If this behaviour is wanted than it should go into an infinite loop.

FYI and OT: I heard on the radio this morning that today is the most depressing day of the year. So let’s keep it 8)