wx:batch/1 on Windows 10

Dmitry Belyaev be.dmitry@REDACTED
Tue Jan 28 01:50:36 CET 2020

I just wanted to remind of error handling and assumed a completely frozen UI is worse than the UI with only some components added, especially in a generic 'batch'.

I wasn't sure about your particular use case, so I added "maybe".

On 28 January 2020 11:28:30 am AEDT, zxq9 <zxq9@REDACTED> wrote:
>On 2020/01/28 9:22, Dmitry Belyaev wrote:
>> Maybe
>> batch(Window, Fun) ->
>> ok = wxWindow:freeze(Window),
>> try
>> Fun()
>> after ->
>> ok = wxWindow:thaw(Window)
>> end.
>> would be better
>What would be better about that? If there is a problem in the GUI
>  (Fun()) the last thing I want to have happen is the Erlang half 
>sticking around.

Kind regards,
Dmitry Belyaev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200128/d54363c2/attachment.htm>

More information about the erlang-questions mailing list