summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/RichTextBox.h
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/RichTextBox.h')
-rw-r--r--nGenEx/RichTextBox.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/nGenEx/RichTextBox.h b/nGenEx/RichTextBox.h
index deb7caa..b4d778c 100644
--- a/nGenEx/RichTextBox.h
+++ b/nGenEx/RichTextBox.h
@@ -1,15 +1,15 @@
/* Project nGenEx
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: nGenEx.lib
- FILE: RichTextBox.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: nGenEx.lib
+ FILE: RichTextBox.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- Rich Text Window - an HTML-like control
+ OVERVIEW
+ ========
+ Rich Text Window - an HTML-like control
*/
#ifndef RichTextBox_h
@@ -28,36 +28,36 @@
class RichTextBox : public ScrollWindow
{
public:
- static const char* TYPENAME() { return "RichTextBox"; }
+ static const char* TYPENAME() { return "RichTextBox"; }
- RichTextBox(ActiveWindow* p, int ax, int ay, int aw, int ah, DWORD aid=0, DWORD astyle=0);
- RichTextBox(Screen* s, int ax, int ay, int aw, int ah, DWORD aid=0, DWORD astyle=0);
- virtual ~RichTextBox();
+ RichTextBox(ActiveWindow* p, int ax, int ay, int aw, int ah, DWORD aid=0, DWORD astyle=0);
+ RichTextBox(Screen* s, int ax, int ay, int aw, int ah, DWORD aid=0, DWORD astyle=0);
+ virtual ~RichTextBox();
- int operator == (const RichTextBox& w) const { return id == w.id; }
+ int operator == (const RichTextBox& w) const { return id == w.id; }
- // Operations:
- virtual void DrawContent(const Rect& ctrl_rect);
- virtual void SetText(const char* t);
+ // Operations:
+ virtual void DrawContent(const Rect& ctrl_rect);
+ virtual void SetText(const char* t);
- // Event Target Interface:
- virtual int OnMouseMove(int x, int y);
- virtual int OnLButtonDown(int x, int y);
- virtual int OnLButtonUp(int x, int y);
- virtual int OnMouseWheel(int wheel);
- virtual int OnClick();
+ // Event Target Interface:
+ virtual int OnMouseMove(int x, int y);
+ virtual int OnLButtonDown(int x, int y);
+ virtual int OnLButtonUp(int x, int y);
+ virtual int OnMouseWheel(int wheel);
+ virtual int OnClick();
- virtual int OnKeyDown(int vk, int flags);
+ virtual int OnKeyDown(int vk, int flags);
protected:
- virtual void DrawTabbedText();
- virtual void DrawRichText(Rect& text_rect);
- int GetNextTab(int xpos);
-
- virtual int find_next_word_start(const char* text, int index);
- virtual int find_next_word_end(const char* text, int index);
- virtual int parse_hex_digit(char c);
- virtual int process_tag(const char* text, int index, Font*& font);
+ virtual void DrawTabbedText();
+ virtual void DrawRichText(Rect& text_rect);
+ int GetNextTab(int xpos);
+
+ virtual int find_next_word_start(const char* text, int index);
+ virtual int find_next_word_end(const char* text, int index);
+ virtual int parse_hex_digit(char c);
+ virtual int process_tag(const char* text, int index, Font*& font);
};