# Blocking the UI

**URL:** <https://forum.servoy.com/t/blocking-the-ui/10640>\
**Category:** Classic Servoy\
**Created:** [May 12, 2009, 5:20am UTC](https://forum.servoy.com/t/blocking-the-ui/10640 "2009-05-12T05:20:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Infop](https://avatars.discourse-cdn.com/v4/letter/i/58956e/32.png) [@Infop](https://forum.servoy.com/u/Infop)\
**Post date:** [May 12, 2009, 5:20am UTC](https://forum.servoy.com/t/blocking-the-ui/10640/1 "2009-05-12T05:20:03Z")

</div>

Hi All,

Is there any way/workaround to block UI to block any user intervention while do some processing. I do want to set controller.enabled = false as because it is not looking good. Because, I have lot of images in the form and disabling those is not looking good. So, is there any other way/workaround?

Thanks

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [May 12, 2009, 6:20am UTC](https://forum.servoy.com/t/blocking-the-ui/10640/2 "2009-05-12T06:20:21Z")

</div>

Hi,

Maybe use a dialogue form that can not be closed ?

Regards,

Hans

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [May 12, 2009, 7:31am UTC](https://forum.servoy.com/t/blocking-the-ui/10640/3 "2009-05-12T07:31:51Z")

</div>

Hi Infop,

> Infop:  
> Because, I have lot of images in the form and disabling those is not looking good. So, is there any other way/workaround?

When you have the media options set to ‘crop’ then the image will ‘dim’ when you disable it. When you use any other option the image will disappear. So if you use the images on your form that are shown at their actual size I and you want them to dim (like for button images) then I suggest you set the media option to ‘crop’ for those images.  
Otherwise, as Hans already suggested, a modal dialog with a progress bar might be an option.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [May 12, 2009, 9:52am UTC](https://forum.servoy.com/t/blocking-the-ui/10640/4 "2009-05-12T09:52:35Z")

</div>

Hi Infop,

If I’m getting your point: you do want to block the user from dataentry in your form.

In that case just set the elements you want to block .readonly = false  
Elements which do not have a readonly property could be set to .enabled = false

Hope this works for you…

---

<div class="post-metadata">

**Author:** ![ars](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@ars](https://forum.servoy.com/u/ars)\
**Post date:** [May 12, 2009, 10:02am UTC](https://forum.servoy.com/t/blocking-the-ui/10640/5 "2009-05-12T10:02:01Z")

</div>

Hi Infop,

Another workaround will be showing an image(A transparent Image) at the top of all the elements and stretching the height and width according to the window height & width at runtime. Set a blank method to the onAction() event of the image. So, at the time of busy processing The transparent image will be shown up at the top of every elements and it will prevent user intervention also.

---

<div class="post-metadata">

**Author:** ![Infop](https://avatars.discourse-cdn.com/v4/letter/i/58956e/32.png) [@Infop](https://forum.servoy.com/u/Infop)\
**Post date:** [May 13, 2009, 1:48pm UTC](https://forum.servoy.com/t/blocking-the-ui/10640/6 "2009-05-13T13:48:28Z")

</div>

Thanks to all of you.

---

<div class="post-metadata">

**Author:** ![rodneysieb](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rodneysieb](https://forum.servoy.com/u/rodneysieb)\
**Post date:** [May 13, 2009, 11:50pm UTC](https://forum.servoy.com/t/blocking-the-ui/10640/7 "2009-05-13T23:50:11Z")

</div>

Hi

I use the busy plugin, works well and saves creating another form.

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 14, 2009, 6:40am UTC](https://forum.servoy.com/t/blocking-the-ui/10640/8 "2009-05-14T06:40:00Z")

</div>

the busy plugin itself is a nice plugin, but it creates a lot of nullpointer exceptions in the log, when a webclient is started (looks ugly)  
I have tried to trace/mail the author of the plugin for months, but no repsonse.

Maybe Scott Butler, knows more, the plugin was build by an (old) colleague of him…

---

<div class="post-metadata">

**Author:** ![ars](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@ars](https://forum.servoy.com/u/ars)\
**Post date:** [May 14, 2009, 1:02pm UTC](https://forum.servoy.com/t/blocking-the-ui/10640/9 "2009-05-14T13:02:20Z")

</div>

Another thing, if you want to show some processing in a dialog window, then i think, the Busy Plug-in won’t help. It will show the grayed glass pane only in the parent window.
