I use a .png image 16x16 but Treegadget and listicongadget stretch this image to 20x20 (windows 7)
see image please

could someone help me?
thanks in advance
I used default fontMachineCode wrote:I guess it's stretching it to fit the text height. Not much you can do in that case.
same result!!MachineCode wrote:What happens if you increase the font height?
same result! the icons are stretched!USCode wrote:I haven't seen this behavior with my 32bit application in Win7 64bit.
Maybe try one of the icons that PB uses and see if it exhibits the same behavior?
http://www.famfamfam.com/lab/icons/silk/
What is the default size on Windows 7? What is the default size for High-DPI Windows 7 installs?giammy wrote: I use a .png image 16x16 but Treegadget and listicongadget stretch this image to 20x20 (windows 7)
thanks a lot Kuron!!Kuron wrote:What is the default size on Windows 7? What is the default size for High-DPI Windows 7 installs?giammy wrote: I use a .png image 16x16 but Treegadget and listicongadget stretch this image to 20x20 (windows 7)
20x20 sounds "about right" and there is likely a reason Windows 7 is stretching it to 20x20.
I wrote this small code to retrieving DPI increasing percentage in windows"Since the introduction of Windows Vista, users are more frequently following the recommended advice to change DPI settings as a way to enlarge the size of the text and UI elements on high-DPI displays. As more manufacturers ship greater numbers of high-resolution displays, the default 96-DPI setting can no longer be assumed by applications"
Code: Select all
OpenWindow(0,0,0,400,400,"Hello!")
StandardDPIResolution = 96
CurrentDPIResolution = GetDeviceCaps_(GetDC_(WindowID(0)), #LOGPIXELSX)
If CurrentDPIResolution > StandardDPIResolution
IncreasingPercent.d=(CurrentDPIResolution-StandardDPIResolution)/StandardDPIResolution*100
Debug Str(IncreasingPercent)
EndIf
Kuron wrote:there is likely a reason Windows 7 is stretching it to 20x20.
just load your 16*16 picture and add a whitegiammy wrote:suggestions???