ruby-****@sourc*****
ruby-****@sourc*****
2009年 3月 5日 (木) 04:58:21 JST
------------------------- REMOTE_ADDR = 74.15.84.244 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dynui-bui ------------------------- @@ -142,7 +142,7 @@ {{br}} === Making Changes -The file browser is completely designed, but now we would like to add a status bar widget at the bottom of the window. With Glade it is easy to make simple changes like this. We first have to extend the parent widget to have an additional cell. Obviously we need to add a cell to the vertical box, holding our toolbar, address bar and the scrolled text view. To do this , select the vertical box from the widget tree view. In the Properties window in General tab you should increase the "Number of items" property. This will open a new cell with mesh in it at the bottom. You can now add a status bar widget located in the "Control and Display" section of the Palette to the new empty container. If you need to reorder the children of a vertical or horizontal box, you first need to select the widget you want to move, and then under the Packing tab in the Property pane advance to the appropriate position by altering the value of the Position spin button. The position of the surrounding widgets will be automatically adjusted, and you can observe the changes on the canvas, where the changes are immediately reflected in your creation. +The file browser is completely designed, but now we would like to add a status bar widget at the bottom of the window. With Glade it is easy to make simple changes like this. We first have to extend the parent widget to have an additional cell. Obviously we need to add a cell to the vertical box, holding our toolbar, address bar and the scrolled text view. To do this , select the vertical box from the widget tree view. In the Properties window in General tab you should increase the "Number of items" property. This will open a new cell with mesh in it at the bottom. You can now add a status bar widget located in the "Control and Display" section of the Palette to the new empty container. If you need to reorder the children of a vertical or horizontal box, you first need to select the widget you want to move, and then under the Packing tab in the Property pane advance it to the appropriate position by altering the value of the Position spin button. The position of the surrounding widgets will be automatically adjusted, and you can observe the changes on the canvas, where the changes are immediately reflected in your creation. Another complication may result if you decided that you needed to insert an existing widget into another more elaborate container. For instance, you may want to place the scrolled tree view into a horizontal pane to share the space with another vertical box. In order to do that you first need to select the widget (scrolled window in our case) from the widget tree view in the main window and remove it by "cutting it out" with <Ctrl+X>, which will display an empty cell with mesh in it. Now you can add a horizontal pane, and finally place (paste) the scrolled window from the clipboard into the appropriate place in the horizontal pane by pressing <Ctrl+V> or right-clicking "Paste".