User forums > Using Code::Blocks
[wxSmith] How to add Tree Control items?
oBFusCATed:
If this missing feature is extremely annoying to you, you can implement it yourself and then you can provide the patch, so it can be applied to trunk.
C::B is open source project and thus depends on it users for new features.
Cinolt:
Unfortunately that's beyond my capability, else I would have done it. I'd just like to know what was going in the mind of the person who decided to name an empty box "wxTreeCtrl". I just want to verify; the two are interchangeable in the current state am I right? What discrepancy exists between an empty white box and "wxTreeCtrl"?
As a hopefully final word, this is beyond inane. You can say I'm ignorant, but if the developers are competent enough to make a working dialog specifically for editing menu items, how hard is it to design a very similar one for wxTreeCtrl? Now I'm off to learn how to implement this GUI-specific attribute in code, which is totally counter-productive in relation to what could/should have been.
oBFusCATed:
--- Quote from: Cinolt on August 03, 2010, 11:16:08 pm ---Unfortunately that's beyond my capability, else I would have done it. I'd just like to know what was going in the mind of the person who decided to name an empty box "wxTreeCtrl". I just want to verify; the two are interchangeable in the current state am I right? What discrepancy exists between an empty white box and "wxTreeCtrl"?
--- End quote ---
The difference is that you probably have wxTreeCtrl styles and that you can write you initialization code after the wxSmith generated block of code.
Something like (look at the docks for wxTreeCtrl):
--- Code: ---//(*
wxsmith block
//*)
tree->AddItem(...);
tree->AddItem(...);
--- End code ---
--- Quote from: Cinolt on August 03, 2010, 11:16:08 pm ---As a hopefully final word, this is beyond inane. You can say I'm ignorant, but if the developers are competent enough to make a working dialog specifically for editing menu items, how hard is it to design a very similar one for wxTreeCtrl? Now I'm off to learn how to implement this GUI-specific attribute in code, which is totally counter-productive in relation to what could/should have been.
--- End quote ---
Read my explanation above.
About menus: most of the time the menuitems are just text + icon. So the editor for menus is useful in 99% of the cases.
For the tree the editor will be useful in only one case (static tree + text items only) and this case is very rare.
Cinolt:
Can I see an example of a case where the tree control is used for a purpose other than the only usage I've seen it ever?
rcoll:
This may be helpful: I created a plug-in for wxSmith to do just this, only for the "wxTreeListCtrl", which is slightly different than the "wxTree". If you can use the wxTreeListCtrl, thry these:
http://prdownload.berlios.de/ringowidgets/TreeListCtrl_Compiled_MSW.zip
http://prdownload.berlios.de/ringowidgets/TreeListCtrl_Source_Only.zip
You may have to re-compile the source for your specific installation, but all the instructions are included, and is pretty simple.
Cheers,
Ringo
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version