Re: Deactivate event for pagepanel

Antonio Rinaldi <[email protected]> Mon, 01 Jan 2018 11:06:34 +0100
Newsgroups gmane.comp.lang.realbasic.user
Message-ID <[email protected]>
It doesn't fire when a control changes, but when the control changes you can test if you need the event and set the property contentsChanged to true (or false) and as consequence the event (contentsChanged will fire)

It's a little hard to explain in words, try it with a simple project.
It's hard since you have both an event and a property with the same name. But when you start to use it, you will understand quickly how it is really useful 

Antonio

> Il giorno 31 dic 2017, alle ore 19:29, donJ <[email protected]> ha scritto:
> 
> On 12/31/2017 10:58 AM, Antonio Rinaldi wrote:
>> 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
>> 
>> 
> Thank you antonio. I never noticed a contentchanged event before. I'll look at that this evening. If it fires when the content of an enclosed control changes, that would be convenient.
> 
> Thank you
> Don
> 
> 
> To unsubscribe, email [email protected]
> 



To unsubscribe, email [email protected]