I've got a couple of questions regarding CustomClasses and MUIA_Window_Open.
I am coding with the latest beta of OS4 and compiling using GCC 3.4.4.
When a window (custom class) is requested open for the first time in my
application I do the following:
ctc_Node->node_window = (Object*)NewObject(MCC_Message->mcc_Class, NULL,
TAG_DONE);
if(ctc_Node->node_window)
{
DoMethod(app, OM_ADDMEMBER, ctc_Node->node_window);
DoMethod(ctc_Node->node_window, MUIM_Notify,
MUIA_Window_CloseRequest, TRUE,
ctc_Node->node_window, 3, MUIM_Set, MUIA_Window_Open, FALSE);
}
MCC_Message is my custom class, which contains userdata, ctc_Node is a
linked list containing an Object *node_window pointer (amongst other
things), which stores the window object once it's created.
As you can see, if successfully created I then add the newly created window
to the application (app, global variable) and set a notification to close
the window, but not destroy it, if the CloseRequest notification occurs.
Now, this all works fine and does exactly what I expect it to do, until
however, I wish to close the window by clicking on the close window gadget.
At this point I get a Recoverable Alert (01000009) and then finally a
GrimReaper with the following GURU; 81000005 and of 'type unknown'.
This always happens when clicking the close button. Why? All I'm doing is
not showing it! I would understand if the window was being destroyed and
the userdata wasn't being cleaned up. And besides, the userdata only
contains pointers to objects belonging to the window.
The only messages I process in the despatcher are OM_NEW and MUIM_Cleanup.
Should I be processing other messages if I have userdata in the class?
Oh, one last quick one: How do you set the font size of the text in a single
column listview?
Thanks for any help, much appreciated.
Regards,
Daniel
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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/