I am trying to make a page look as close as I can to the Panelview component screen that I am replacing.
On the PVComponent you can have different text, and backgrounds and images based on the state of the button.
Thankfully I don't have to mess with A-B stuff often.
As I said, if you can tell me what the particular button is supposed to do, I can tell you how to change the text. Does it run a program, does it download a value, does it toggle a tag, does it change a page?
I would probably create two programs for each button - lets call them OnPressed and OnReleased. Put them in a folder specific to the button so you can copy, paste, and rename the folder for a new button.
The button Action would be User defined. The On Pressed Action would be (for instance) Btn1.OnPressed(). The On Released Action would be Btn1.OnReleased().
Now go to the programs and make the button do what you want it to do including changing the text of a tag named Btn1_Text. That tag will be the Data for the button.
In the Btn1.OnPressed() program you would have a line that is Btn1_Text == "What I want it to say when pressed";
In the Btn1.OnReleased() program you would have a line that is Btn1_Text == "What I want it to say when released";
There are easier ways to do it, but since I don't know what your button will do, I can't zero in on the easiest way, this is just the way that will allow you to:
1. Set a tag to another value
2. Toggle a tag
3. Go to a page
4. etc.
Just by writing code in the programs I showed above. Typically the OnReleased() would just set the Button Text (BTN1_Text) to what you want the button to normally say.
If you want the button to say something different based on the value of the tag you are changing, there is an easier way, but again, I am trying to give you an all inclusive method.