--- np2/macosx/Attic/dialogutils.cpp 2003/10/24 19:19:58 1.1 +++ np2/macosx/Attic/dialogutils.cpp 2003/10/30 19:39:52 1.3 @@ -7,6 +7,7 @@ */ #include "compiler.h" +#include "dialogutils.h" enum {kTabMasterSig = 'ScrT',kTabMasterID = 1000,kTabPaneSig= 'ScTb'}; @@ -53,3 +54,40 @@ short changeTab(WindowRef window, UInt16 return(0); } + +pascal OSStatus changeSlider(ControlRef theControl, WindowRef theWindow, short base) { + ControlRef conRef; + ControlID conID; + Str255 title; + SInt32 value; + + value = GetControl32BitValue(theControl) - base; + NumToString(value, title); + if (GetControlID(theControl, &conID) == noErr) { + conRef = getControlRefByID(conID.signature, conID.id+1000, theWindow); + SetControlData(conRef, kControlNoPart, kControlStaticTextTextTag, *title, title+1); + Draw1Control(conRef); + } + return( eventNotHandledErr ); +} + +void uncheckAllPopupMenuItems(OSType ID, short max, WindowRef win) { + MenuRef mhd; + short i; + mhd = GetControlPopupMenuHandle(getControlRefByID(ID, 0, win)); + for (i=1; i