Hello,
In B4J is there a way to prevent an Action from occurring if I don't want it to occur?
For example, before I respond to a ListView item click, a button press, or the application close button press, I want to check if there are any unsaved changes.
I'm using the "_Action" event to respond to item clicks, button presses, etc.
Is there a way know that the action is about to happen and stop it before it happens?
For example, when someone clicks on an item in the ListView, I want to first check if there are unsaved changes and be able to prevent things like the selection index changing and _Action event being called.
... Maybe there is an event that happens before _Action where if you return False the action is canceled?
Thanks,
Barry.
In B4J is there a way to prevent an Action from occurring if I don't want it to occur?
For example, before I respond to a ListView item click, a button press, or the application close button press, I want to check if there are any unsaved changes.
I'm using the "_Action" event to respond to item clicks, button presses, etc.
Is there a way know that the action is about to happen and stop it before it happens?
For example, when someone clicks on an item in the ListView, I want to first check if there are unsaved changes and be able to prevent things like the selection index changing and _Action event being called.
... Maybe there is an event that happens before _Action where if you return False the action is canceled?
Thanks,
Barry.