ListBoxSetCurSel

 

ListBoxSetCurSel 함수는 윈도우 Control의 ListBox 에서 등록된 데이터 중 지정한 위치로 커서와 데이터를 변경한다.

 

@ListBoxSetCurSel(string class_name, int index);

 

함수인자

string class_name       편집기의 윈도우 control ListBox오브젝트의 Class Name 이 된다.

int index                      편집기의 윈도우 control ListBox 에 등록된 데이터의 위치값(예를들어 ListBox에 데이터를 8개 등록하였다면, 각 데이터의 Index값은 위로부터 순서대로 0 ~ 7 이 된다.)

 

예제

@ListBoxSetCurSel("ListBox1", 1);

문장설명 : ClassName이 ListBox1이라는 ListBox 에서 데이터의 위치(index)가 2번째 데이터(Index=1)로 값을 바꾼다.

 

참조

리스트박스 오브젝트

 

관련항목

@ListBoxAddString()

@ListBoxDeleteString()

@ListBoxFillDir()

@ListBoxFillFile()

@ListBoxGetCurSel()

@ListBoxGetSel()

@ListBoxGetSelCount()

@ListBoxGetText()

@ListBoxResetContent()

@ListBoxSetCurSel()