2 * Copyright 2005, Jérôme Duval. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Inspired by SoundCapture from Be newsletter (Media Kit Basics: Consumers and Producers)
13 #define DRAG_ITEM 'dndi'
15 class UpDownButton
: public BControl
18 UpDownButton(BRect rect
, BMessage
*msg
, uint32 resizeFlags
= 0);
20 virtual void Draw(BRect
);
21 virtual void MouseDown(BPoint point
);
22 virtual void MouseMoved(BPoint point
, uint32 transit
, const BMessage
*message
);
23 virtual void MouseUp(BPoint point
);
26 BBitmap
*fBitmapUp
, *fBitmapDown
, *fBitmapMiddle
;