----- Original Message -----
From: "Christoph Kimna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 13, 2004 1:16 AM
Subject: [MUI] Re: Dirlist problems
> Thank you for your tips. I could solve the problem :)
> It is possible to use MUIA_Dirlist_Status! :
>
> get (App->LV, MUIA_Dirlist_Status, &status);
>
> while (status==MUIV_Dirlist_Status_Reading)
I think that != MUIV_Dirlist_Status_Valid would be better here :)
> {
> DoMethod(App->App,MUIM_Application_InputBuffered);
You should here somehow check whether Ctrl-C (CheckSignal()?) was used or user closed
application in other way..
I don't know whether ReturnID_Quit status will be nicely remembered for the next
MUIM_Application_NewInput, and this
should be checked... Otherwise all quit requests in this loop will be ignored..
> get (App->LV, MUIA_Dirlist_Status, &status);
> }
>
> get (App->LV_Links, MUIA_Dirlist_NumFiles, &numfiles);
> printf ("%d files in this directory. \n", numfiles)
>
>
>
> Without the MUIM_Application_InputBuffered call the program comes in a endless loop,
> because
> the status will not change to MUIV_Dirlist_Status_Valid !
That's because of MUIM_Application_PushMethod internal working :)
Best Regards!
---
TrueArt http://www.trueart.pl
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/