etc.negui.control.listbox.listbox

class ListBoxException: etc.negui.control.control.ControlException;

abstract interface IListBox;
BUGS:
属性とかちゃんとしないと。
History:
1.061
  • source並びを(文字列, ...)に変更。
abstract int add(in Text text );
abstract int add(in _NTEXT!(wchar)[] texts );
文字列の追加。
Params:
Text text
追加する文字列。
Returns:
追加された文字列のインデックス。
abstract int del(int Index );
項目の削除。
Params:
int Index
削除項目のインデックス。
Returns:
削除後の項目数。
abstract const int find(in Text text , int StartIndex );
項目の検索。
Params:
Text text
検索文字列。
int StartIndex
検索を開始するインデックス。
Returns:
該当するインデックス。 該当しなければ-1。
History:
1.061
  • source属性変更。
abstract const int select();
History:
1.00β15
  • source属性変更。
abstract const int getHeight(int Index );
高さの取得。
Params:
int Index
取得するインデックス。
Returns:
取得した高さ。
Throws:
失敗時にNeGuiException。
History:
1.061
  • source属性変更。
abstract const Text listText(int Index );
指定項目の文字列取得。
Params:
int Index
項目のインデックス。
Returns:
取得した文字列。
Throws:
失敗時にNeGuiException。
History:
1.00β17
  • source属性変更。
abstract const int listTextLength(int);
History:
1.00β17
  • source属性変更。
abstract const int topIndex();
表示中の最上位項目取得。
Returns:
現在表示されている最上位項目のインデックス。
History:
1.00β17
  • source属性変更。
class ListBox: etc.negui.control.control.Control, etc.negui.control.listbox.listbox.IListBox, etc.negui.control.control.INotify, etc.negui.control.control.IOwnerDraw;
一人だけ異質だ。
History:
1.100
  • sourceDMD 2.038に対応。
enum EVENT;

ERRSPACE
メモリの割り当てに失敗した
SELCHANGE
選択状態が変更された
DBLCLK
項目がダブルクリックされた
SELCANCEL
ユーザが選択をキャンセルした
SETFOCUS
キーボードフォーカスを受け取った
KILLFOCUS
キーボードフォーカスを失った
protected this(HWND hWnd );

enum SELECT;

SINGLE

MULTI

READONRY

enum TYPE;

LIST

COLUMN

this(NeGui Owner , ITEM_ID Id , SELECT Select = (SELECT).SINGLE, TYPE Type = (TYPE).LIST);
History:
1.032
  • program処理内容変更。
this(NEGUIINFO NeGuiInfo , SELECT Select , TYPE Type );
History:
1.032
  • 新規作成。
void column(int Column );

int add(in Text text );

int add(in _NTEXT!(wchar)[] texts );

int del(int Index );

const int find(in Text text , int StartIndex );

const int count();

const int select();

int select(int Index );

const int getHeight(int Index );

bool setHeight(int Index , int Height );

void setWidth(int Width );

const Text listText(int Index );
History:
1.00β17
  • sourceconst属性に変更。
bool listText(in Text text , int Index );

const int listTextLength(int Index );
History:
1.00β17
  • sourceconst属性に変更。
const int topIndex();

int insert(in Text text , int Index );

void clear();

int search(in Text text , int StartIndex );

const bool isSelect();
History:
1.00β17
  • sourceconst属性に変更。
bool isSelect(int Index );

bool toSelect(int Index , bool Select );

int selectedCount();

int caretIndex();

void* getItemData(int Index );

void setItemData(int Index , void* Data );

int folder(in Text Folder , LIST_ATTIBUTE ListAttributes );

class ListBoxGroup: etc.negui.control.group.Group!(ListBox).Group;

void clear();