Professional Documents
Culture Documents
For our next lesson, we will try to add additional features in our first
program. We will make a variety of background colors to our Click to Win
interface by adding a color menu that is placed on the upper left corner of the
form.
To create this feature we need a Visual Basic tool called the Menu Editor.
In adding menu to a form, we must first open the Click to Win project file.
Click Tools from the Standard toolbar and choose Menu Editor.
You can also press Ctrl + E as a keyboard shortcut.
The Menu Editor will appear.
Write a menu named ‘Background’ in the ‘Caption’ textbox. Press the TAB
key to move to the next textbox.
Use the given Menu names and Captions as shown in the table below.
Assign a shortcut for the menu options as shown in the table above. Click
a Shortcut from the Shortcut textbox. To do this, select the menu option from
the list in the Menu Editor then choose a shortcut from the Shortcut pull-down
list box.
Next, we need to indent the rest of the menu options to define the sub-
menu for the top level menus :
We have now created all the menus needed. Press the OK button. Your
program should look like the figure below after completing the exercise.
The three
menus we
have created
LESSON SUMMARY :