[New] Splash plugin v2

Version 2 of my plugin now gives you the ability to hide the splash via a method, make the solution window full screen and if you like, to hide the menubar and the taskbar/dock…

For the full story see www.servoymagazine.com or go to my site and download it (www.it2be.com).

Cheers,

marcel

Hello Marcel,

greatjob! Especially hiding the menu bar is useful. You only have forgotten to make plugins.it2be_splash.setMenuBarVisible(); visible in the plugin. It does work, but it doesn’t show up under the available functions…

Thanks for sharing!

Patrick

:-) That’s on purpose since it doesn’t work on the mac yet. It’s also not documented. Didnt’ expect any smartass :-) to look into the jar though…

That wasn’t necessary… You expose it in your sample code.

Hi Marcel,

Where to download the plugin?

Thanks
Hameed

… and download it (www.it2be.com).

so go to www.it2be.com and find it there…

Ok Thanks for that indicating that. Over looked.

But now I am getting when I download the
http://www.it2be.nl/plugins/Splash.zip

Can you check pls…

Network Error (tcp_error)

A communication error occurred: “Operation timed out”
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

For assistance, contact your network support team.

Got it now Thanks.

One very little issue I got when I was testing. If you showed the splash twice before the first one closes, then the splash never close until I restart the servoy.

Cheers

Thanks marcel.

The hide() function is very useful.

I can now show the splash whenever I am going start a lengthy process where the progression plugin is not involved and close the splash at the end of the script.

Cheers and thanks.

Thanks for the compliment,

I can’t image the splash to never ‘close’ unless you set the time length too long. What I can imagine is that the hide only works for one splash.

I did put the splash in a seperate threath, that’s the reason Servoy keeps on running, however I haven’t rebuilt the plugin so that you can run more than one splash at a time. Didn’t see the purpose for that and it would have taken me too much time right now…

Cheers

There is no purpose for showing more than one splash at a time. For someone else there may be some purpose for that.

The have solved the problem by calling hide() method not caring whether a splash is open or not before doing a show method.

Also after showing the splash in a long running script, I have to call application.UpdateUI() to make it actually appear on the screen.

Thanks for your nice work.

Hello Marcel,

if I simply move your sample code for plugins.it2be_splash.showText I get an error, stating that the method could not be found.

Am I doing something wrong or is there a problem in the current build?

Thanks!
Patrick

Hi Marcel,

Nice job: this Splash plugin! Really like it!
One question: I noticed with the ‘show’ method that you can insert an image AND text. Is that text ABOVE the image or is it also possible to have text ON the image?

If (and only if :) ) I did the samples the correct way you should be able to find how to put text on top of the image.

Clarification: I do just that. I make an image that defines the size of the splash and put the text over the iamge…

This is how I do it:

	var message = "<HTML><HEAD><\/HEAD><BODY>";
	message += "<TABLE BORDER='0' CELLPADDING='5' CELLSPACING='0' WIDTH='465'><TR><TD COLSPAN='5' align='left' valign='bottom'><font face='verdana' size='3'>









<b>";
	message += i18n.getI18NMessage('2.version') + " 2.1r" + application.getSolutionRelease() + " ©IT2Be 2003 - 2005
";
	message += "Registered to: " + plugins.it2be_support.customLicenseCompanyName;
	message += "</b><\/TD><\/TR>";
	message += "<\/TABLE>";
	message += "<\/BODY></HTML>";
	
	plugins.it2be_splash.show("media:///Splash.gif", message, 1, 1, 25, true, 1);

Awesome! That’s the way, it’s just perfect! Thanks again, Marcel!
Get ready for ‘het IJ’ ! :wink:

Hi Marcel,

Can I show an animated gif inside a splash? would that work?

Thanks

Maybe, maybe not. For me it didn’t work. It made the splash hang. It looks like java/servoy has a problem with an animated gif anyways.

Ok. Thanks for letting me know that. I thought it would help show an animation during a long running process.

It is the exact same thing I wanted to do. Although the process is running in a seperate thread however anything you do behind the splash will take too much of the processor to really update the splash. Will investigate it some time…