Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

[SOLVED]TreeView Drawing Cycle to cell/GeUserArea

 Post Reply Post Reply
Author
Message
mp5gosu View Drop Down
Member
Member


Joined: 2009 Mar 12
Online Status: Offline
Posts: 88
Post Options Post Options   Quote mp5gosu Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED]TreeView Drawing Cycle to cell/GeUserArea
    Posted: 2018 Jan 10 at 12:39am

User Information:

Cinema 4D Version:   R19 
Platform:   Windows  ;   
Language(s):     C++  ;   

---------

Hi there!

Is it somehow possible to draw other GUI elements, in my case a cycle to individual TreeView cells?
If I remember right, drawinfos frame is a GeUserArea. 
So, is it at least possible to draw some GUI elements to this area?


Edited by mp5gosu - 2018 Jan 10 at 8:22am
Back to Top
Yannick Puech View Drop Down
Forum Moderator
Forum Moderator


Joined: 2011 Apr 13
Location: Spain
Online Status: Offline
Posts: 1131
Post Options Post Options   Quote Yannick Puech Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Jan 10 at 4:23am
Hi,

It is possible to draw a cell user area from TreeViewFunctions.DrawCell() but only within its boundaries. I believe that a cycle is bigger than a cell.
Also GeUserArea does not provide any function to draw GUI elements.

A solution is to open a popup menu with c4d.gui.ShowPopupDialog() at cell's position.



MAXON
Developer Support
Back to Top
mp5gosu View Drop Down
Member
Member


Joined: 2009 Mar 12
Online Status: Offline
Posts: 88
Post Options Post Options   Quote mp5gosu Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Jan 10 at 8:22am
Hi Yannick, thank you for the reply.
This solution also came into my mind as an alternative.

So I will try it.

Thanks!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.