Creating RSS aggregator’s using Gtk# in MonoDevelop


Introduction

The user interface for the RSS aggregator's main application window, the source code for the RSS aggregator uses Windows Forms, you are free to choose Gtk# as your user interface technology.

Adding  Menu and Containers:
 
Starting within an empty window, add two rows that will contain both the menu and the content for the rest of the application. By choosing the Vertical Box and placing it in the Window control to split the window into two rows.                                              

Window with menu and placeholders:

fig1.gif

Adding Your Main Controls

Step 1 

Add a List or Tree View control to the leftmost pane (for the RSS feed subscriptions) and to the right-top pane (for the threads). The bottom-right row holds the contents for each thread selected using a Text View control.

The window with all controls in place:

fig2.gif

Step 2

The main application window is now starting to take shape; however, some of the controls have properties that need modifying.
 
Step 3

Starting with the main menu; far too many options are available at the moment, as these were added by default. You simply want a File menu with Open, Close, and Quit items. So, select the Menu Bar control, and view the Properties window.

Menu control's Properties window:

fig3.gif

Step 4

Menu control's context-sensitive menu:

fig4.gif

Step 5

The Edit Menu option is available, so select this option to modify your Menu Bar control via the Menu Editor dialog box to match your requirements.

Menu Editor dialog box:

fig5.gif

Step 6

Working with the Menu Bar control used as an application's main menu

  • Menu items are parents and as such can have child items. You can add these by clicking
    the Add Child button. The child items appear only when the parent menu item has been
    selected.
  • A menu item can be based on a stock item, which is a menu item that is standard within
    the GNOME desktop and can have associated accelerator keys, icons, and names. For
    speed, you can choose a stock item on which to base your menu item. This ensures
    consistency and saves you some typing.

The final result of above using properties given as under :

Glade-defined application window:

fig6.gif
 


Similar Articles