A question about "declare function" 
Author Message
 A question about "declare function"

I'm trying to implement LLastClick. By looking at exemples I think it may be
something like this. But it's wrong of course.

theList is the name of my List
and the LLastClick returns a value of type Cell

I'm developping for OSX , is  lib "CarbonLib" OK ?

declare function LLastClick lib "CarbonLib" (theList as Listbox) as integer

Dim thePoint  as memoryBlock
Dim x,y as integer

thePoint = LLastClick(theList)
y = thePoint.short(0)
x = thePoint.short(2)

Thanks in advance

claudej



Sat, 27 Sep 2003 06:28:09 GMT  
 A question about "declare function"


Quote:
> declare function LLastClick lib "CarbonLib" (theList as Listbox) as integer

You're mixing things up here by trying to pass a RB class to a Toolbox
function.  The RB ListBox class may or may not be based on a List
Manager list (I don't know how it's implemented), but it isn't the
same.  You have to pass a ListHandle to this function, and as far as I
can tell there isn't a ListHandle associated with a RB ListBox -- or at
least not one we can access.

If I'm wrong I'm sure Joe will correct me!  :-)



Sat, 27 Sep 2003 22:19:16 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. "declare" newbie questions

2. beginners "let"/"random" question

3. Help with "Declare"

4. Question about "function"

5. Declaring variables with "varying" names

6. Question about function "etime"

7. Beginner question on function "LENGTH"

8. VB-type "Declare" in Tcl

9. "neither declared nor bound" warning

10. Wired Magazine Declares Forth "Extinct"

11. string.join(["Tk 4.2p2", "Python 1.4", "Win32", "free"], "for")

12. Function names and "filter" function

 

 
Powered by phpBB® Forum Software