| PrintInfo Reference > PrintInfo Methods > SetMenuText Method (PrintInfo) |
If you are developing an international application, you can use the SetMenuText method to change the names of the menu commands in the PrintPreview window.
PrintInfo.SetMenuTextindex, string
Arguments
index is a constant that specifies a menu item in the PrintPreview window.
string is the replacement text for the specified menu item.
Return Value
None
The index argument can be one of the following constants:
|
Constant |
Menu Command |
|
0 - dbgpMenuFile |
File |
|
1 - dbgpMenuPrint |
|
|
2 - dbgpMenuExit |
Exit |
|
3 - dbgpMenuView |
View |
|
4 - dbgpMenuZoomIn |
Zoom In |
|
5 - dbgpMenuZoomOut |
Zoom Out |
|
6 - dbgpMenuFit |
Fit in Window |
|
7 - dbgpMenuPgFirst |
First Page |
|
8 - dbgpMenuPgPrev |
Previous Page |
|
9 - dbgpMenuPgNext |
Next Page |
|
10 - dbgpMenuPgLast |
Last Page |
|
11 - dbgpMenuPrintSomePages |
Print Some Pages |
|
12 - dbgpMenuPrintCurrPage |
Print Current Page |
|
13 - dbgpDlgPagesCaption |
Print Some Pages dialog caption |
|
14 - dbgpDlgPagesPrompt |
Print Some Pages dialog prompt |
|
15 - dbgpDlgPagesOk |
Print Some Pages dialog OK button text |
|
16 - dbgpDlgPagesCancel |
Print Some Pages Cancel button text |
|
17 - dbgpTipPrint |
Print Document |
|
18 - dbgpTipZoomIn |
Zoom In |
|
19 - dbgpTipZoomOut |
Zoom Out |
|
20 - dbgpTipFit |
Fit in Window |
|
21 - dbgpTipZoom |
Zoom Factor |
|
22 - dbgpTipPgFirst |
First Page |
|
23 - dbgpTipPgPrev |
Previous Page |
|
24 - dbgpTipPgNext |
Next Page |
|
25 - dbgpTipPgLast |
Last Page |
|
26 - dbgpTipPageOf |
Current page number |
|
27 - dbgpTipStop |
Stop Pagination |
Use the GetMenuText method to retrieve the text for the specified item.