ruby-****@sourc*****
ruby-****@sourc*****
2012年 10月 27日 (土) 09:41:27 JST
------------------------- REMOTE_ADDR = 74.14.158.59 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-statb ------------------------- @@ -68,7 +68,7 @@ Beside displaying the current state your application is in at any moment, another useful role of the status bar is to give the user more information about the menu item the mouse cursor is hovering over. An example of the later is shown on the figure here on the right, while the application status (the string "Pulsating") is shown below in the figure below on the left. -In our example program we keep two kinds of messages on our status bar's stack. The temporary hints, describing each individual menu option, and a bit more persistent messages reflecting the most recent user selection indicating the latest state our application is in. We created two context identifiers from the strings 'StatBarHints' and 'CurrentStatus', using the Gtk::Statusbar#get_context_id(context_description) method. The first is created from the string 'StatBarHints' in the 'statusbar_hint' method and the second from the 'CurrentStatus' string in three methods called 'pulse_activated', 'fill_activated' and 'clear_activated'. +In our example program we keep two kinds of messages on our status bar's stack. The temporary hints, describing each individual menu option, and a bit more persistent messages reflecting the most recent user selection indicating the latest state our application is in. We created two context identifiers from the strings 'StatBarHints' and 'CurrentStatus', using the Gtk::Statusbar#get_context_id (context_description) method. The first is created from the string 'StatBarHints' in the 'statusbar_hint' method and the second from the 'CurrentStatus' string in three methods called 'pulse_activated', 'fill_activated' and 'clear_activated'. {{image_left("statbar-state.png")}}