Question: Is it possible to change the background of the Page Style of a form?

I have a form that uses a page style that I defined in the format menu of the form.
.
In this form I want to add two buttons that would act as tabs. So, by clicking one of the buttons, the fields corresponding to a table X1 would be displayed and the same for the other button, table X2 would be displayed.
.
However, for aesthetic reasons, I would like the page style to be different depending on the button clicked. For example, modify the Gradient by selecting a type from the available selections, modify the angle, the original color, etc.

Is it possible to achieve this in Base?

Thanks @UnklDonald for this Demo, it’s interesting and I understand that every text element, button or whatever has these properties which can be changed through the use of a macro.
.
However, that is not quite it. I will use images to better explain my request.
.


.

.
When we select the “Page Style” in the “Format” menu of LibreOffice, we have access to a group of tabs allowing us to make changes to the form. In the “Background” tab we have several selections or options. In my request, I was wondering if it was possible via a macro to modify the various options available in the “Gradient” selection which is found in this “Page Style” window?
.
I hope this clarifies my question.

I’m not sure if this is what you are after, but Base Form Controls have BackgroundColor and TextColor properties that can be manipulated using a coded macro.

I attached a small database with one Form document that has a Push Button Control which calls a macro that steps between a few Background and Text colors on the SubForm Grid.

Demo65_CtrlBackgnd.odb (35.4 KB)

There are other properties that I did not explore.

Beginning or page 314 of Andrew Pitonyak’s book “OpenOffice Macros Explained” is a section devoted to Manipulating Styles. Here is a link to his website Pitonyak Web Page. I’m not sure why but I was unable to reach it, so I put a copy on Media Fire.
MediaFire link to OOME

Here is a link to another document of his on Fonts that you might also find useful,
Mediafire link to Font Info

THANKS @ UnklDonald
.
There is a lot of information in these documents. I’ll take the time to take a look. There is no rush for me to fix this situation, because my DB is already very functional as it is now. It’s just that I have a mode of operation that I would like to use eventually and this addition of being able to modify the background via a macro would be interesting and aesthetically pleasing, but not essential.
.
Once again Thanks for your time.