[futurebasic] Re: [FB] Add custom items to a nav dialog

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

From: Robert Purves <robert.purves@...>
Date: Wed, 31 May 2006 13:32:22 +1200
Joe Lertola wrote:

> I can get this code to run. I get a dialogue box that says: "The  
> following toolbox items are not available on this computer.  
> HIViewSetID"

HIViewSetID() requires OS X 10.4

The fix is to replace the offending call:

ignore = fn HIViewSetID( button&( _navCustomCheckBox ), ¬
_"Chck", 1 )

by an older equivalent:

dim as ControlID id
id.signature = _"Chck"
id.id = 1
ignore = fn SetControlID( button&( _navCustomCheckBox ), id )


Robert P.