On Jun 3, 2007, at 7:45 PM, Robert Purves wrote: > > Brian Stevens wrote: > >> Simple scenario: When a check box is selected with a check, a >> push button is activated (previously visible but dim). Window is >> nib-based and all controls are nib-based. Check box has a control >> hit handler assigned and control does reach the handler and the >> code verifying _kControlCheckBoxCheckedValue returns true >> (verified with simple prints and all values are as they should be). >> >> Once a the checkbox is confirmed as checked, it does an FN >> ActivateControl(c): >> >> fn ActivateControl( fn GetControlByIDWnd (_WeeklyWindow, >> _DelChecked) ) where GetControlByIDWnd returns a controlRef for >> the this window and this button (which has a corresponding ID >> defined in the nib). This should activate the push button but does >> not. If I immediately follow the ActivateControl with HiliteControl >> ( fn GetControlByIDWnd (_WeeklyWindow, _DelChecked), 0 ), the push >> button is activated and works as expected. > > Use EnableControl() > > toolbox fn EnableControl( ControlRef ) = OSStatus Had to slap myself after seeing this. The toolbox is already defined and used elsewhere in my code. Anyway, works as expected. Thank you. Brian S.