[Gambas-user] Safety for collections. Solved! Hah!
adamnt42 at gmail.com
Sun Aug 27 15:24:14 CEST 2023
On 24/8/23 11:29 pm, T Lee Davidson wrote:
> On 8/24/23 08:25, BB wrote:
>> 1. User clicks on an item in the list. System loads and displays the
>> related object in the editor form.
>> 2. User changes the object name and does nothing else.
>> 3. (While focus is still on the name textbox or even after stuffing
>> around in other editor controls and then shifting back) User presses
>> ---> The text reverts to the original but the "changed" indicator is
>> still set to true.
>> This gets even worse when they do repeated changes and undos.
> * Monitor keypress events on the ObjectName field and use "Ctrl+Z" as
> a trigger to reset the semaphore?
> * When the editor form loads, save the value of the ObjectName field
> to a global var, and then upon Save, compare the values?
Finally got it working. Or to be true, finally got my head twisted the
right way around and thanks to all who replied, worked out where I was
going wrong (I was trying to do it from the "collection end" when I
should have just looked at what the user was trying to do. Sheeesh, am I
getting that old?)
More information about the User