On Tue, 10 Sep 2013 12:34:21 -0400 Robert Heller <hel...@deepsoft.com> said:

> I am in the process of modifying E17 (I want to add so additional 
> functionality to the file manager).  One of the things I need to be able to
> do is have a 'modal' dialog, that is a dislog box that grabs the focus and
> causes the program (the file manager) to wait.  I want events to be
> processed, but I want psuedo code like this:
> 
>    dialog = make_dialog(...);
>    show(dialog);
>    wait_for(dialog);
> 
> The 'wait_for()' call would not return until the OK button or Cancel (close)
> button on the dialog has been clicked.  It is not clear how to do this -- the 
> documentation does not seem to cover this case (or I can't it in the 
> documentation).
> 
> Any pointers would be helpful.  Thanks in advance.

this design pattern is REALLY bad. it requires a nested main loop. seriously -
never do it. just don't. modality is a function of simply not responding to
ACTIONS on anything other than that dialog (key, mouse etc.), not a function of
putting in a wait_for() that only returns when the dialog is done. thats why
there is no documentation on this... because it doesn't exist as it's poor
design. :)

> -- 
> Robert Heller             -- 978-544-6933 / hel...@deepsoft.com
> Deepwoods Software        -- http://www.deepsoft.com/
> ()  ascii ribbon campaign -- against html e-mail
> /\  www.asciiribbon.org   -- against proprietary attachments
> 
> 
>                                                                               
>            
> 
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. Consolidate legacy IT systems to a single system of record for IT
> 2. Standardize and globalize service processes across IT
> 3. Implement zero-touch automation to replace manual, redundant tasks
> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to