THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/06/2004 at 10:30, xxxxxxxx wrote:
Cinema 4D Version: 8.500
Platform: Windows ;
Language(s) : C++ ;
I want to create something like a Layers Palette (Adobe Photoshop CS style) in a non-modal dialog's scroll group (if that's where it should even be placed), but I'm at a loss on how to proceed.
So, there should be hierarchy 'buttons' with text and/or graphics that when clicked expand out (i.e. downward) to a selection of more hierarchy buttons and selection buttons, or collapse when already expanded. Not certain whether it is best to use a SimpleListView, customgui_listview, or handle it myself as a custom gui.
While awaiting a response, I will play with some options, but a simple code example would be awesome!
- Forgot to mention that the palette will be dynamic, not static or hardcoded!
On 17/06/2004 at 20:06, xxxxxxxx wrote:
Creating something as advanced as the PhotoShop layers palette would require major effort and skill. Your best bet is probably to study the AsyncTest.cpp file in the SDK examples to see how to dynamically insert content into the group.
On 17/06/2004 at 21:50, xxxxxxxx wrote:
Yes, I'm seeing this already. Effort and skill I have. Sanity, well that's another story... :0)
Might be able to manage it using a SimpleListView (working on the idea now), but not certain how to precisely control it in this hierarchical manner (insertions instead of simple appends and keeping track of button IDs could be a nightmare). So, it may require my own class to handle the tree display (without SLV).
When I have a working "layer" tree, I will post back here. Until then, will keep an eye open for more responses.
On 18/06/2004 at 00:53, xxxxxxxx wrote:
you don´t need to write Danke schoen cause Mikael isn´t german ;) (although he speaks it very well). To the problem. Well I don´t think a simpleListView fits here. The TreeView should definetly be your friend.
On 18/06/2004 at 07:48, xxxxxxxx wrote:
The TreeView can only be my friend if there is a means to use it with something other than C4D objects (of which there is no example; the example is very internal only). I'll play around with it.
I can use 'Danke Schoen' if I like. Maxon is German, I'm half. Though my other half is Italian, so 'Caio' may make an appearance. :P
On 19/06/2004 at 11:19, xxxxxxxx wrote:
How should I approach the TreeView? The example simply takes existing objects from the scene and lists them in a new place. Well, I mean, how enlightening.
What I'm trying to show is a hierarchical tree derived from (not an exact representation of) a directory structure. So far, I've created two classes, TreeRoot and TreeNode, extended from GeListHead (replacing BaseDocument from the example) and BaseList2D, respectively, in order to retain the built-in functionality of the original classes. This approach is only a guess (and has not been tested yet). I'm uncertain whether the TreeView or GeListHead handles the memory or if I should. Can it handle thousands of node elements (either branches or nodes)?
On 20/06/2004 at 09:53, xxxxxxxx wrote:
Okay, I have it down. Just did not use classes extended from GeListHead and BaseList2D.
Now, how do I get the TreeView to resize vertically with the dialog? It resizes horizontally.
On 20/06/2004 at 10:58, xxxxxxxx wrote:
Got that too. Sorry. Missed a BFV_SCALEFIT in one of the groups.