/* sample2 has no special functionality, it only try to seem like a web-    */
/* browser you know. sample2 shows you how to                               */
/* - create standard applications                                           */
/* - use menubars                                                           */
/* - create window-controls of different types                              */
/* - create toolbars and attach window- controls to them                    */
/* - special gimmick: a graphic-button which displays an animation          */

#include "xheaders.h"

#include XApplication_i
#include XScrollWindow_i
#include XResourceLibrary_i
#include XMenuBar_i
#include XRect_i
#include XResource_i
#include XToolBar_i
#include XPushButton_i
#include XComboBox_i
#include XStaticText_i
#include XStaticIcon_i
#include XStaticBitmap_i
#include XStaticFrame_i
#include XControlEvent_i
#include XGraphicButton_i

#include "resource.h"

#define IDM_ANIMATION 1000


class MyAppWindow: public XScrollWindow
{
   public:
      MyAppWindow( XApplication * app, XResource );
      void DoCommand( LONG);
      void Draw( void );
      BOOL QueryForClose( void );
   private:
      XMenuBar * menu;
      XToolBar * toolBar1, *toolBar2, *toolBar3;
      XPushButton * back, *forward, * home;
      XComboBox * http;
      XStaticText * text, *text2;
      XGraphicButton * animation;
      XStaticBitmap * key;
      XStaticFrame * border;
};


class MyApp: public XApplication
{
   public:
      BOOL QueryForQuit( void );
      MyAppWindow * window;
};

