Queries on Skins

Forums for specific tips, techniques and example code
vineet.ambwani
Posts: 7
Joined: Thu Nov 26, 2009 4:41 pm

Queries on Skins

Postby vineet.ambwani » Tue Dec 08, 2009 1:20 am

Hi..
Problem:
I created a skin using Skin Maintenance Form successfully and then I was able to get the collection of skins by using the
getSkinCollection function of Application Class. But when i tried to use the Skin Selection Form, combobox of this form was not getting populated with the skin names... so I wanted to know how to get this combobox populated with skin names.

One more thing I have an application created which have a uniform skin for all its forms. I wanted to use this skin but I am not able to locate the name of the skin.If I could have located the name then I could have used it with the skinExtract function of the Application class. I tried to get the name using following code

app.getSkinCollection()[1].name

but this gives me arrayoutofindex exception.

also if anyone can provide me with some tips for using skins with my interface.

Regards

Vinit Ambwani

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: Queries on Skins

Postby BeeJay » Tue Dec 08, 2009 9:16 am

I suspect you're getting caught out by the two different styles of skins available in Jade. The getSkinCollection method was used with the old Jade 5.x version of the skins. The fact that this collection is empty is suggestive that you've create a Jade 6.x version skin, in which case you should be using the singleton JadeSkinRoot instance and the JadeSkinRoot::allApplicationSkins property to programmatically access your skins.

Jade 5.x style skins
Maint Form: JadeSkinMaint
Select form: JadeSkinSelect
Programmatic Access: app.getSkinCollection

Jade 6.x style skins
Maint form: JadeSkinMaintenance
Select form: JadeSkinSelection
Programmatic access: JadeSkinRoot.firstInstance.allApplicationSkins

Cheers,
BeeJay.

vineet.ambwani
Posts: 7
Joined: Thu Nov 26, 2009 4:41 pm

Re: Queries on Skins

Postby vineet.ambwani » Tue Dec 08, 2009 8:47 pm

Hello Beejay
Thanks for Your information, it was really helpful.
I want to know if an application is having a skin, How can I retrieve the images for controls which are used in it.
I need this information as I want to add forms to this existing application and want to have a consistent appearance to the interface.
I have tried using skinExtract function of Application class. It creates the folder but it does not imports any images to this folder. What could be the reason for this?

Regards
Vinit Ambwani


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 12 guests

cron