[futurebasic] Re: [FB] Simple alert sheet

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2007 : Group Archive : Group : All Groups

From: Bernie <fblist.bw@...>
Date: Wed, 24 Oct 2007 12:49:05 +0100
On 24 Oct 2007, at 12:43, Robert Purves wrote:

>
> Bernie wrote:
>
>> I'm implementing a simple, single button alert sheet and in this  
>> instance, it seems there is no need to install a command process  
>> handler. The question is, should I be disposing of the dialog ref  
>> and/or calling DisposeWindow? (MallocDebug does not show a leak).
>
> "When a button in
>  *    the sheet is pressed, the EventTargetRef passed to
>  *    CreateStandardSheet will receive a command event with one of the
>  *    command IDs kHICommandOK, kHICommandCancel, or kHICommandOther.
>  *    The sheet is hidden and the sheet dialog destroyed before the
>  *    command is sent; the caller does not have to call  
> HideSheetWindow
>  *    or DisposeDialog."
>

Super!  Thanks.

Bernie