[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Toolbox] Newbie GUI question (ControlHandle)



> I'm trying to
> hide a control (of type pushButProc) with HideControl, but every time I
> try it comes back with "theControl is not of type ControlHandle". All the
> sample toolbox code I've found on the Net is in Pascal (sometimes C), and
> controls are defined explicitly as type ControlHandle.

You probably have a MacControl object (which is a wrapper for a
ControlHandle).

Instead of:
  HideControl($c);
use:
  HideControl($c->{control});

(Yes, I know this violates the encapsulation of the object, but there
isn't any MacControl::control method, so...).

-- 
 Kevin Reid: |    Macintosh:      
  "I'm me."  | Think different.

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org