[comp.sys.mac.programmer] Simple

tedj@hpcilzb.HP.COM (Ted Johnson) (08/02/88)

Does anyone know what the difference is between "enabled" and "disabled"
"static text"  in ResEdit?

-Ted

bob@eecs.nwu.edu (Bob Hablutzel) (08/03/88)

> Does anyone know what the difference is between "enabled" and "disabled"
> "static text"  in ResEdit?

I assume you are editing dialog items. An "enabled" dialog item is one 
where a mouse click will be reported back to the program. If a user clicks
in a "disabled" item, the click will (normally) not be processed by the
application.

If you are writting your own application, set these to allow you to ignore
items you want displayed, but not clicked in. If you are looking at some
other application, _don't_ change these. Programs often assume that the
only items enabled were enabled "at the factory", and strange and unpleasant
things can happen if you change these settings behind the programs back.

Bob Hablutzel

leonardr@uxe.cso.uiuc.edu (08/03/88)

tedj@hpcilzb.UUCP() in comp.sys.mac.programmer

>Does anyone know what the difference is between "enabled" and "disabled"
>"static text"  in ResEdit?
>
	The difference is that same as for an enabled or disabled control, icon,
pict, etc. (please excuse capitalization) and that is that an enabled item when
clicked on will return satisfy a ModalDialog request and return the item
number in itemHit (assuming standard filter proc), while a disabled item can
be clicked on from now to St. Swizzle's Day and not cause any response.

+---------------------------------+-----------------------------------+
+                                 +  Any thing I say may be taken as  +
+   Leonard Rosenthol             +  fact, then again you might decide+
+   President, LazerWare, inc.    +  that it really isn't, so you     +
+                                 +  never know, do you??             +
+   leonardr@uxe.cso.uiuc.edu     +                                   +
+   GEnie:  MACgician             +  MacNET: MACgician                +
+   Delphi: MACgician             +                                   +
+                                 +                                   +
+---------------------------------+-----------------------------------+

ack@eleazar.dartmouth.edu (Andy J. Williams) (08/04/88)

In article <730050@hpcilzb.HP.COM> tedj@hpcilzb.HP.COM (Ted Johnson) writes:
>
>Does anyone know what the difference is between "enabled" and "disabled"
>"static text"  in ResEdit?

If it is disabled, it will not be considered by ModalDialog as an item hit.
It will be ignored.  If it is enabled, it will cause ModalDialog to return
with its item number.  Normally, it will be disabled.

See Inside Mac Volume one and the ModalDialog function for more info.

-Andy


Andy J. Williams '90   |Ack Systems: ack@eleazar.dartmouth.edu|   _   /|
Software Development   +--------------------------------------+   \`o_O' ACK!
Kiewit Computation Ctr |Hello. Set $NAME='Iinigo Montoya' You |     ( )  /
Dartmouth College      |kill -9 my process.  Prepare to vi.   |      U

mithomas@bsu-cs.bsu.edu (Michael Thomas Niehaus) (09/21/89)

Maybe someone can help me out:

1.  I am trying to find a CDEF that I could use in a dialog to implement
    a square button (no rounded corners).  Ideally, I would like to be able
    to place an ICON within the button just by putting the resource ID for
    the ICON in the control itself.  Does anyone know where I can find
    something similar?  I am really not up to writing a CDEF yet.

2.  How do you "grey out" a button in a dialog when it is not a valid
    choice?

Thanks in advance.

-Michael

-- 
Michael Niehaus        UUCP: <backbones>!{iuvax,pur-ee}!bsu-cs!mithomas
Apple Student Rep      ARPA:  mithomas@bsu-cs.bsu.edu
Ball State University  AppleLink: ST0374 (from UUCP: st0374@applelink.apple.com)