검색어 : 어떻게 STRG + 스페이스를 누르면 상황에 맞는 선택을 엽니 다?
STRG + 공간
Code [C#]:
// Adds "<?" word processing for global context.
ConfigLexem lexemId = GetConfigLexem((IConfigLexem)editControl1.Language, "STRG");
lexemId.Type = FormatType.Text;
// "<?" starts it`s own context. It does not have EndBlock specified, so the first unprocessed token will force parser to exit from "this"'s context.
lexemId.IsComplex = true;
//To open the Context Choice after space
ConfigLexem lexemQues = GetConfigLexem((IConfigLexem)lexemId, " ");
lexemQues.Type = FormatType.Operator;
// "?" can drop context choice list
lexemQues.DropContextChoiceList = true;
lexemQues.IsComplex = true;
Code[VB]:
' Adds "<?" word processing for global context.
Dim lexemId As ConfigLexem = GetConfigLexem(CType(editControl1.Language, IConfigLexem), "STRG")
lexemId.Type = FormatType.Text
' "<?" starts it`s own context. It does not have EndBlock specified, so the first unprocessed token will force parser to exit from "this"'s context.
lexemId.IsComplex = True
'To open the Context Choice after space
Dim lexemQues As ConfigLexem = GetConfigLexem(CType(lexemId, IConfigLexem), `enter code here`" ")
lexemQues.Type = FormatType.Operator
' "?" can drop context choice list
lexemQues.DropContextChoiceList = True
lexemQues.IsComplex = True
샘플 C#을 후 열기 ContextChoice 목록 아래 코드 샘플을 확인하시기 바랍니다 사용 : http://www.syncfusion.com/downloads/support/directtrac/general/ze/EditControl_Intellisense1331161585
샘플 VB : http://www.syncfusion.com/downloads/support/directtrac/general/ze/EditControlVb-143548194
참고 : 나는 Syncfusion
작동
"CTRL"대신 "STRG"를 썼기 때문에 나는 약간의 오해를 불러 일으켰습니다. 우리가 원하는 것은 ** Buttons ** : _CTRL_ + _SPACE_를 누른 후 contextCoiceList를 여는 것입니다. VS 에서처럼. 문자열 "STRG"또는 "CTRL"을 입력 한 후에는 입력하지 마십시오. (질문 편집) – Chris
답변에 이미 2 장의 상향 소설이 있기 때문에 미리 알림. 위의 대답은 ** 잘못된 **입니다. – Chris
@Chris, 공유하고 싶다면 정답은 무엇입니까? – NoChance