Page "Monaco Editor Part UTCAP"
ID 70344758
Namespace: CapVision.Core.Controls
Properties
| Name |
Value |
| PageType |
CardPart
|
| Caption |
Monaco Editor
|
Methods
SetContext
procedure SetContext(NewContext: Text)
Parameters
| Name |
Type |
Description |
|
NewContext
|
Text |
|
SetRecordRef
procedure SetRecordRef(NewRecRef: RecordRef)
Parameters
| Name |
Type |
Description |
|
NewRecRef
|
RecordRef |
|
SetFontFamily
procedure SetFontFamily(FontFamily: Text)
Parameters
| Name |
Type |
Description |
|
FontFamily
|
Text |
|
SetFontSize
procedure SetFontSize(FontSize: Integer)
Parameters
| Name |
Type |
Description |
|
FontSize
|
Integer |
|
SetLanguage
procedure SetLanguage(language: Text)
Parameters
| Name |
Type |
Description |
|
language
|
Text |
|
AddExtraLib
procedure AddExtraLib(Library: Text)
Parameters
| Name |
Type |
Description |
|
Library
|
Text |
|
SetContent
procedure SetContent(Content: Text)
Parameters
| Name |
Type |
Description |
|
Content
|
Text |
|
InsertTextAtCursor
procedure InsertTextAtCursor(Str: Text)
Parameters
| Name |
Type |
Description |
|
Str
|
Text |
|
RegisterLanguage
procedure RegisterLanguage(LanguageId: Text, CodeToEval: Text)
Parameters
| Name |
Type |
Description |
|
LanguageId
|
Text |
|
|
CodeToEval
|
Text |
|
RegisterHoverProvider
procedure RegisterHoverProvider(LanguageId: Text, HoverProviderData: JsonObject)
Parameters
| Name |
Type |
Description |
|
LanguageId
|
Text |
|
|
HoverProviderData
|
JsonObject |
|
SetMonarchTokensProvider
procedure SetMonarchTokensProvider(LanguageId: Text, Tokenizer: JsonObject)
Parameters
| Name |
Type |
Description |
|
LanguageId
|
Text |
|
|
Tokenizer
|
JsonObject |
|
RegisterCompletionItemProvider
procedure RegisterCompletionItemProvider(LanguageId: Text, SuggestionsData: JsonArray)
Parameters
| Name |
Type |
Description |
|
LanguageId
|
Text |
|
|
SuggestionsData
|
JsonArray |
|
AddAction
procedure AddAction(ActionId: Text, ActionLabel: Text, ContextMenuGroupId: Text)
Parameters
| Name |
Type |
Description |
|
ActionId
|
Text |
|
|
ActionLabel
|
Text |
|
|
ContextMenuGroupId
|
Text |
|
SetWordWrap
procedure SetWordWrap(WordWrap: Text, WrappingColumn: Integer, WrappingIndent: Text)
Parameters
| Name |
Type |
Description |
|
WordWrap
|
Text |
|
|
WrappingColumn
|
Integer |
|
|
WrappingIndent
|
Text |
|
SetMinimapVisibility
procedure SetMinimapVisibility(MinimapVisibility: Boolean)
Parameters
| Name |
Type |
Description |
|
MinimapVisibility
|
Boolean |
|
SetLineNumerotationVisibility
procedure SetLineNumerotationVisibility(LineNumerotationVisibility: Boolean)
Parameters
| Name |
Type |
Description |
|
LineNumerotationVisibility
|
Boolean |
|
SetReadOnly
procedure SetReadOnly(ReadOnly: Boolean)
Parameters
| Name |
Type |
Description |
|
ReadOnly
|
Boolean |
|
AppendLine
procedure AppendLine(Line: Text)
Parameters
| Name |
Type |
Description |
|
Line
|
Text |
|
Events
OnEditorSaved
[BusinessEvent(False)]
local procedure OnEditorSaved(RecRef: RecordRef, Content: Text, Context: Text)
Parameters
| Name |
Type |
Description |
|
RecRef
|
RecordRef |
|
|
Content
|
Text |
|
|
Context
|
Text |
|
OnEditorAction
Obsolete
This element will become obsolete from version V20.202206. Replaced by OnEditorActionV2
[BusinessEvent(False)]
[Obsolete(Replaced by OnEditorActionV2,V20.202206)]
local procedure OnEditorAction(RecRef: RecordRef, ActionId: Text, var MonacoEditor: ControlAddIn "Monaco Editor UTCAP", Context: Text)
Parameters
OnEditorActionV2
[IntegrationEvent(False,False)]
local procedure OnEditorActionV2(RecRef: RecordRef, ActionId: Text, MonacoEditor: ControlAddIn "Monaco Editor UTCAP", Context: Text)
Parameters
OnEditorValueChanged
Obsolete
This element will become obsolete from version V20.202206. Replaced by OnEditorValueChangedV2
[BusinessEvent(False)]
[Obsolete(Replaced by OnEditorValueChangedV2,V20.202206)]
local procedure OnEditorValueChanged(RecRef: RecordRef, var MonacoEditor: ControlAddIn "Monaco Editor UTCAP", Context: Text, NewValue: Text)
Parameters
OnEditorValueChangedV2
[IntegrationEvent(False,False)]
local procedure OnEditorValueChangedV2(RecRef: RecordRef, MonacoEditor: ControlAddIn "Monaco Editor UTCAP", Context: Text, NewValue: Text)
Parameters
See also