Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/01/2003 at 08:29, xxxxxxxx wrote:
User Information: Cinema 4D Version: 8.012 Platform: Language(s) : C.O.F.F.E.E ;
--------- in the TreeViewFunctions class. there is the function CreateContextMenu. this provides a way to deliver a right mouse click ContextMenu there are 2 functions in there already. remove and remove all. "remove" calls delete when clicked "remove all" seems to call nothing. I find the text strings for these menu entrys at 90000 and 90001 in the class definition , the comment : "own elements should start at ID_TREEVIEW_FIRST_NEW_ID" this is 90000. so my questions are: how do I arrange such an element. how do I tell it which function to call. how do I react when its clicked ,ect how do i fill the thing in there seems to be no usefull information on this type of menu entry.
On 31/01/2003 at 10:10, xxxxxxxx wrote:
Hi Paul Have a look at TreeViewF::ContextMenu (customgui_listview.cpp). If the command is Remove, DeletePressed is called, otherwise the ContextMenu method from TreeViewFunctions. You must override TreeViewFunctions::ContextMenu to handle your context menu messages. To fill the container, follow the instructions in the ShowPopupMenu help.
On 01/02/2003 at 03:08, xxxxxxxx wrote:
thanks , that does help . however LONG ShowPopupMenu(CDialog* cd, LONG screenx, LONG screeny, const U face=Times New Roman color=#0000ffBaseContainer/U& bc, LONG flags = POPUP_RIGHT|POPUP_EXECUTECOMMANDS) is returning a LONG number , which is just what I want. but when using the TreeViewFunctions class , there seems to be no way to find out which button was pressed. the CreateContextMenu displays my menu and will execute any system commands that are in there. however , i want to get the id that got clicked , so I can do some non-system commands. how can this id be found?
On 01/02/2003 at 04:37, xxxxxxxx wrote:
ok,ok , i get 10 points fro being blind as a bat !!!