search for: tcr_project_root

Displaying 1 result from an estimated 1 matches for "tcr_project_root".

2007 Dec 30
1
ReOrdering Wx::TreeCtrl Items
...9;' => nil, ''Contract9'' => nil } #... #And Given the following code: #... @tc_project_list = Wx::TreeCtrl.new(self, :size => Wx::Size.new(175, 150), :style => Wx::TR_HIDE_ROOT | Wx::TR_EDIT_LABELS | Wx::TR_HAS_BUTTONS | Wx::TR_LINES_AT_ROOT) tcr_project_root = @tc_project_list.add_root("Project List") populate_project_tree(@project_list, tcr_project_root) #... #... def populate_project_tree(h_project_list, parent_node) h_project_list.each {|key, value| tree_node = @tc_project_list.append_item(parent_node, key.to_s)...