-
Hello,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 Therefore, that part of the code must be edited as follows: case cmButton2:
// Aktion für Schaltfläche 2
break;
}
}
- else {
- clearEvent(event);
- }
} In the second place, the reason why exiting the program doesn't work is because tvision/source/tvision/tgroup.cpp Line 185 in e9fac37 This validation reaches tvision/source/tvision/tfiledtr.cpp Line 270 in e9fac37
tvision/source/tvision/tfiledtr.cpp Line 278 in e9fac37 However, your application does not define a custom tvision/source/tvision/editstat.cpp Lines 18 to 21 in e9fac37 As a result, nothing is shown and it is automatically assumed that the file cannot be saved. Therefore, the program does not exit. To solve this, you should define your own tvision/examples/tvedit/tvedit3.cpp Line 106 in e9fac37 tvision/examples/tvedit/tvedit1.cpp Line 62 in e9fac37 Cheers. |
Beta Was this translation helpful? Give feedback.
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 ofTMyTvEditor
is currently callingclearEvent(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:
…