[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Problem Button bgpaint roundedrectangle  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

Hi,

a user mentioned that the rounded corners are not very pretty.
I use following attribute for the button: bgpaint='roundedrectangle(0,0,100%,100%,5,5,#FFFFFF)'

I added a zoomed in screenshot of a button.

Markus
 Filename Button.PNG [Disk] Download
 Description
 Filesize 4 Kbytes
 Downloaded:  381 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

...yes this does not look to nice ;-)
We are using the Grpahics2 interface for drawing the rounded rectangles and this does not produce too nice results for small "rounded- values". For bigger values it looks much nicer => see screenshot attached.

Björn

PS: and, of course, you still can work with images inside bgpaint
[Thumb - roundedbutton.png]
 Filename roundedbutton.png [Disk] Download
 Description
 Filesize 1 Kbytes
 Downloaded:  375 time(s)


Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

...forgot to add the bgpaint for the button above:


Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

...forgot to add the bgpaint for the button above:

Code:
roundedrectangle(0,0,100%,100%,30,30,#80000050,#80000010,vertical);roundedborder(0,0,100%,100%,30,30,#FF000020,1)


Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team