# showFormInDialog shows Text Toolbar though disabled

**URL:** <https://forum.servoy.com/t/showformindialog-shows-text-toolbar-though-disabled/7189>\
**Category:** Classic Servoy\
**Created:** [March 5, 2007, 10:50pm UTC](https://forum.servoy.com/t/showformindialog-shows-text-toolbar-though-disabled/7189 "2007-03-05T22:50:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidaarong](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@davidaarong](https://forum.servoy.com/u/davidaarong)\
**Post date:** [March 5, 2007, 10:50pm UTC](https://forum.servoy.com/t/showformindialog-shows-text-toolbar-though-disabled/7189/1 "2007-03-05T22:50:36Z")

</div>

onLoad I have a script (Hide\_Toolbar\_Text) with the following code:

```auto
application.setToolbarVisible('text',false);

```

However, when the form is loaded it still shows the text toolbar.

What am I missing?

Thank you,  
David

[ScreenShot.doc](https://forum.servoy.com/uploads/short-url/r0aPAo59WkyeiGn6oiQiScxrRUK.doc) (30.5 KB)

---

<div class="post-metadata">

**Author:** ![bcusick](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bcusick](https://forum.servoy.com/u/bcusick)\
**Post date:** [March 6, 2007, 1:11am UTC](https://forum.servoy.com/t/showformindialog-shows-text-toolbar-though-disabled/7189/2 "2007-03-06T01:11:58Z")

</div>

The command is:

```auto
application.setToolbarVisible('text',false)

```

You should either double-click the command or type app then control+space to get the contextual menu - so you don’t accidentally type the wrong command.

Hope this helps.

---

<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:** [March 6, 2007, 9:18am UTC](https://forum.servoy.com/t/showformindialog-shows-text-toolbar-though-disabled/7189/3 "2007-03-06T09:18:45Z")

</div>

> davidaarong:
> 
> ```auto
> application.setToolbarVisible('text',false);
> 
> ```

> bcusick:
> 
> ```auto
> application.setToolbarVisible('text',false)
> 
> ```

What is different?

I believe this should have worked. Are you sure the onload method is triggered?  
Also you can disable the whole toolbar by using the kiosk plugin.

```auto
plugins.kioskmode.setToolBarVisible(false);

```

Hope this helps.

---

<div class="post-metadata">

**Author:** ![davidaarong](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@davidaarong](https://forum.servoy.com/u/davidaarong)\
**Post date:** [March 6, 2007, 4:59pm UTC](https://forum.servoy.com/t/showformindialog-shows-text-toolbar-though-disabled/7189/4 "2007-03-06T16:59:49Z")

</div>

I created a method (Open\_DB) which included

```auto
plugins.kioskmode.setToolBarVisible(false);

```

and added it to the on open method, yet I still get a text toolbar on that one layout that is show using showFormInDialog – is this a bug?

All other forms work just fine, no toolbars at all.

Using:  
Servoy Developer  
Version 3.1.3-build 407  
Java version 1.5.0\_11-b03 (Windows XP)

---

<div class="post-metadata">

**Author:** ![davidaarong](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@davidaarong](https://forum.servoy.com/u/davidaarong)\
**Post date:** [March 6, 2007, 5:07pm UTC](https://forum.servoy.com/t/showformindialog-shows-text-toolbar-though-disabled/7189/5 "2007-03-06T17:07:13Z")

</div>

I created a global, and set it to my name (‘David’), and added it to my OnLoad method. And sure enough that works, but

```auto
application.setToolbarVisible('text',false)

```

does not.

---

<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:** [March 6, 2007, 10:27pm UTC](https://forum.servoy.com/t/showformindialog-shows-text-toolbar-though-disabled/7189/6 "2007-03-06T22:27:09Z")

</div>

Hi David,

You use a FormInDialog. In the showFormInDialog function you can set the text toolbar to false or true.  
Are you by any chance setting it to true?

For reference this what the syntax looks like:

```auto
application.showFormInDialog(form,[x],[y],[width],[height],[dialog_title],[resizable],[showTextToolbar],[closeAllOnCloseButton])

```

---

<div class="post-metadata">

**Author:** ![davidaarong](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@davidaarong](https://forum.servoy.com/u/davidaarong)\
**Post date:** [March 7, 2007, 9:04pm UTC](https://forum.servoy.com/t/showformindialog-shows-text-toolbar-though-disabled/7189/7 "2007-03-07T21:04:40Z")

</div>

You ROCK Robert… sure enough, I had it set to true in the showFormInDialog function.

Well, I all the wiser knowning that this function overides other functions when called for onLoad or onShow.

Thanks again Robert!

- David
