-#if !TARGET_API_MAC_CARBON
-static pascal SInt32 macctrl_sys7_text_cdef(SInt16 variant, ControlRef control,
- ControlDefProcMessage msg, SInt32 param)
-{
- RgnHandle rgn;
-
- switch (msg) {
- case drawCntl:
- if ((*control)->contrlVis)
- TETextBox((*control)->contrlTitle + 1, (*control)->contrlTitle[0],
- &(*control)->contrlRect, teFlushDefault);
- return 0;
- case calcCRgns:
- if (param & (1 << 31)) {
- param &= ~(1 << 31);
- goto calcthumbrgn;
- }
- /* FALLTHROUGH */
- case calcCntlRgn:
- rgn = (RgnHandle)param;
- RectRgn(rgn, &(*control)->contrlRect);
- return 0;
- case calcThumbRgn:
- calcthumbrgn:
- rgn = (RgnHandle)param;
- SetEmptyRgn(rgn);
- return 0;
- }
-
- return 0;
-}
-#endif
-