We have a custom user object (visual) with a custom editmask control on it.
Another window is creating this UO if the Enter Key is pressed.
On initialization of the UO there is a editmask.POST SetFocus() called.
in the editmask.keydown event i can read the pressed key (keycode) for example "1" correctly.
We have the strange behavior that if we wait a bit after pressing the Enter key until the UO is visible everything works as it should: Focus lands in the editmask, pressing 1 key executes keydown and the correct value appears in the Editmask.
But if we press Enter followed by our input key very fast: still the setfocus seems to work, still the keydown event gets executed BUT the pressed value does not appear in the Editmask. It seems that the Userobject already exists, the EditMask already exists and it's events can be called but the visual part of it is not there yet and so the value pressed gets lost. Any clue how that can be possible?
-> Under Powerbuilder 8 this worked as it should no matter how fast you pressed the buttons. My suspicion is that the handling of the POST somehow changed or that there is a distinction between visually initalized and non-visually initialised?
Thankful for any clues/hints on this one!
Cheers Jakob