search for: treeitem

Displaying 10 results from an estimated 10 matches for "treeitem".

2008 Apr 12
1
acts_as_tree undefined method?
i have acts_as_tree installed as plugin under rails 2.0.2 and also its defined in class TreeItems, but when i put this in my view <ul class="tree_level1" id="cars">Furniture <% TreeItem.root.category.children do |cat_children| %> <li><a class="list_item" href="#"><%=h cat_children.name %></a></ li> <...
2007 Dec 12
2
fxruby and framecontrole
...top frame depends on the item clicked in the treelist. The editable content of the right bottom frame depends on data enter in the right top frame. I maganged to program all this for the first click on a tree-item. My question is how do I reset righttopframe and rightbottomframe after handling treeitem(1) and before click on the next item. I tried righttopframe.destroy but that that does not seems to do the work. Since after a destroy "if righttopframe" still gives value true. in pseudo code my program is now on click tree item { build right topframe righttopframe.create...
2009 Aug 28
2
TreeCtrl Scrolling
...ing around with the wxRuby TreeCtrl for a couple of weeks now and I can''t figure out how to get the scrolling to work. I believe it has scrolling built in but I can''t get the to show up. I can place the TreeCtrl in a ScrolledWindow and scroll around over the tree but that breaks TreeItem visibility checks because the TreeCtrl doesn''t know about it''s parent. When using the TreeCtrl in the Scrolled window the scroll bars work properly when I set the ScrolledWindow virtual size to the treectrl client size. But I don''t find any equivalent functionality in the...
2007 Dec 30
1
ReOrdering Wx::TreeCtrl Items
Given the following hash: #... @project_list = { ''Contract0'' => nil, ''Contract1'' => { ''Project1'' => nil, ''Project2'' => nil, ''Project3'' => { ''task1'' =>
2008 Nov 14
1
GenericDirCtrl#re_create_tree behaviour
...to make it automagically re-expand previously expanded nodes after recreating the tree? I''m on my way towards doing it manually, but since the GenericDirCtrl''s TreeCtrl actually re-numbers the items in the tree during the recreation process, I''ll have to do it by matching TreeItem text strings, and it''s starting to feel like a hack (in the ugly sense). Thanks in advance, and best regards! /Mathias
2007 Dec 28
2
controls within a wxTreeCtrl
...h would line up adjacent to the text in the tree items. I''ve googled around a bit on this and it doesn''t seem straightforward, if it is possible at all. Can anyone provide any pointers for attempting this? In a simple ASCI schematic, it would be like this: + RootItem A B C + TreeItem1 A B C + TreeItem2 A B C where RootItem and TreeItem(s) are text labels, and A, B, and C, are simple buttons with icons on them. I am starting to think that I will have to synthesize the entire thing using sizers. Would it even be possible in the wx model to dynamically add/remove items and s...
2007 Nov 13
3
New wxTree method
Here''s my first try at a contribution to the wxRuby project: The tree control seemed to lack a more Ruby-ish way to add a bulk of items to a tree control (and to easily connect a data structure to a tree). Since tree view can be seen as an array of arrays, I simply added a method called append_array (see attached file). With it, you can add a full tree as simple as: --- root =
2007 Jan 05
0
[832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample
...:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>832</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-01-05 18:2...
2017 Apr 28
0
Wine release 2.7
...d3dx9/tests: Cleanup compare_vectors. d3dx9/tests: Get rid of compare_planes. Hugh McMaster (8): regedit: Call TrackPopupMenu() from WM_CONTEXTMENU. regedit: Select the targeted treeview item on right mouse click. regedit: Only show the context menu if the mouse is over a treeitem. reg/tests: Add some more import tests. regedit/tests: Add some more import tests. regedit: Simplify parseKeyName. regedit: Validate REG_SZ import data before processing it any further. regedit: Re-implement processSetValue(). Huw D. M. Davies (21): oleaut32: Us...
2009 Jul 29
9
partials...
I am getting a blank page, no errors, just a blank page. I have 2 files... reports/city_taxes_print.erb reports/_city_taxes_print.erb and my method is city_taxes_print and after getting variables from the controller, my erb file which is fairly basic... <% # City of Scottsdale @taxauthids = [ "32", "40" ] @report_title = "Scottsdale Sales Tax Detail Report for