Menu

[327ada]: / Source / Tests / Explorer / Dropdown.h  Maximize  Restore  History

Download this file

30 lines (23 with data), 641 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
#ifndef DROPDOWN_INCLUDE
#define DROPDOWN_INCLUDE
#include "Component.h"
#include <string>
class DLLIMPORT Dropdown : public Component {
std::vector<std::string> items;
public:
Dropdown(int left,int top,int width,int height);
~Dropdown();
int itemheight;
bool dropped;
int selindex;
// Collapse or not to collapse
void Toggle();
void AddItem(const char* text);
const char* GetItem(unsigned int index);
const char* GetSelection();
unsigned int GetItemCount();
void Clear();
void SetSelection(const char* text);
void DrawText(LPD3DXFONT font,LPD3DXSPRITE sprite);
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.