1. 繼承關係
## class FL_EXPORT Fl_Browser : public Fl_Browser_
++++ class FL_EXPORT Fl_File_Browser : public Fl_Browser
++++ class Fl_Multi_Browser : public Fl_Browser
++++ class Fl_Hold_Browser : public Fl_Browser
++++ class Fl_Select_Browser : public Fl_Browser
## class FL_EXPORT Fl_Check_Browser : public Fl_Browser_
1.

@@ class FL_EXPORT Fl_Browser : public Fl_Browser_
1. 用來顯示文字列表,並且管理文字的存取。

2. 讀取/設定第 n 行的文字。
const char *Fl_Browser::text(int n) const
void Fl_Browser::text(int n, const char *)

3. 讀取/設定選取的列值,並顯示光棒。
int value() const ;
void value(int v) {select(v);}

4. 讀取/設定光棒顯示的方式。原本是 Fl_Widget 的函數,但確沒有被複寫,只是填入值有所改變而已,不知有沒有問題,真奇怪的方法。
uchar type() const {return type_;}
void type(uchar t) {type_ = t;}
FL_NORMAL_BROWSER  -- browse only (no select) [Same as Fl_Browser with default type()]
FL_SELECT_BROWSER  -- single select, does not remain selected after mouse released [Same as Fl_Select_Browser]
FL_HOLD_BROWSER    -- single select, remains selected after mouse released [Same as Fl_Hold_Browser]
FL_MULTI_BROWSER   -- multi-select (with SHIFT and/or CTRL), remains selected after mouse release [Same as Fl_Multi_Browser]

@@ class FL_EXPORT Fl_File_Browser : public Fl_Browser
1. 用來顯示檔案列表。
2. 用來指示顯示類別,預設值為 FILES。Fl_File_Browser::FILES 顯示檔案及目錄,Fl_File_Browser::DIRECTORIES 只顯示目錄,不顯示檔案。
void filetype(int type)
int filetype() const
3. 用來載入目錄資訊。sort 為排序函數,是要給 fl_filename_list() 所使用。
int load(const char *directory, Fl_File_Sort_F *sort = fl_numeric_sort)

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()