// COPYRIGHT (C) 1990-1999.  All Rights Reserved. - BITMAP5.HPP
// Zinc Software Incorporated.  Pleasant Grove, Utah  USA
// May be freely copied, used and distributed.
#include <zaf.hpp>

#define MAX_INTERVAL 250
#define MIN_INTERVAL  10
#define INITIAL_INTERVAL  50

const ZafEventType U_ADJUST_TIMER  = 10000;
const ZafEventType U_OPEN_BITMAP   = 10001;
const ZafEventType U_CLOSE_BITMAP  = 10002;
const ZafEventType U_UPDATE_SCROLL = 10003;
const ZafEventType U_RESET_TIMER   = 10004;

class ControlWindow : public ZafWindow
{
public:
	// --- General members ---
	ControlWindow(ZafIChar *name, ZafObjectPersistence &persist);
	~ControlWindow();
	virtual ZafEventType Event(const ZafEventStruct &event);

protected:
	void OpenBitmapWindow(void);
	void CloseBitmapWindow(void);
	void ResetTimerInterval(void);
	void ResetScrollBar(void);
	int bitmapCounter;
	ZafComboBox *bitmapCombo;
	ZafInteger *currentInterval;
	ZafScrollBar *slider;
};

class BitmapWindow : public ZafWindow
{
public:
	// --- General members ---
	BitmapWindow(ZafIChar *tBuff);
	~BitmapWindow() {}
	virtual ZafEventType Event(const ZafEventStruct &event);
};
