Change background colour of a form

Forum to discuss the new web client version of Servoy.

Change background colour of a form

Postby roddy » Tue May 11, 2021 5:08 am

I'm unable to find any way of updating the background colour of a form; there is no access to the style class and changing the background colour in the body would entail retrieving the form from the solution model, retrieving the body, updating the colour and then calling recreateUI(), which is a very slow approach to changing a single criteria.

Is there a recommended way of changing the background colour of a form?
roddy
 
Posts: 80
Joined: Mon Oct 26, 2020 12:32 am

Re: Change background colour of a form

Postby mboegem » Tue May 11, 2021 4:57 pm

Still a workaround, but can't you use a full anchored label in the background?
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1573
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Change background colour of a form

Postby roddy » Wed May 12, 2021 3:46 am

That is an interesting idea... will give it a go.
roddy
 
Posts: 80
Joined: Mon Oct 26, 2020 12:32 am


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 2 guests

cron