[futurebasic] Re: Function Pointers

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1998 : Group Archive : Group : All Groups

From: Mark Goodes <wave@...>
Date: Sun, 24 May 1998 18:31:04 -0400
>I want to pass the toolbox function "FN TRACKCONTROL" a pointer to my
>procedure to handle a scrollbar click. How do you get a pointer to a
>function?
>
>-Forrest Blanton


I haven't tested this, but it should go something like this:

goto "Skip Proc"
"Click Proc"
ENTERPROC(theControl&,thePart%)
  ' insert FB code here--make it tight because it is called repeatedly
EXITPROC
"Skip Proc"

' then put this in your calling code:
cProcPtr&=line "Click Proc"
partCode% = FN TRACKCONTROL (ctlH&,cPoint,cProcPtr&)


HTH

____________
wave (Toronto, Canada)
Much better at "OOPS!" programming than OOP programming.