set webclient background color

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() option.
:wink:

do in the CSS!
that works in the webclient.

HJK:
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…

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.

bcusick:
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,

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.

bcusick:
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?

Hi Karel,

It uses WebDAV - so you can most easily do it with something like Dreamweaver.