ComponentOne List 8.0 for ActiveX
SetMenuText Method

 

SetMenuText Method

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.

Syntax

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

Remarks

Method applies to PrintInfo object.

The index argument can be one of the following constants:

Constant

Menu Command

0 - dblpMenuFile

File

1 - dblpMenuPrint

Print

2 - dblpMenuExit

Exit

3 - dblpMenuView

View

4 - dblpMenuZoomIn

Zoom In

5 - dblpMenuZoomOut

Zoom Out

6 - dblpMenuFit

Fit in Window

7 - dblpMenuPgFirst

First Page

8 - dblpMenuPgPrev

Previous Page

9 - dblpMenuPgNext

Next Page

10 - dblpMenuPgLast

Last Page

11 - dblpMenuPrintSomePages

Print Some Pages

12 - dblpMenuPrintCurrPage

Print Current Page

13 - dblpDlgPagesCaption

Print Some Pages dialog caption

14 - dblpDlgPagesPrompt

Print Some Pages dialog prompt

15 - dblpDlgPagesOk

Print Some Pages dialog OK button text

16 - dblpDlgPagesCancel

Print Some Pages Cancel button text

17 - dblpTipPrint

Print Document

18 - dblpTipZoomIn

Zoom In

19 - dblpTipZoomOut

Zoom Out

20 - dblpTipFit

Fit in Window

21 - dblpTipZoom

Zoom Factor

22 - dblpTipPgFirst

First Page

23 - dblpTipPgPrev

Previous Page

24 - dblpTipPgNext

Next Page

25 - dblpTipPgLast

Last Page

26 - dblpTipPageOf

Current page number

27 - dblpTipStop

Stop Pagination

Use the GetMenuText method to retrieve the text for the specified item.

See Also

PrintInfo Object, PrintInfos Collection

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback