Greetings!

I need to draw some folders in a given window, and one may possibly be  
drawn selected.

I have this code in the paint event of a canvas (Folders is a property  
of array of type CFolder and CFolder is one custom class containing  
XPos and YPos as integer, the folderitem and the icon object):

dim c As CFolder
dim i,j As integer
dim x,y As integer

'<define x and y here>

for i=0 to UBound(Folders)
   c=Folders(i)

   if x=c.XPos and y=c.YPos and DropMode<>-1 then
     j=16384 'Draw selected
   Else
     j=0 'Draw normally
   end if
   c.Icon.DrawIcon g,c.XPos,c.YPos,64,64,0,j 'Try to draw the IconMBS  
here
next

The IconMBS object is constructed from the folderitem and is kept in  
the class so I don't have to renew it each time the paint event fires.

However, nothing is drawn and c.Icon.LastErrorCode is set to -1. The  
documentation says this:
"If the last function was not available on this machine, the value is  
set to -1." so why is the function not available on my 10.5.8 Mac Pro?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to