-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMyParamDisplay.h
More file actions
34 lines (27 loc) · 902 Bytes
/
MyParamDisplay.h
File metadata and controls
34 lines (27 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* MyParamDisplay.h
* C700
*
* Created by osoumen on 12/10/05.
* Copyright 2012 __MyCompanyName__. All rights reserved.
*
*/
#pragma once
#include "vstgui.h"
class CMyParamDisplay : public CParamDisplay
{
public:
CMyParamDisplay(const CRect& size, long tag, float valueMultipler = 1.0f, char *unitStr = 0, CBitmap* background = 0, const long style = 0);
virtual ~CMyParamDisplay();
virtual CMouseEventResult onMouseDown (CPoint& where, const long& buttons);
virtual CMouseEventResult onMouseUp (CPoint& where, const long& buttons);
virtual CMouseEventResult onMouseMoved (CPoint& where, const long& buttons);
CLASS_METHODS(CMyParamDisplay, CParamDisplay)
protected:
static void stringConvert(float value, char *string, void *userData);
static const int UNITSTR_LEN = 64;
char mUnitStr[UNITSTR_LEN];
float mValueMultipler;
CPoint mInitialPos;
float mInitialValue;
};