Marco,
created 24x24, 32x32, 48x48, 64x64 PNG and BMP ( with transparent / Alphablended )
Borders are optimized, because of a few not clean background-areas.
the same set as < Gray > for disabled. I will test optimezed Buttons ( Colors )
Next placing a Download-link of a complete sample, as soon it is finished.
The reason of the bad quality is the background like You can see :
added a Shadow as new Logo
LogoNew.png ( 280 x 280 )
Download ( all Files )http://www.pflegeplus.com/fw_downloads/logotest.zip1. I cleaned the background
2. next increased the depth-sharpness
3. next adjusted contrast and brightness
Buttonstatus :
BtnUp, Disabled, Overmouse, ClickWith this little function, You can keep a different clicked BMP visible
Button-objects are a array =>
oBtn[10]The 1. Button :
@ 20, 20 BTNBMP oBtn[1] OF oDlg2 2007 ;
SIZE 60, 30 PROMPT "32 x 32" ;
FONT oFont1 ;
LEFT ;
NOBORDER ;
FILENAME c_path + "\Logo\32x32N.bmp", ; // BtnUp
c_path + "\Logo\32x32C.bmp", ; // BtnDown
c_path + "\Logo\32x32D.bmp", ; // Disabled
c_path + "\Logo\32x32O.bmp" ; // Overmouse
ACTION SET_BTNBMP( oBtn, 1 )
oBtn[1]:lTransparent := .T.
oBtn[1]:cTooltip := "32 x 32"
oBtn[1]:lBorder := .F.
// -------- set any clicked Button to a different BMP ------------
FUNCTION SET_BTNBMP( oBtn, nBtn )
LOCAL I
I := 1
FOR I := 1 TO 10
// repaints all buttons to normal Images
oBtn[I]:SetFile( oBtn[I]:cBmpFile1, oBtn[I]:cBmpFile2 )
NEXT
// paints the selected button with a defined click-image
oBtn[nBtn]:SetFile( oBtn[nBtn]:cBmpFile2, oBtn[nBtn]:cBmpFile1 )
// resets back to normal Image
oBtn[nBtn]:cBmpFile1 := oBtn[nBtn]:cBmpFile2
RETURN NILBest Regards
Uwe