Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread How to set colour behind form
Mon, May 11 2015 8:24 AMPermanent Link

Godfrey

Ultimatesoft

Hi All

Sorry for all the questions. I hope this question has not already been asked.

How do you set the colour or add an image for the backround behind the form.  My form is set to
the Center.

Thanks
Godfrey
Mon, May 11 2015 8:36 AMPermanent Link

Matthew Jones

Godfrey wrote:

> How do you set the colour or add an image for the backround behind
> the form.  My form is set to the Center.

Changing the Background.Color seems to work for me. Likewise with
Background.Image (setting .Name)
Mon, May 11 2015 8:36 AMPermanent Link

Raul

Team Elevate Team Elevate

On 5/11/2015 8:24 AM, Godfrey wrote:
> Sorry for all the questions. I hope this question has not already been asked.
>
> How do you set the colour or add an image for the backround behind the form.  My form is set to
> the Center.

You have 2 options :

1. Either get the main form to stretch to fill the background surface
and set the form properties.

2. use the built-in surface object. easiest to access is thru
application object.

for example

Application.Surface.Background.Fill.Color := clSpringGreen;


The TBackground object is the same for surface ( Background part ) as it
is to the form so you can play with the form properties and then copy
those values to code fort surface ones .

Raul

NB! I don't recommend this specific colour though Smile
Mon, May 11 2015 8:43 AMPermanent Link

Godfrey

Ultimatesoft

"Matthew Jones" wrote:


<<Changing the Background.Color seems to work for me. Likewise with
Background.Image (setting .Name)>>

My mainform does not fill the whole screen.  I am talking about the area outside of the form.

Thanks
Godfrey
Mon, May 11 2015 9:39 AMPermanent Link

Matthew Jones

Godfrey wrote:

> My mainform does not fill the whole screen.  I am talking about the
> area outside of the form.

Raul has some suggestions, but I think you can also edit the TSurface
interface (best in a custom copy) to do this.
Mon, May 11 2015 9:48 AMPermanent Link

Uli Becker

Godfrey,

<<
Raul has some suggestions, but I think you can also edit the TSurface
interface (best in a custom copy) to do this.
>>

And in addition to what Matthew wrote: just put a modified copy of
TSurface.wbi into your project folder and you are all done.
Thus you can use different wallpapers for different projects.

Uli
Mon, May 11 2015 10:25 AMPermanent Link

Godfrey

Ultimatesoft

<<And in addition to what Matthew wrote: just put a modified copy of
TSurface.wbi into your project folder and you are all done.
Thus you can use different wallpapers for different projects.

Uli>>

Thanks for the info.  It would be nice if one could set these properties under Projects options.  Maybe
in the future.

Godfrey
Mon, May 11 2015 10:40 AMPermanent Link

Matthew Jones

Godfrey wrote:

>  It would be nice if one could set these properties under Projects
> options.  Maybe in the future.

That is how it was in version 1, but the new way allows you to set it
in the "theme" much more easily, which actually makes more sense. If
you design a fancy theme for all of your applications, with your own
look and feel for all of them, having the surface colour set in the
theme is a better way than having to do it in each project. Likewise if
you switch theme, they all change without further ado.
Image