It's not a number; it's an HIViewID, which is a synonym for a  
ControlID, which is

struct ControlID {
    OSType signature;
    SInt32 id;
};


The best way to resolve kHIViewWindowGrowBoxID is to use CFBundle  
functions.  Go to <http://www.declaresub.com/iDeclare/CoreFoundation/ 
index.html>.  Then go to the CFBundle section and look for the  
section "Resolution of Constants".

Here is some code taken from that section, reworked to use recent  
language additions.

Function DataPointer(symbolName as String) As MemoryBlock
   const CarbonLib = "Carbon.framework"

   soft declare function CFBundleGetBundleWithIdentifier Lib  
CarbonLib (bundleID as CFStringRef) as Ptr

   const CarbonBundleID = "com.apple.Carbon"

   dim carbonBundle as MemoryBlock = CFBUndleGetBundleWithIdentifier 
(CarbonBundleID)
   if carbonBundle = nil then
     return nil
   end if

   soft declare function CFRetain lib CarbonLib (p as Ptr) as Ptr

   Call CFRetain(carbonBundle)

   soft declare function CFBundleGetDataPointerForName Lib CarbonLib  
(bundle as Ptr, symbolName as CFStringRef) as Ptr

   dim p as MemoryBlock = CFBundleGetDataPointerForName(carbonBundle,  
symbolName)

   soft declare sub CFRelease lib CarbonLib(cf as Ptr)

   CFRelease carbonBundle

   return p

exception fnf as FunctionNotFoundException
   return nil

End Function



Charles Yeomans




On Apr 23, 2007, at 1:53 PM, Marc (aliacta.com) wrote:

> I'm gradually finding the information I need.  Can someone tell me
> how to find out the number behind the constant kHIViewWindowGrowBoxID?
>
> Thanks,
>
> Marc
>
> On Apr 23, 2007, at 7:02 PM, Marc (aliacta.com) wrote:
>
>> Is there a declare to make a window's growbox transparent on OS X?
>>
>> Thanks,
>>
>> Marc
>>
>> PS: I think it's in the MBS plugin but if there's a quick and dirty
>> declare I'd rather do that since I don't own said plugin.
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to