自已先做一个过程,在程序启动时自动检测分辨率。然后按照比例改变所有控件的属性。 不过对工具条(toolbar)的字体不起做用。 下面附有代码。dim bl_x,bl_y as single bl_x=screen.width/15/640 bl_y=screen.height/15/480 for i = 0 to me.controls.count-1 i.top = i.top*bl_y i.lelt= i.lelt*bl_x i.width=i.width*bl_x i.height=i.height* bl_y i.font.size = i.font.size * bl_x next i这是很久以前做过的,现在没有经过测试,这是大概的思路。 你在试一下吧。
2 调了分辨率,在15"显示器上15cm的图像到了17"显示器上岂不是变成了17cm?
不过对工具条(toolbar)的字体不起做用。 下面附有代码。dim bl_x,bl_y as single
bl_x=screen.width/15/640
bl_y=screen.height/15/480 for i = 0 to me.controls.count-1
i.top = i.top*bl_y
i.lelt= i.lelt*bl_x
i.width=i.width*bl_x
i.height=i.height* bl_y
i.font.size = i.font.size * bl_x
next i这是很久以前做过的,现在没有经过测试,这是大概的思路。
你在试一下吧。