[futurebasic] Re: [FB] Dialog Manager question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 1999 : Group Archive : Group : All Groups

From: Paul Bruneau <paul_bruneau@...>
Date: Mon, 08 Feb 1999 17:28:38 -0500
Ok, thanks Derek, but do you see that the two procedures below are
supposedly the SAME??

Derek Smith wrote:
> 
> > Here we go (bear with me):
> >
> > Fact: On page 254 of the FBII Handbook it says:
> >
> > CALL SELITEXT (dItmH&,startSel%,endSel%)
> >
> > This says to me I need to pass the HANDLE to the dialog, although there
> > isn't much explanatory text in this part of the handbook.
> 
> No, here you pass a handle to the item in the dialog, not a handle to the
> dialog.
> 
> 
> > Now,
> >
> > Fact: Inside Macintosh (web edition) says this:
> >
> >         PROCEDURE SelectDialogItemText (theDialog: DialogPtr;
> >                                         itemNo: Integer;
> >                                         strtSel: Integer;
> >                                         endSel: Integer);
> 
> This is really easy.
> 
> 
> >         theDialog
> >                A pointer to a dialog record.
> 
> > See how it is asking for a POINTER to the dialog?
> >
> > My question is, do I pass a pointer, or do I pass a handle?
> 
> It wants a pointer to the dialog!  There's no easier way to say it.  Pass
> a pointer! (The same one NewDialog returns to you.)
> 
> -Derek
> 
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>