コード例 #1
0
ファイル: ObjectTree.cpp プロジェクト: GustavoMOG/edelib
ObjectTree::ObjectTree(int X, int Y, int W, int H, const char *l) : Fl_Tree(X, Y, W, H, l), editor_buf(NULL), action_menu(NULL) {
	showroot(0);
#if (FL_MAJOR_VERSION >= 1) && (FL_MINOR_VERSION >= 3)
	item_labelbgcolor(color());
#endif

	action_menu = new MenuButton(0, 0, 0, 0);
	action_menu->menu(menu_);
}
コード例 #2
0
ServerTree::ServerTree(int a_x, int a_y, int a_w, int a_h, const char *a_title)
  : Fl_Tree(a_x, a_y, a_w, a_h, a_title)
  , m_last_clicked(NULL)
  , m_flash_tick(false)
  , m_num_connecting(0){
    
    selectmode(FL_TREE_SELECT_SINGLE);
    showroot(0);
    
}