[futurebasic] Re: [FB] Simple alert sheet

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

From: Robert Purves <listrp@...>
Date: Thu, 25 Oct 2007 00:43:39 +1300
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."

Robert P.