Extracting Styles - where's the option??

In the Developers Guide under the Styles section, there is mention of how to ‘extract’ styles from a form to then apply to other forms. I am running:
Servoy Version R2 2.1.2-build 315
Java version 1.4.2-38 (Mac OS X) on OS X 10.3.6

and cannot see this option where it is documented to be?? Am I blind?

Dave :?

Hi Dave,

Sounds as though you are leafing through an older copy of the developer guide !

Styles used to need to be ‘extracted’ for use in other solutions but now they are a representation of style sheets and are accessible via the Style node of the method editor.

Creating a style in developer allows you to reuse that style for any new or existing solution and they are completely text based so that you can copy and paste at will where subtle changes may be required !

What are you wanting to do exactly ?

Cheers
Harry

Thanks Harry,

I thought it may be a manual version problem but I am pretty sure I downloaded all of my manuals from the developer site :?

I just wanted to apply a form style I have already made on a form to others.

I guess I need to code it frm scratch then ehh? Is there no way to see the text based formatting for a form I have already created?

Dave

Hi Dave,

Pardon me if I am teaching you to suck eggs …

For each form that you create there is a property which is called ‘styleName’

Double click this in design mode and it will come up with a list of styles which already exist and which can be applied to that form.

These styles can be applied retrospectively and can be modified.

If you open up the Method Editor then the very first node in the Navigator tree is the Styles node.

Click on this and you will see a list of current styles which have been created inside Servoy Developer and are available for use.

You can double click any of these styles to open them up for editing and you will see that they consist of a stylesheet type layout with a style for each element.

You can edit it and save it, you can reuse the style for as many forms as you wish, you can copy and paste it into another style so that you can create several similar styles - just play with it and see what happens !!!

There is a basic style or styles there (e.g. Servoy style) which can get you moving.

Ask some more questions here too !

Cheers
Harry

Thanks Harry,

I had found this. But I just wanted to know if I could view or extract the equivelant style text for an exisiting form but clearly I can’t. i will have a deeper lookat this once I get over my current report problem as I try to get my fist solution delivered on time!!!

Dave

Hi Dave,

I realise what you want to do now !

Sorry for the misdirection, I see now that you want to create the ‘feel’ of the form and then save it and reuse it :-(

The only thing that I can say is that I am no stylesheet expert and I started with the sample style and then edited it and kept on reviewing my form to assess whether I had achieved the desired result or not !

As you are on OSX there is a shareware product called CSSEdit which assists in creating stylesheets which can then be copied and pasted into a Servoy style (you can probably get it from the Apple OSX Downloads area) !

This may help you along !?

Harry