main logo
Subject: Re: [dabo-users] dabo Form with CancelButton
Author: Uwe Grauer
Posted: 2006/10/31 10:09:26
 
View Entire Thread
New Search


Uwe Grauer wrote:
> Uwe Grauer wrote:
>> If i modify a record in a Editform and i try to close the Form without
>> saving the modified record, a Dialog comes up asking what to do:
>> Do you wish to save your changes? (Yes, No, Cancel)
>>
>> So i thought dabo does this because this Button isn't a CancelButton .
>> I tried to set the Property CancelButton in the Forms afterInit like:
>>
>> self.dButtonCancel.CancelButton = True
>>
>> This didn't work because i got an error-message 'Object has no Attribute
>> CancelButton'.
>> So, how can i set the Property CancelButton? Do i have to set a RegId
>> for my Button with the name dButtonCancel?
>>
>> Is this the right way to suppress the Dialog asking me what to do?
>>
>> Because there is nearly no documentation i want to put these things into
>> the wiki once i know the right answer.
>>
>> Do you have any preferences on how to organize this in the wiki?
>> I thought it might be a start to get together some sort of FAQ first.
>>
>> Uwe
>>
>
> I can see how a property has to be set in the DaboDemo, but i'm using
> ClassDesigner to generate my Forms.
>
> Uwe

>

I already noticed, that i could call self.Form.cancel() which does the
trick, but what about the 'CancelButton = True' thing?

Uwe


 
©2006 Uwe Grauer
<-- Prior Message New Search Next Message -->