Ejemplo n.º 1
0
        // ============================================
        // PUBLIC Constructors
        // ============================================
        public TalkFrame(UserInfo userInfo)
        {
            // Initialize User Info
            this.userInfo = userInfo;

            // VPaned Position
            this.Position = 120;

            Gtk.Frame frame;

            // Output Text View
            this.talkView = new TalkView();

            // Output Scrolled Window
            this.scrolledWindowOut                  = new Gtk.ScrolledWindow(null, null);
            this.scrolledWindowOut.ShadowType       = Gtk.ShadowType.None;
            this.scrolledWindowOut.HscrollbarPolicy = Gtk.PolicyType.Automatic;
            this.scrolledWindowOut.VscrollbarPolicy = Gtk.PolicyType.Automatic;
            this.scrolledWindowOut.Add(this.talkView);

            // Output Frame
            frame            = new Gtk.Frame();
            frame.Shadow     = ShadowType.EtchedOut;
            frame.ShadowType = ShadowType.EtchedOut;
            frame.Add(this.scrolledWindowOut);
            this.Add1(frame);

            // Input Text View
            this.inputView = new Gtk.TextView();
            this.inputView.HeightRequest    = 25;
            this.inputView.KeyReleaseEvent += new KeyReleaseEventHandler(OnKeyReleaseEvent);

            // Input Scrolled Window
            this.scrolledWindowIn                  = new Gtk.ScrolledWindow(null, null);
            this.scrolledWindowIn.ShadowType       = Gtk.ShadowType.None;
            this.scrolledWindowIn.HscrollbarPolicy = Gtk.PolicyType.Automatic;
            this.scrolledWindowIn.VscrollbarPolicy = Gtk.PolicyType.Automatic;
            this.scrolledWindowIn.Add(this.inputView);

            // Input Frame
            frame            = new Gtk.Frame();
            frame.Shadow     = ShadowType.EtchedOut;
            frame.ShadowType = ShadowType.EtchedOut;
            frame.Add(this.scrolledWindowIn);
            this.Add2(frame);

            // Show All
            this.ShowAll();
        }
Ejemplo n.º 2
0
        // ============================================
        // PUBLIC Constructors
        // ============================================
        public TalkFrame(UserInfo userInfo)
        {
            // Initialize User Info
            this.userInfo = userInfo;

            // VPaned Position
            this.Position = 120;

            Gtk.Frame frame;

            // Output Text View
            this.talkView = new TalkView();

            // Output Scrolled Window
            this.scrolledWindowOut = new Gtk.ScrolledWindow(null, null);
            this.scrolledWindowOut.ShadowType = Gtk.ShadowType.None;
            this.scrolledWindowOut.HscrollbarPolicy = Gtk.PolicyType.Automatic;
            this.scrolledWindowOut.VscrollbarPolicy = Gtk.PolicyType.Automatic;
            this.scrolledWindowOut.Add(this.talkView);

            // Output Frame
            frame = new Gtk.Frame();
            frame.Shadow = ShadowType.EtchedOut;
            frame.ShadowType = ShadowType.EtchedOut;
            frame.Add(this.scrolledWindowOut);
            this.Add1(frame);

            // Input Text View
            this.inputView = new Gtk.TextView();
            this.inputView.HeightRequest = 25;
            this.inputView.KeyReleaseEvent += new KeyReleaseEventHandler(OnKeyReleaseEvent);

            // Input Scrolled Window
            this.scrolledWindowIn = new Gtk.ScrolledWindow(null, null);
            this.scrolledWindowIn.ShadowType = Gtk.ShadowType.None;
            this.scrolledWindowIn.HscrollbarPolicy = Gtk.PolicyType.Automatic;
            this.scrolledWindowIn.VscrollbarPolicy = Gtk.PolicyType.Automatic;
            this.scrolledWindowIn.Add(this.inputView);

            // Input Frame
            frame = new Gtk.Frame();
            frame.Shadow = ShadowType.EtchedOut;
            frame.ShadowType = ShadowType.EtchedOut;
            frame.Add(this.scrolledWindowIn);
            this.Add2(frame);

            // Show All
            this.ShowAll();
        }