private void BuildWidgets() { drawing_area = new DrawingArea (); drawing_area.ExposeEvent += HandleDrawingAreaExposeEvent; drawing_area.Show (); drawing_area_alignment = new Alignment (0, 0, 1, 1); drawing_area_alignment.SetSizeRequest (-1, 32); drawing_area_alignment.Add (drawing_area); PackStart (drawing_area_alignment); detect_button = new Button (Catalog.GetString ("D_etect")); detect_button.Clicked += HandleDetectButtonClicked; detect_button.Show (); PackEnd (detect_button); ShowAll (); }
private void Construct() { // Constructing title textview _titleTextView = new TextView(); TextBuffer titleBuffer = _titleTextView.Buffer; titleBuffer.Text = this._item.GetTitle(); // Constructing the title Alignment _titleAlignment = new Alignment (0, 0, 0, 0); _titleAlignment.SetSizeRequest (80, 25); // Constructing content textview _contentTextView = new TextView (); TextBuffer contentBuffer = _contentTextView.Buffer; contentBuffer.Text = this._item.GetContent(); // constructing content alignment _contentAlignment = new Alignment (0, 0, 0, 1); SwitchTitleView(false); SwitchContentView(false); }