1 /* PoorManView.cpp 2 * 3 * Philip Harrison 4 * Started: 5/14/2004 5 * Version: 0.1 6 */ 7 8 9 #include "StatusSlider.h" 10 11 #include <stdio.h> 12 13 14 StatusSlider::StatusSlider (BRect frame, 15 const char *name, 16 const char *label, 17 char *statusPrefix, 18 BMessage *message, 19 int32 minValue, 20 int32 maxValue) 21 22 : BSlider(frame, 23 name, 24 label, 25 message, 26 minValue, 27 maxValue 28 ), 29 StatusPrefix(statusPrefix) 30 { 31 temp = str; 32 } 33 34 const char* 35 StatusSlider::UpdateText() const 36 { 37 38 sprintf(temp, "%ld %s", Value(), StatusPrefix); 39 40 return temp; 41 } 42