Re: Deactivate event for pagepanel

Antonio Rinaldi <[email protected]> Sun, 31 Dec 2017 17:58:45 +0100
Newsgroups gmane.comp.lang.realbasic.user
Message-ID <[email protected]>
The dirty property/event already exist in a Window: it's the contentsChanged property/event

When the user modify the data you can set the property to true, in the event (that has the same name) enable/disable the save/cancel/apply buttons using the property value, check the property value in the cancelClose event and before changing the record with the listbox, finally set the property to false every time you load/create a record.

Ciao
Antonio

> Il giorno 30 dic 2017, alle ore 18:00, donJ <[email protected]> ha scritto:
> 
> On 12/29/2017 04:37 PM, Jim Wagner wrote:
>> Also, do not forget to do the same thing if the window is closed (without changing page panels) when it is dirty.
>> 
>> Jim
>> 
>> James Wagner
>> Oregon Research Electronics
>> http://www.orelectronics.net
>> 
>> 
> Hi Jim,
> I trapped it in the Listbox mousedown event. This way it applys (or not) the changes before the listbox change. And yes, I did catch it in CancelClose.
> 
> Thank you,
> 
> Don
> 
> 
> To unsubscribe, email [email protected]
> 



To unsubscribe, email [email protected]