showFormInDialog shows Text Toolbar though disabled

onLoad I have a script (Hide_Toolbar_Text) with the following code:

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 (30.5 KB)

The command is:

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.

davidaarong:

application.setToolbarVisible('text',false);

bcusick:

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.

plugins.kioskmode.setToolBarVisible(false);

Hope this helps.

I created a method (Open_DB) which included

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)

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

application.setToolbarVisible('text',false)

does not.

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:

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

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