[futurebasic] Re: [FB] Button Errors

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2004 : Group Archive : Group : All Groups

From: Bernie Wylde <bernie.w@...>
Date: Mon, 29 Mar 2004 17:33:13 +0100
On 29 Mar 2004, at 17:22, Brian Heibert wrote:

> APPEARANCE BUTTON 3,,,,,  "New Project", (102,336)-(232,356), 
> _kControlPushButtonProc¬
> bool= _zTrue
> DEF SETBUTTONDATA(1, 
> _kControlEntireControl,_kControlPushbuttonDefaultTag, SIZEOF(BOOLEAN),
> bool)
> What is wrong with the code (above) I am trying to make a default push 
> button in OS X that flashes or
> whatever you call it

Brian,

1) Your App Btn and SetButtonData IDs need to be the same
2) The opt-L at the end of the first line shouldn't be there

This works:
APPEARANCE BUTTON 3,,,,,  "New Project", (102,336)-(232,356), 
_kControlPushButtonProc
bool = _zTrue
DEF SETBUTTONDATA(3, 
_kControlEntireControl,_kControlPushbuttonDefaultTag, SIZEOF(BOOLEAN), 
bool)

Bernie