Skip to content

Window freez on type text into TFileEditor #114

Answered by magiblot
paule32 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Jens!

Given that this issue is related to the usage of the library and it is not a bug, I have converted it into a GitHub discussion.

There are two problem with your code.

In the first place, the handleEvent method of TMyTvEditor is currently calling clearEvent(event) on events that this view isn't handling. A view must only clear events that it was intended to handle, as it will otherwise prevent other views from receiving these events.

Therefore, that part of the code must be edited as follows:

                case cmButton2:
                    // Aktion für Schaltfläche 2
                    break;
            }
        }
-       else {
-           clearEvent(event);
-       }
    }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paule32
Comment options

Answer selected by paule32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #113 on November 15, 2023 11:08.