Transparent button not transparent.

Questions, answers, tips and ideas on Servoy Client

Transparent button not transparent.

Postby DomTom » Tue Nov 14, 2006 7:03 pm

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)
DomTom
 
Posts: 123
Joined: Sat Jan 21, 2006 6:15 pm
Location: Belgium

Postby patrick » Tue Nov 14, 2006 7:42 pm

Despite of that problem: couldn't you use onAction or onDataChange to call your method when the user clicks on the checkbox?
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

On action

Postby DomTom » Wed Nov 15, 2006 6:09 pm

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).



:?:
DomTom
 
Posts: 123
Joined: Sat Jan 21, 2006 6:15 pm
Location: Belgium

Not like under a button,

Postby DomTom » Wed Nov 15, 2006 6:30 pm

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.
DomTom
 
Posts: 123
Joined: Sat Jan 21, 2006 6:15 pm
Location: Belgium

Postby patrick » Wed Nov 15, 2006 7:50 pm

You can use onDataChange. Then in your method you do

Code: Select all
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.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby DomTom » Wed Nov 15, 2006 9:26 pm

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.
DomTom
 
Posts: 123
Joined: Sat Jan 21, 2006 6:15 pm
Location: Belgium

Working perfectly in other solution.

Postby DomTom » Fri Nov 17, 2006 9:55 am

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.
DomTom
 
Posts: 123
Joined: Sat Jan 21, 2006 6:15 pm
Location: Belgium

Postby Jan Blok » Mon Nov 20, 2006 5:10 pm

please submit the test solution into our support system so we can have a look.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 5 guests

cron