| version 1.1, 2003/10/24 19:19:58 | version 1.3, 2003/10/30 19:39:52 | 
| Line 7 | Line 7 | 
 | */ | */ | 
 |  |  | 
 | #include        "compiler.h" | #include        "compiler.h" | 
 |  | #include        "dialogutils.h" | 
 |  |  | 
 | enum {kTabMasterSig = 'ScrT',kTabMasterID = 1000,kTabPaneSig= 'ScTb'}; | enum {kTabMasterSig = 'ScrT',kTabMasterID = 1000,kTabPaneSig= 'ScTb'}; | 
 |  |  | 
| Line 53  short changeTab(WindowRef window, UInt16 | Line 54  short changeTab(WindowRef window, UInt16 | 
 |  |  | 
 | return(0); | 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<max; i++) { | 
 |  | CheckMenuItem(mhd, i, false); | 
 |  | } | 
 |  | } | 
 |  |  | 
 |  | void setjmper(BYTE *board, BYTE value, BYTE bit) { | 
 |  | BYTE data; | 
 |  | data = *board; | 
 |  | if ((data ^ value) & bit) { | 
 |  | data &= ~bit; | 
 |  | data |= value; | 
 |  | *board = data; | 
 |  | } | 
 |  | } | 
 |  |  | 
 |  |  |