Hello Mathias,
On 15.06.06, Mathias PARNAUDEAU wrote:
>>> whats wrong with the example from the autodocs?
>>> anyway.... for morphos you should use the proper hook macros (see
>>> porting guide on mdc).
>>> in your asl tags:
>>> ASLFR_UserData , ApplicationObject,
>>> ASLFR_IntuiMsgFunc, &IntuiMsgHook,
>>> the hook (68k):
>>> SAVEDS ASM VOID IntuiMsgFunc(
>>> _a1 struct IntuiMessage *imsg,
>>> _a2 struct FileRequester *req)
>>> {
>>> if (imsg->Class==IDCMP_REFRESHWINDOW)
>>> DoMethod(req->fr_UserData,MUIM_Application_CheckRefresh);
>>> }
>> No no no no no...
>> Just use MUI_AslRequest() functions and MUI takes care of window refresh
>> for you.
> Sorry, Ilkka, but I am using MUI_AslRequest and it doesn't work properly.
> I have ASLFR_Window and ASLFR_PrivateIDCMP set and that does nothing more.
> I have the same ugly things when I more an open requester in APDF, Scout
> (via the Print button), SimpleMail, ...
> So, I tested the way described by Christian and it doesn't work better ...
> I can't understand what happens here !!! :-(
well.. the problem is that your application seems to enter some lock
status.
Say you have f.ex. a menuitem which calls a method of your application
class which does the AslRequest. Here your application gets stuck and waits
for the return of the Reqester. I thought if stuntzi writes about this
stuff in his documentation he implemented some magic mui tricks to
force window redraw (but actually its not really possible when u think
about it ;).
I only see 3 solutions for this problem:
- let a subtask doing the Requesting stuff, so your application task
doesnt get stuck anymore
- make your app depend on MUI4 and use filepanel.mui and make some
'fake' asl requesters as normal sub objects of your app.
- wait for stuntzi to implement something better which doesnt lock your
app :)
regards,
--
.tokai - christian rosentreter @ http://www.christianrosentreter.com
labyrinth of light and shadow, the secret exit is empty enough as it is
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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/