Add a
new toolbar for the new menu items
Now you add toolbar buttons for the menu items you just defined
and then place them in a second toolbar.
-
Click the new Insert menu item in the WYSIWYG view Edit
menu. -
Click the Toolbar tab in the Properties view.
Type Insert in the ToolbarItemText box.
Type or select Insert! in the ToolbarItemName drop-down
list.This defines a toolbar button for the Insert menu item that
uses the stock picture called Insert!. When the Show Text option in
the runtime application is enabled for toolbars, the text Insert
appears on the button. -
Type or click to 1 in the ToolbarItemSpace spin
control.Type or click to 1 in the ToolbarItemOrder spin
control.Type or click to 2 in the ToolbarItemBarIndex spin
control.When you start a new toolbar for the added menu items, the
Insert button will be the first item in this toolbar. -
Click the new Update menu item in the WYSIWYG view Edit
menu.Make sure it is also displayed on the title bar in the
Properties view. -
Click the Toolbar tab if the Toolbar page is not already
open.Type Update in the ToolbarItemText box.
Type or select Update! in the ToolbarItemName drop-down list
box.This defines a toolbar button for the Update menu item that
uses the stock picture called Update!. The button text is
Update. -
Type or click to 2 in the ToolbarItemOrder spin
control.Type or click to 2 in the ToolbarItemBarIndex spin
control.This will add the Update button after the Insert button in the
new toolbar. -
Click the new Delete menu item in the WYSIWYG view Edit
menu.Make sure it is also displayed on the title bar in the
Properties view. -
Click the Toolbar tab if the Toolbar page is not already
open.Type Delete in the ToolbarItemText box.
Type or select DeleteRow! in the ToolbarItemName drop-down
list box.This defines a toolbar button for the Delete menu item that
uses the stock picture called DeleteRow!. The button text is
Delete. -
Type or click to 3 in the ToolbarItemOrder spin
control.Type or click to 2 in the ToolbarItemBarIndex spin
control.You add the Delete button after the Update button in the new
toolbar. -
Select File>Save from the PowerBuilder menu bar.