TGTextView


class description - source file - inheritance tree

class TGTextView : public TGCompositeFrame


    public:
TGTextView TGTextView(TGWindow* parent, UInt_t w, UInt_t h, UInt_t options = kChildFrame, ULong_t back = fgDefaultFrameBackground) TGTextView TGTextView(TGTextView&) virtual void ~TGTextView() TClass* Class() virtual void Clear(Option_t* opt) virtual void DrawBorder() virtual TGDimension GetDefaultSize() const const TGTextFrame* GetTextFrame() const virtual TClass* IsA() const virtual void Layout() Bool_t LoadBuffer(const char* txtbuf) Bool_t LoadFile(const char* fname) virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
TGTextFrame* fTextCanvas TGVScrollBar* fVsb

Class Description

                                                                      
 TGTextView                                                           
                                                                      
 A TGTextView displays a file or a text buffer in a frame with a      
 vertical scrollbar. Internally it uses a TGTextFrame which displays  
 the text.                                                            
                                                                      


TGTextView(TGWindow *parent, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGCompositeFrame(parent, w, h, options, back)
 Create text view widget.

~TGTextView()
 Delete text view widget.

Bool_t LoadFile(const char *fname)
 Load file in text view widget.

Bool_t LoadBuffer(const char *txtbuf)
 Load 0 terminated txtbuf buffer in text view widget.

void Clear(Option_t *)
 Clear text view widget.

Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t)
 Handle scrollbar messages.

void Layout()
 Layout TGTextFrame and vertical scrollbar in the text view widget.

void DrawBorder()
 Draw border of text view widget.



Inline Functions


               TGDimension GetDefaultSize() const
        const TGTextFrame* GetTextFrame() const
                   TClass* Class()
                   TClass* IsA() const
                      void ShowMembers(TMemberInspector& insp, char* parent)
                      void Streamer(TBuffer& b)
                TGTextView TGTextView(TGTextView&)


Author: Fons Rademakers 23/02/98
Last update: 2.23/09 17/11/99 15.24.43 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.