Hi MUI Mailing List,
I have a problem using NListtree, for whatever reason it refuses to
work here. I already posted this problem to utilitybase.com and to
amigadev.aw.net but currently no one seems to be able to help me, so I
will try it now here.
The problem is the display hook I'm using. As long as I did not try to
add any data to an empty nlisttree object, the display hook gets
called for the header of the tree. So far everything is good.
When I try to add data to the tree, my Display hook gets called (as
expected) and I try to extract the data from the userdata field:
if ( msg != NULL && msg->TreeNode != NULL )
{
struct PWEntry *entry = msg->TreeNode->tn_User;
printf("TreeNode: %s @ %x\n",msg->TreeNode->tn_Name,entry);
}
Well indeed here the entry Pointer is non-null but does not have any
of my added data in it, in fact it simply crashes??
I have added the complete code to my homepage, so if anyone is
interested in helping me out of this problem, please take a look to
http://www.in-ovation.de/sources.zip
I took YAM source as example, use SDI_hooks.h and SDI_compiler.h for
hook definitions, adapted my code to work as shown in YAM, but still I
did not get it to work.
This is now my last try here at this list, if nobody can help me I
will drop development of this app and use Reaction instead, but I
would prefer using MUI, so if any nlisttree guru is here, PLEASE help
me and explain me what I'm doing wrong.
Thanks for any help!
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/16uqlB/TM
--------------------------------------------------------------------~->
Visit http://www.amiga.dk/tumult for MUI-related
information, especially about MUI custom classes.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MUI/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/