FID with no borders and/or with transparency (masking)

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

FID with no borders and/or with transparency (masking)

Postby ROCLASI » Tue May 18, 2010 10:22 pm

Since Java 5 (and certainly in Java 6) you can use borderless dialogs and/or dialogs with a mask (with alpha channels, i.e. transparency).
It would be very helpful to have such an advanced feature to make more compelling and appealing GUI's. Also it would be fairly easy to translate this 100% to the web as well.

I filled case #292965


Right now you can already take the decoration (borders/header) of a dialog with some inline java (courtesy of Troy Elliot of Data Mosaic) so it should be doable in plain Java as well (since it *IS* plain java).

EDIT: this specific piece of code only seems to work on Mac OS X.

Code: Select all
function onShow(firstShow, event) {
    if (firstShow) {
        // Code by Troy Elliot of Data Mosaic
        //get all the children windows that the top-level servoy form owns
        var allFrames = Packages.java.awt.Frame.getFrames()[0].getOwnedWindows()

        //loop through all children windows until we find the one we just opened
        for (var i = 0; i < allFrames.length && !thisFiD; i++) {

            //we found the form just opened
            if (allFrames[i].getName() == 'nameOfYourDialog') {
                //assign the FiD object to a variable to make the code easier to read
                var thisFiD = allFrames[i]

                //destroy FiD so it can be undecorated
                thisFiD.dispose()

                //undecorate FiD
                thisFiD.setUndecorated(true)

                //set to be modal because modal argument in application.showFormInDialog lost with dispose()
                thisFiD.setModal(true)

                //show FiD again
                thisFiD.setVisible(true)
            }
        }
    }
}


As for masking dialogs. You can take something like this:
Image

And show it in a real dialog with a real mask (instead of a transparant tabpanel like this):
Image

You might say, why use a dialog with mask for this when you can already do this with a transparant tabpanel ?
Answer: Simple, it doesn't have all those benefits of a real (modal) dialog.

And this is just ONE small example.


Here is also some Oracle/Sun info on making translucent/shaped windows:
http://java.sun.com/developer/technical ... d_windows/
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: FID with no borders and/or with transparency (masking)

Postby Harjo » Tue May 18, 2010 10:29 pm

ROCLASI wrote:Since Java 5 (and certainly in Java 6) you can use borderless dialogs and/or dialogs with a mask (with alpha channels, i.e. transparency).
It would be very helpful to have such an advanced feature to make more compelling and appealing GUI's. Also it would be fairly easy to translate this 100% to the web as well.

I filled case #292965


+1!! :D
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: FID with no borders and/or with transparency (masking)

Postby Providence1 » Tue May 18, 2010 11:27 pm

I must have this!!!!
Providence
Providence1
 
Posts: 456
Joined: Tue Aug 17, 2004 2:36 am
Location: New York, NY

Re: FID with no borders and/or with transparency (masking)

Postby jcompagner » Wed May 19, 2010 11:55 am

Here is also some Oracle/Sun info on making translucent/shaped windows:
http://java.sun.com/developer/technical ... d_windows/

thats a real bad link.... (as an example)
Thats only for java 6u10 and higher AND it uses a "com.sun.awt.AWTUtilities" class that is not public api and can change at any point. (and doesnt have to ship in other none sun like mac java impl)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: FID with no borders and/or with transparency (masking)

Postby Karel Broer » Tue May 25, 2010 10:50 am

My vote for this feature too! 8)
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Re: FID with no borders and/or with transparency (masking)

Postby Thomas Parry » Tue May 25, 2010 10:43 pm

+1
Tom Parry
Prospect IT
Java/C++/Servoy/Jasper Reports/Simulation/Service Applications
http://www.prospect-saas.biz
Thomas Parry
 
Posts: 498
Joined: Thu Jan 10, 2008 8:48 pm
Location: Ottawa, Canada

Re: FID with no borders and/or with transparency (masking)

Postby maria » Wed Dec 08, 2010 1:52 am

+1!
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: FID with no borders and/or with transparency (masking)

Postby Karel Broer » Thu Apr 07, 2011 8:26 pm

Is there any news about this feature request? Could this be implemented in 6 ?
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 5 guests