cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Once clicked on the button, it should change the color

Hi, Please suggest how to achieve this. Pls refer the attachment.

 

Once I will click on the top category Button 'Search', it should change its color to white (as exactly shown in the screenshot) till the time I click on any other top category button 'Language' etc.

While I am clicking on the button, it turns white for a second then it changed back to original color. 

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User III
Super User III

@Anonymous 
I assume each tab is a label.  In the OnSelect of each individual put code like this.

Set(currentTab, "Site Info")
Set(currentTab, "Site Behaviour")
Set(currentTab, "Language")
Set(currentTab, "Search")

 

Then, put this code in the Fill property of each individual tab

If(currentTab="Site Info", White, Gray)
If(currentTab="Site Behaviour", White, Gray)
If(currentTab="Language", White, Gray)
If(currentTab="Search", White, Gray)

 

Now the tab will appear White when clicked.  You can also set the color of the initial tab by putting this code in the OnVisible property of the form.

Set(currentTab, "Site Info")

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

1 REPLY 1
mdevaney
Super User III
Super User III

@Anonymous 
I assume each tab is a label.  In the OnSelect of each individual put code like this.

Set(currentTab, "Site Info")
Set(currentTab, "Site Behaviour")
Set(currentTab, "Language")
Set(currentTab, "Search")

 

Then, put this code in the Fill property of each individual tab

If(currentTab="Site Info", White, Gray)
If(currentTab="Site Behaviour", White, Gray)
If(currentTab="Language", White, Gray)
If(currentTab="Search", White, Gray)

 

Now the tab will appear White when clicked.  You can also set the color of the initial tab by putting this code in the OnVisible property of the form.

Set(currentTab, "Site Info")

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (39,446)