1

우리는 Windows 양식 용 Syncfusion의 Essential Studio를 사용하고 있습니다. 현재 편집 컨트롤을 사용하는 파스칼 용 작은 코드 편집기를 사용하고 있습니다. autoComplete Function과 같은 IntelliSense는 방금 정의한 사전 (예 : ".")을 입력 한 후 열리 며 API에 정의 된 모든 메소드를 제공합니다. 괜찮아.Syncfusion (Essential Studio) - CTRL + SPACE (버튼) 이후에 자동 완성 열림

는하지만 우리는 여부에 관계없이의 우리가 lexem를 입력하거나뿐만 아니라 버튼CTRL + SPACE을 누르고 우리에게 모든 API 방법을 보여주는 후 자동 완성 대화 상자를 열어야합니다. 모든 OOP가없는 파스칼이기 때문에 의미가있는 유일한 방법입니다.

어떻게 가능합니까?

Greez 크리스

답변

1

검색어 : 어떻게 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

작동
+0

"CTRL"대신 "STRG"를 썼기 때문에 나는 약간의 오해를 불러 일으켰습니다. 우리가 원하는 것은 ** Buttons ** : _CTRL_ + _SPACE_를 누른 후 contextCoiceList를 여는 것입니다. VS 에서처럼. 문자열 "STRG"또는 "CTRL"을 입력 한 후에는 입력하지 마십시오. (질문 편집) – Chris

+0

답변에 이미 2 장의 상향 소설이 있기 때문에 미리 알림. 위의 대답은 ** 잘못된 **입니다. – Chris

+0

@Chris, 공유하고 싶다면 정답은 무엇입니까? – NoChance