Category : C Source Code
Archive   : DFPP03.ZIP
Filename : SCROLBAR.H

 
Output of file : SCROLBAR.H contained in archive : DFPP03.ZIP
// -------- scrolbar.h

#ifndef SCROLBAR_H
#define SCROLBAR_H

#include "dfwindow.h"

class TextBox;

/* ------------- scroll bar characters ------------ */
const unsigned char UPSCROLLBOX = '\x1e';
const unsigned char DOWNSCROLLBOX = '\x1f';
const unsigned char LEFTSCROLLBOX = '\x11';
const unsigned char RIGHTSCROLLBOX = '\x10';
const unsigned char SCROLLBARCHAR = 176 ;
const unsigned char SCROLLBOXCHAR = 178;

enum BarPlane { HORIZONTAL, VERTICAL };

class ScrollBar : public DFWindow {
int scrollbox; // position of scroll box
Bool sliding; // True while siding the scroll box
BarPlane plane; // HORIZONTAL or VERTICAL
void ParentSized(int xdif, int ydif);
protected:
public:
ScrollBar(BarPlane Plane, TextBox *par);
// -------- ScrollBar API messages
void Paint();
Bool SetFocus();
void LeftButton(int mx, int my);
void MouseMoved(int mx, int my);
void ButtonReleased(int mx, int my);
void TextPosition(int TxPct);
void MoveScrollBox(int sb);
};

#endif





  3 Responses to “Category : C Source Code
Archive   : DFPP03.ZIP
Filename : SCROLBAR.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/