L&F Hack...

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

L&F Hack...

Postby Providence1 » Tue Oct 05, 2004 3:45 am

I noticed that some field elements don't have that shading that goes on in the background of the field, like Text_Area.

Is there someone that can hack the standard L&F that comes with Servoy so that none of the field elements have this shading?
Providence
Providence1
 
Posts: 456
Joined: Tue Aug 17, 2004 2:36 am
Location: New York, NY

Postby IT2Be » Tue Oct 05, 2004 7:43 am

Why don't you use the css. That should solve that issue... (I guess you are talking about the way borders show around a text field and a text area).
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 Providence1 » Thu Oct 07, 2004 4:02 am

What I mean is the shading that occurs in fields that one, meaning me, can't get rid of no matter what, because, apparently as its been explained, it's part of the Look and Feel that Servoy uses to draw design elements.

Can you explain the CSS further, if that will do it? Upon looking at it it seems there should be a function:

background-style:

So that one, meaning anyone, may specify the following syntax:

field
{
background-color: #ffffff;
background-style: solid
border-style: inset;
font: 11pt "Verdana";
text-align: left;
margin: 1px 2px 1px 1px;
}

Thanks!
Providence
Providence1
 
Posts: 456
Joined: Tue Aug 17, 2004 2:36 am
Location: New York, NY

Postby IT2Be » Thu Oct 07, 2004 7:38 am

Have your tested it? If not, attach the style to the form and you have your answer because this could be your solution. Attaching your style is very simple. Just look for your form property 'style-name'. You will see a field that changes into a combo box holding the value list with stylenames. Ones your made your choice you should see your changes immediately.

And yes, the shading is part of your L&F but it looks like some behaviors disappear with the css.
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 bcusick » Thu Oct 07, 2004 3:45 pm

Providence1 wrote:field
{
background-color: #ffffff;
background-style: solid
border-style: inset;
font: 11pt "Verdana";
text-align: left;
margin: 1px 2px 1px 1px;
}



Ahemmmm... open the "Editor" window (Methods Editor) and notice the first node is "Styles". Click on it - double-click to open a style or right-click to create one (choose "sample" and it will create a basic shell for you).

Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby Providence1 » Fri Oct 08, 2004 1:36 am

Even though the Servoy Online Help, under an Index Search for Servoy CSS style properties, lists all the examples for CSS and <background-style:> is not one of them... (I did Remember reading that the "sample" shell included all the parameters/functions currently available for consumption. )

I tried my example above per your suggestion. Even quit Servoy to see if it would take hold.

That's why instead of waiting for the CSS Property to allow the function:

background-style: solid

I was wondering if anyone got tired of the L&F as it stands and hacked it.
Providence
Providence1
 
Posts: 456
Joined: Tue Aug 17, 2004 2:36 am
Location: New York, NY

Postby IT2Be » Fri Oct 08, 2004 8:55 am

Hai Providence, to be honest I didn't take a look at your css. So it could very well be that setting a background-styel won't work that way. Sorry for that...
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 bcusick » Fri Oct 08, 2004 1:37 pm

If it's not in the "Sample" style - you can't do it.

Simple.

Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

borders css

Postby megaquests » Sat Oct 09, 2004 5:40 pm

i think im experiencing the same problem

have spent a couple of hours trying to get rid of tab panel borders using CSS. no luck

has anyone had any luck managed to loose these borders using any method at all
megaquests
 
Posts: 91
Joined: Mon Mar 01, 2004 1:09 pm
Location: Brighton, UK

Re: borders css

Postby Jan Blok » Tue Oct 12, 2004 9:45 am

megaquests wrote:has anyone had any luck managed to loose these borders using any method at all

Well a tabpanel has 2 kind of borders the outerborder which can be controlled via css or property, and a tab border which is not modifiable.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

tab borders

Postby megaquests » Tue Oct 12, 2004 11:10 am

thanks Jan,that explains it...

it looks like i have been trying to modify the tab border that cannot be modified. ill make do as it is. :)
megaquests
 
Posts: 91
Joined: Mon Mar 01, 2004 1:09 pm
Location: Brighton, UK


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 22 guests

cron