
Signature
/los "I was a teenage net-random"
------------------------------------------------------------------------
Opinions expressed here are mine and not necessarily those of my employer!
------------------------------------------------------------------------
> yes that helped a BUNCH! Thanks; sort of related, can't I create dialog
> controls, such as a slider or pop-up [for a choice list] in ResEdit, or
> must I use [and learn] Rez language? Thanks in advance.
You can do this in ResEdit, but it's a deep, dark secret....
I'm trying to remember when the slider CDEF got added to the system
- should be fairly early (around 7?), which is when popup menu controls
also became available. See if you can find Mac Programming primer vol 2
or similar.
Essentially, you have to know the system control ID for what you want
and create a CNTL resource corresponding to it, then add that CNTL
into your DITL/DLOG. (At least, that's how I remember doing it - it's
been a long while!) The relevant id numbers should be together with
the #define's in the Controls header file.
Uli Kusterer - 15 Jan 2006 17:59 GMT
> > yes that helped a BUNCH! Thanks; sort of related, can't I create dialog
> > controls, such as a slider or pop-up [for a choice list] in ResEdit, or
[quoted text clipped - 6 lines]
> also became available. See if you can find Mac Programming primer vol 2
> or similar.
No, System 7 only added the popup. Slider arrived with Appearance, i.e.
sometime around System 8, along with a lot of other stuff you wouldn't
want to miss.
> Essentially, you have to know the system control ID for what you want
> and create a CNTL resource corresponding to it, then add that CNTL
> into your DITL/DLOG. (At least, that's how I remember doing it - it's
> been a long while!) The relevant id numbers should be together with
> the #define's in the Controls header file.
Just one annoying thing about CNTLs: You have to specify the rect for
the control in the CNTL as numbers, you can't resize it in ResEdit's
DITL editor. The commercial resource editor Resorcerer would take care
of that for you, I think.
HTH,
-- Uli
http://www.zathras.de