set webclient background color

Forum to discuss the Web client version of Servoy.

set webclient background color

Postby Karel Broer » Mon Aug 28, 2006 11:33 pm

I like to set the full background color of my webclient (html) by a method,
because each user could have it's own color settings.

When I try to do that with setting the bg of an element with no anchors,
the element size is still shown by it's original size in the browser and rest of the background is terribly white.. :(

Because rowBGColorCalculation isn't an option (and doesn't work either) in the web client,
I think I have a good reason to ask for a setFormBGColor([color]) option.
:wink:
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Postby Harjo » Mon Aug 28, 2006 11:38 pm

do in the CSS!
that works in the webclient.
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

Postby Karel Broer » Mon Aug 28, 2006 11:51 pm

HJK wrote:do in the CSS!
that works in the webclient.

Thanks for thinking along Harjo.
Not an option in this case. Can't write a complete CSS for every user/client...
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Postby bcusick » Wed Aug 30, 2006 10:35 am

Hi Karel,

The web client doesn't support anchors - as you see, and you can't programatically set the background color of a form (as you have found out). The only thing you CAN do is to make a label in the background the size of your body section, and then color that. BUT, you're correct - it will never be bigger (in WC) than the physical size of your form.

You might try making your form bigger - and then setting the scrolling to none for the Smart Client. Just don't make it TOO BIG - or you'll get scrollbars in the WC.
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby Karel Broer » Wed Aug 30, 2006 11:23 am

bcusick wrote:You might try making your form bigger - and then setting the scrolling to none for the Smart Client. Just don't make it TOO BIG - or you'll get scrollbars in the WC.

Hi Bob,

Thanks, but I tried that too, and you pointed it out allready: WC get's scrollbars...
Would it be possible for WC to have full CSS support?
(I know, some CSS works, but not a whole lot)
I also know that full CSS support would be a huge value for customers wanted to use WC.
No design would be impossible anymore for WC! :idea:
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Postby bcusick » Thu Aug 31, 2006 6:10 pm

Karel,

You CAN hand-modify the underlying HTML/CSS! Go to: http://yourIP:8080/servoy-webclient/templates

Done. You can edit them to your heart's content. Just don't mess with the "ID" properties on the objects.

The only drawback is that now these pages are "unlinked" from what you do in Developer. This means that if you make changes in developer to a particular form, it will NOT be reflected on your WC page.

If you move that page out of the templates folder - then Servoy will automatically re-generate it the next time the solution is loaded in WC.
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby Karel Broer » Thu Aug 31, 2006 6:49 pm

bcusick wrote:Karel,
You CAN hand-modify the underlying HTML/CSS!

Perfect! Thanks for the tip, Bob!
If you move that page out of the templates folder - then Servoy will automatically re-generate it the next time the solution is loaded in WC.

How do I move the -adjusted- css file back INTO the webfolder? I can't see the files in the root folder...
Can I make an FTP connection to this folder?
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Postby bcusick » Fri Sep 01, 2006 9:18 pm

Hi Karel,

It uses WebDAV - so you can most easily do it with something like Dreamweaver.
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 3 guests

cron