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

Re: [MacPerl-Toolbox] Disabling (not Hiding) items in dialog boxes?



Ian Crew writes 19 May 1999:

>In the documentation for Dialogs.pm, there is a mention of a
>"kItemDisableBit", which I'm guessing is designed to do exactly what
>I'm looking for.

No, really it _isn't_; you're barking up the wrong tree. Look at Inside
Macintosh Chapter 6 "Dialog Manager" Page 36 "Enabled and Disabled Items".

However, there are two problems:
>        1) There's no mention of how one would go about setting/unsetting
>           this bit for an item
>        2) When I try to use it in the process of creating an item, the
>           machine just drops into MACSBug.

Look also at Chapter 6 Page 121 "GetDialogItem" which explains the meaning
of the bits and tells you what to do with them.

>Anyone know if "kItemDisableBit" is what you need to use to disable
>an item in a dialog box, and, if so, how it's used?

Jefferson R. Lowrey adds:

>Wait, I think I found it.  There's a constant, itemDisable, that gets added
>to  the item type to disable it.

Right, that's what Page 121 above says.

However I believe you will find in Dialogs.pm that it does not work as expected.

Alan Fry



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