[New] Splash plugin v2

Questions and answers on developing, deploying and using plugins and JavaBeans

[New] Splash plugin v2

Postby IT2Be » Mon Feb 14, 2005 1:46 pm

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
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby patrick » Mon Feb 14, 2005 2:10 pm

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
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby IT2Be » Mon Feb 14, 2005 2:24 pm

:-) 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...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby patrick » Mon Feb 14, 2005 2:33 pm

That wasn't necessary... You expose it in your sample code.
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby faheemhameed » Thu Feb 17, 2005 12:59 pm

Hi Marcel,

Where to download the plugin?

Thanks
Hameed
Hameed
Pilot simple software
Hong Kong
User avatar
faheemhameed
 
Posts: 763
Joined: Wed Sep 10, 2003 7:23 am

Postby patrick » Thu Feb 17, 2005 1:01 pm

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


so go to www.it2be.com and find it there...
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby faheemhameed » Thu Feb 17, 2005 1:08 pm

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.
Hameed
Pilot simple software
Hong Kong
User avatar
faheemhameed
 
Posts: 763
Joined: Wed Sep 10, 2003 7:23 am

Postby faheemhameed » Thu Feb 17, 2005 1:38 pm

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
Hameed
Pilot simple software
Hong Kong
User avatar
faheemhameed
 
Posts: 763
Joined: Wed Sep 10, 2003 7:23 am

Postby faheemhameed » Thu Feb 17, 2005 2:13 pm

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.
Hameed
Pilot simple software
Hong Kong
User avatar
faheemhameed
 
Posts: 763
Joined: Wed Sep 10, 2003 7:23 am

Postby IT2Be » Fri Feb 18, 2005 11:59 am

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
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby faheemhameed » Fri Feb 18, 2005 12:45 pm

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.
Hameed
Pilot simple software
Hong Kong
User avatar
faheemhameed
 
Posts: 763
Joined: Wed Sep 10, 2003 7:23 am

Postby patrick » Fri Feb 18, 2005 4:40 pm

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
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby Karel Broer » Wed Apr 27, 2005 6:40 pm

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?
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Postby IT2Be » Wed Apr 27, 2005 9:32 pm

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...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby IT2Be » Wed Apr 27, 2005 9:45 pm

This is how I do it:
Code: Select all
   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'><br><br><br><br><br><br><br><br><br><br><b>";
   message += i18n.getI18NMessage('2.version') + " 2.1r" + application.getSolutionRelease() + " &copy;IT2Be 2003 - 2005<br>";
   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);
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Next

Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 3 guests