// This is a sample.txt file
// 
#include <sol\ApplicationView.h>
#include <sol\ScrolledText.h>

class MainView :public ApplicationView {
    ScrolledText sctext;
 
  public:
    // Constructor
    MainView(Application& applet, const char* name, Args& args)
        :ApplicationView(applet, name, args) 
    {
        Args ar;
        // Create a window of ScrolledText
        sctext.create(this, "", ar);

        // Add the sctext to a default layout-manager.
        add(sctext);

        // Call the method load of class Text to read a 
        //content of the file "sample.txt".
        sctext.load("sample.txt"); 
    }
};

