Editable combo's on a colored background and OS X

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Editable combo's on a colored background and OS X

Postby IT2Be » Thu Apr 08, 2004 3:00 pm

When we have a colored background on os x we have an issue with the background of a combo box.

We either set the background to the same color or transparent but have a colored field background or we set it to white or default but have the ugly border around the rounded edged.

The solution is quite simple.

1. make the combo transparent
1. define a label with a white background
2. make the width of the combo - 5 pixels
3. make the height of the combo - 2 pixels
4. place the label behind the combo 1 pixel to the right and 1 pixel lower

et voila... All looks fine now...

Just my little 0.5 cent contribution...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Return to How To

Who is online

Users browsing this forum: No registered users and 9 guests

cron