Type | Description | |||
Dialog as DialogEnum | A DialogEnum expression that indicates the dialog where the changes occurs. | |||
Field as FieldDialogEnum | A FieldDialogEnum expression that indicates the field being changed. | |||
String | A string expression that indicates the caption of the field in the dialog. |
The following VB sample changes the descriptions of the fields in the 'Find' and 'Replace' dialogs for Romanian language:
With Expression1 .Caption(exFindDialog, exCaption) = "Cauta" .Caption(exFindDialog, exFieldFindWhat) = "Gaseste" .Caption(exFindDialog, exFieldMatchCase) = "Senzitiv la context" .Caption(exFindDialog, exFieldWordOnly) = "Doar intreg cuvintul" .Caption(exFindDialog, exFieldCancel) = "Abandon" .Caption(exFindDialog, exFieldDirection) = "Directie" .Caption(exFindDialog, exFieldDown) = "Jos" .Caption(exFindDialog, exFieldUp) = "Sus" .Caption(exFindDialog, exFieldFindNext) = "Urmatorul" .Caption(exFindDialog, exFieldMarkAll) = "Marcheaza tot" .Caption(exFindDialog, exErrorFindNext) = "Nu gasesc textul " .Caption(exFindDialog, exErrorTitle) = "Eroare" .Caption(exReplaceDialog, exCaption) = "Inlocuieste" .Caption(exReplaceDialog, exFieldFindWhat) = "Gaseste" .Caption(exReplaceDialog, exFieldCancel) = "Inchide" .Caption(exReplaceDialog, exFieldReplaceWith) = "Inlocuieste cu" .Caption(exReplaceDialog, exFieldMatchCase) = "Senzitiv la context" .Caption(exReplaceDialog, exFieldWordOnly) = "Doar intreg cuvintul" .Caption(exReplaceDialog, exFieldReplaceIn) = "Inlocuieste in" .Caption(exReplaceDialog, exFieldSelection) = "Selectie" .Caption(exReplaceDialog, exFieldWholeFile) = "In tot fisierul" .Caption(exReplaceDialog, exFieldFindNext) = "Urmatorul" .Caption(exReplaceDialog, exFieldReplace) = "Inlocuieste" .Caption(exReplaceDialog, exFieldReplaceAll) = "Inlocuieste tot" .Caption(exReplaceDialog, exReplaceDone) = "Sa terminat cautarea textului " .Caption(exReplaceDialog, exErrorTitle) = "Eroare" End With
The following VB sample changes the captions in the control's context menu:
With Expression1 .Caption(exContextMenu, exContextUndo) = "Revin" .Caption(exContextMenu, exContextRedo) = "Refac" .Caption(exContextMenu, exContextCut) = "Sterg si copiez" .Caption(exContextMenu, exContextCopy) = "Copiez" .Caption(exContextMenu, exContextPaste) = "Suprapun" .Caption(exContextMenu, exContextDelete) = "Sterg" .Caption(exContextMenu, exContextSelectAll) = "Selectez tot" End With
The following C++ sample changes the captions in the control's context menu:
m_expression.SetCaption( 2 /*exContextMenu*/, 16384 /*exContextUndo*/, "Revin" ); m_expression.SetCaption( 2 /*exContextMenu*/, 16385 /*exContextRedo*/, "Refac" ); m_expression.SetCaption( 2 /*exContextMenu*/, 16387 /*exContextCut*/, "Sterg si copiez" ); m_expression.SetCaption( 2 /*exContextMenu*/, 16388 /*exContextCopy*/, "Copiez" ); m_expression.SetCaption( 2 /*exContextMenu*/, 16389 /*exContextPaste*/, "Suprapun" ); m_expression.SetCaption( 2 /*exContextMenu*/, 16390 /*exContextDelete*/, "Sterg" ); m_expression.SetCaption( 2 /*exContextMenu*/, 16392 /*exContextSelectAll*/, "Selectez tot" );
The following VB.NET sample changes the captions in the control's context menu:
With AxExpression1 .set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextUndo, "Revin") .set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextRedo, "Refac") .set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextCut, "Sterg si copiez") .set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextCopy, "Copiez") .set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextPaste, "Suprapun") .set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextDelete, "Sterg") .set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextSelectAll, "Selectez tot") End With
The following C# sample changes the captions in the control's context menu:
axExpression1.set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextUndo, "Revin"); axExpression1.set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextRedo, "Refac"); axExpression1.set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextCut, "Sterg si copiez"); axExpression1.set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextCopy, "Copiez"); axExpression1.set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextPaste, "Suprapun"); axExpression1.set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextDelete, "Sterg"); axExpression1.set_Caption(EXPRESSIONLib.DialogEnum.exContextMenu, EXPRESSIONLib.FieldDialogEnum.exContextSelectAll, "Selectez tot");
The following VFP sample changes the captions in the control's context menu:
With thisform.Expression1.Object .Caption( 2, 16384 ) = "Revin" .Caption( 2, 16385 ) = "Refac" .Caption( 2, 16387 ) = "Sterg si copiez" .Caption( 2, 16388 ) = "Copiez" .Caption( 2, 16389 ) = "Suprapun" .Caption( 2, 16390 ) = "Sterg" .Caption( 2, 16392 ) = "Selectez tot" endwith