[futurebasic] Re: [FB] Need modern implementation (btnID from controlRef)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2011 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Wed, 27 Jul 2011 08:49:01 -0400
Robert wrote:

>Another member suggested offlist that I try err = fn GetControlID( 
>c, ctrlID ) // controld ID in ctrlID.id

Robert,

Command-clicking on fn Handle2Btn reveals its underpinnings:


local fn Handle2Btn( c as ControlRef )
'~'1
dim as ControlID   cID

beginCCode
if ( GetControlID( c, &cID ) ) cID.id = 0;
EndC
end fn = cID.id