Splash plugin 1.0 (yeah does what it says)

My second plugin again adds a function that is not a real need-to-have but for me it sure is a nice-to-haveM-^E

I didnM-^Rt like to show a splashscreen with a normal window behaviour (borders, buttons etc.).

So I played a little to make a splash screen in Java. In fact this was not much fun because there are some good examples floating around on the internet.

Second I had to implement this as a plugin. This was a little harder to do. But, with the help of Johan to show me how to M-^QchainM-^R this window to a Servoy solution I got it going.

So here it is my Splash plugin. You can implement it like:

plugins.it2be_splash.show(M-^Simage/foo.jpgM-^T, 5, true)

M-^Simage/foo.jpgM-^T = image path string (window resizes to the image Size);
5 = the number of seconds before the screen disappears;
true = allow the user to click the screen away;

The result is attached. Just drop it in your plugins folder and restart Servoy.

Feel free to use it and distribute it but give me credit for it.
The plugin is free, provided M-^Qas isM-^R and I can not take any responsibility for the way it behaves or works.

This plugin gives the taste for more and could be much more. If you have any suggestions or questions please contact me…

Cheers

Great plugin, well done Marcel!

Marcel,

I didn’t get this plugin to work with images stored in the repository (using code: media:///logo.gif). Should it work, or is the plugin not aware of this code?

Paul

IT2BE:
My second plugin again adds a function that is not a real need-to-have but for me it sure is a nice-to-haveM-^E
snip

This plugin gives the taste for more and could be much more. If you have any suggestions or questions please contact me…

Cheers

Great tool, bravo :slight_smile:

Suggestions: do you think it’s possible to add the support for some basic transition (it could be very useful in credit’s windows and stuff like that).

Paul, sorry but I don’t have a solution for that (yet) :cry:
I will see if I can correct this or make a workaround…

Riccardino, NOT SO FAST MAN :wink:
This is exactly what I am playing with now but I can’t promise anything… If I do this I want to do it right!

IT2BE:
Riccardino, NOT SO FAST MAN :wink:
This is exactly what I am playing with now but I can’t promise anything… If I do this I want to do it right!

Take your time, Marcel :smiley:

And thanks again

My second plugin (second build) again adds a function that is not a real need-to-have but for me it sure is a nice-to-haveM-^E

The plugin adds the possibility to show a real Splash screen from within a servoy application.

I now added the possibility to show text with and without an image…

Little backdrop is that you canM-^Rt read from the media database directly like M-^Qmedia:///image.pngM-^R. You can however read an image instead of an imagepathM-^E DonM-^Rt know how to do that but you can do it :?

So here it is my Splash plugin.

There are three ways to show a splash:

Image Only

  • showImage(): Show the splash at the size of the image

Text Only

  • showText(): Show the splash with the size of the text

Image and Text

  • show(): Show an image with the text relative to the position of the image

For version 1.0 users: show() is now showImage();

In case of text you have the option to define the background and in both cases you can use html…

For more info see the examples include in the plugin…

The result is attached. Just drop it in your plugins folder and restart Servoy.

Feel free to use it and distribute it but give me credit for it.
The plugin is free, provided M-^Qas isM-^R and I can not take any responsibility for the way it behaves or works.

This plugin gives the taste for more and could be much more. If you have any suggestions or questions please contact me…

Cheers

HJK: The new version will have the possibility to also read from the media database like:

'plugins.it2be_splash.showImage(plugins.http.getMediaData("media:///IT2Be.jpg"), 5, true);'

Hope this is the answer to your question…

how can I clear the splash within the script?

Thanks

Hai Hameed,

I haven’t made a way to remove the splash other than clicking on it or setting an x number of seconds to let it disappear. What do you want to archieve?

I want to show a splash before a long running script is started & hide it after it is completed.

I have a method running in the onRecordSave event that updates the history file records using a foundSetUpdater. I wanted to show a splash saying “please wait …” when the records are updated in the background. It would much better if I can show an animated gif in the splash.

Thanks

Hi Marcel,

This is can done with your plugin? It would really a great use for me if you can do that. I would really love that.

Thanks a lot

Hmm, I will have a look at it next week.

Hey Marcel,

I wanted to download this plugin - but I cannot see any link to do so! Am I being dumb or is it somewhere else (also cannot find any link to dowmload your files plugin) :?

Hello Drookwood, no your brains don’t have a memoryleak or any other mishap. The links are plain and simple gone.

At this moment I am restyling/improving all my plugins so either way they are not available now. Somewhere in the upcoming week I will post an announcement including the link to download them.

Cheers

OK - looking forward to the next revisions - thanks