Hello Jocke

Jocke Birging wrote at 05.12.2004:

>
> On 2004-12-05, siegel2k4 wrote:
>
>> well AFAIK the Userdata Entry is an APTR, so you can cast it to your
>> own struct, which is exactly what I'm doing...what I really find
>> strange is the fact that YAM seems to be using it really the same way,
>> there it works, but not in my App ???? I'm getting curious about this,
>> and as you've stated, I would love to see an answer from one of the
>> MUI gurus here :)
>
> You are allocating the data for the userdata, right? It's not copied
> anywhere, it just saves a pointer to where it's located.
>

The memory is allocated inside the constructor hook, it does use a
AllocPooled(), copy the data from GUI -> allocated structure and returns
this allocated struct.

However in the DisplayHook the msg->Userdata Field seems to be refering to
something different, at least it does not refer to my own structure anymore,
because all fields I'm trying to print out are always NULL ? But the
userdata pointer itself is valid, I have no idea to what it points?

Regards
-- 
  ___________________________ _____ ______________________________
__\                          \\___//                             /__/_
\         Name: Sascha 'SieGeL' Pfalz - Programmer/Oracle DBA      /
 \           E-Mail: [EMAIL PROTECTED] - ICQ: 9691810          /
  \              HTTP: http://www.saschapfalz.de                 /
  /         Formula One Fans visit http://www.f1-timer.de        \
 /________________________________________________________________\.vK



------------------------ 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/
 



Reply via email to