# Transparent button not transparent.

**URL:** <https://forum.servoy.com/t/transparent-button-not-transparent/6746>\
**Category:** Classic Servoy\
**Created:** [November 14, 2006, 5:03pm UTC](https://forum.servoy.com/t/transparent-button-not-transparent/6746 "2006-11-14T17:03:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![DomTom](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@DomTom](https://forum.servoy.com/u/DomTom)\
**Post date:** [November 14, 2006, 5:03pm UTC](https://forum.servoy.com/t/transparent-button-not-transparent/6746/1 "2006-11-14T17:03:10Z")

</div>

Hello Servoy users,

I used transparent button over checkboxes in my solution, so the user see the checkbox but when he wants click on it he clicks on a button to which I link a method.

When I test the solution in smart client the checkbox under the button is not visible as the button is nomore transparent ?

Someone else that encounter the same problem ?

Servoy bug ?

Servoy Developer  
Version 3.0.1-build 372  
Java version 1.5.0\_06-b05 (Windows XP)

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [November 14, 2006, 5:42pm UTC](https://forum.servoy.com/t/transparent-button-not-transparent/6746/2 "2006-11-14T17:42:54Z")

</div>

Despite of that problem: couldn’t you use onAction or onDataChange to call your method when the user clicks on the checkbox?

---

<div class="post-metadata">

**Author:** ![DomTom](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@DomTom](https://forum.servoy.com/u/DomTom)\
**Post date:** [November 15, 2006, 4:09pm UTC](https://forum.servoy.com/t/transparent-button-not-transparent/6746/3 "2006-11-15T16:09:45Z")

</div>

Thanks Patrick,

Yes, you are right I can use onAction trigger ant it runs.

![:)]( "Smile")

But I am surprised that transparent button in developpement are not transparent in ServoyClient(SmartClient from development).

![:?:]( "Question")

---

<div class="post-metadata">

**Author:** ![DomTom](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@DomTom](https://forum.servoy.com/u/DomTom)\
**Post date:** [November 15, 2006, 4:30pm UTC](https://forum.servoy.com/t/transparent-button-not-transparent/6746/4 "2006-11-15T16:30:03Z")

</div>

When I click on the checkbox not under the transparent button, Servoy changes the value in the checkbox before execute onAction method and in some case I would like not.

DomTom.

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [November 15, 2006, 5:50pm UTC](https://forum.servoy.com/t/transparent-button-not-transparent/6746/5 "2006-11-15T17:50:59Z")

</div>

You can use onDataChange. Then in your method you do

```auto
var vOldValue = arguments[0] // will give you the value before the change

```

If your method comes to the conclusion that the value should not be changed, you just set it back to vOldValue.

---

<div class="post-metadata">

**Author:** ![DomTom](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@DomTom](https://forum.servoy.com/u/DomTom)\
**Post date:** [November 15, 2006, 7:26pm UTC](https://forum.servoy.com/t/transparent-button-not-transparent/6746/6 "2006-11-15T19:26:29Z")

</div>

Thanks again for your suggestion.

I have already done it in my method.

But in that case the user see the checkbox changed and changed back after warning message and I don’t want that.

So i will continue to search how to go around.

And Servoy will fix that small bug.

DomTom.

---

<div class="post-metadata">

**Author:** ![DomTom](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@DomTom](https://forum.servoy.com/u/DomTom)\
**Post date:** [November 17, 2006, 7:55am UTC](https://forum.servoy.com/t/transparent-button-not-transparent/6746/7 "2006-11-17T07:55:38Z")

</div>

I just tried the same thing in another solution of my repository and it’s running perfectly.

![:)]( "Smile")

So i suppose something is broken on my test solution ?  
 ![:?:]( "Question")

Transparent buttons are transparent and it’s more easy to manage.

DomTom.

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [November 20, 2006, 3:10pm UTC](https://forum.servoy.com/t/transparent-button-not-transparent/6746/8 "2006-11-20T15:10:17Z")

</div>

please submit the test solution into our [support system](http://crm.servoy.com/servoy-webclient/solutions/solution/servoy_support) so we can have a look.
