0% found this document useful (0 votes)
56 views

Menu

The document provides steps to add a new menu item called "Print Welcome" to an existing menu, connect it to code, declare variables, initialize strings, and write code in methods to display a message when the new menu item is selected. The steps include opening the menu editor, inserting a new blank menu item, connecting it to a class using the class wizard, declaring variables in the document class, initializing strings in the constructor, and writing code in methods to display an output message.

Uploaded by

ahmadfiroz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views

Menu

The document provides steps to add a new menu item called "Print Welcome" to an existing menu, connect it to code, declare variables, initialize strings, and write code in methods to display a message when the new menu item is selected. The steps include opening the menu editor, inserting a new blank menu item, connecting it to a class using the class wizard, declaring variables in the document class, initializing strings in the constructor, and writing code in methods to display an output message.

Uploaded by

ahmadfiroz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

PROGRAM NO

WRITE A PROGRAM FOR A MENU EDITOR ADDING A MENU ITEM AND DISPLAYING
THE MESSAGE.

STEP 1 USING MENU EDITOR

CLICK ON THE RESOURCE VIEW THIS OPENS THE MENU’S PROGRAM RESOURCE
FOLDER.
FIND OUT THE FOLDER MARKED MENU OPEN IT
THEN DOUBLE CLIKC ON THE ENTRY IN THAT FOLDER.,IDR)MAINFRAME
BELOW SNAPSHOT WILL APPEAR
STEP 2 ADDING A NEW MENU ITEM
CLICK ON THE PRINT PREVIEW MENU ITEM PRESS INSERT KEY,BLANK MENU ITEM
APPEAR WRITE CAPTION PRINT WELCOME AND CLOSE THE DIALOB BOX.
STEP 3 CONNECTING MENU ITEM TO CODE

OPEN CLASS WIZARD


SET THE FOLLOWING OPTIONS
PROJECT :-NAME OF YOUR PROJECT
CLASS NAME :-VIEW
OBJECT ID ID_FILE_PRINT_WELCOME
MSG COMMAND :-COMMAND(DOUBLE CLICK ON IT)
A DIALOG BOX APPEARS ,CLICK OK
STEP 4 OPEN DOCUMENT CLASS IN PUBLIC SECTION DECLARE VARIABLE

STEP 5
INITIALISE EMPTY STRING IN CONSTRUCTOR OF DOCUMENT CLASS
STEP6
OPEN ONFILEPRINTWELCOME METHOD IN VIEW CLASS AND WRITE THE CODE

STEP7

OPEN ONDRAW METHOD OF VIEW CLASS AND WRITE THE CODE


OUTPUT

You might also like