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:
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…
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?
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
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).
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…
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.
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.