Transparent button not transparent.

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)

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

Thanks Patrick,

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

:)

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

:?:

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.

You can use onDataChange. Then in your method you do

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.

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.

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

:)

So i suppose something is broken on my test solution ?
:?:

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

DomTom.

please submit the test solution into our support system so we can have a look.