:2.283KB : :1 :2019-12-19 16:55:00
GetWindowRect (_ChildHwnd [i], tem)
加入成员 (Rect, tem)
Proportion_.Left = (_Rect [i].Left - 左边 - 4) ÷ 宽度
Proportion_.Top = (_Rect [i].Top - 顶边 - 32) ÷ 高度
Proportion_.width = (_Rect [i].Right - _Rect [i].Left) ÷ 宽度
Proportion_.height = (_Rect [i].Bottom - _Rect [i].Top) ÷ 高度
加入成员 (_Proportion, Proportion_)
SetWindowPos (_ChildHwnd [N], 0, 宽度 × _Proportion [N].Left, 高度 × _Proportion [N].Top, _Proportion [N].width × 宽度, _Proportion [N].height × 高度, 0)
标签1.标题 = “高度:” + 到文本 (高度) + “ 宽度:” + 到文本 (宽度)
窗口缩放时窗口里的所有组件跟着缩放不改变字体大小,经过一系列的修改达到了你需要的效果,组件不多一般在窗口尺寸被改变事件里面自己写就挺方便的。
11-24修改封装的窗口缩放模块支持动态
11-14窗口组件自适应,自动调节大小增强版
11-13窗口组件自适应,自动调节大小
11-09易语言窗口缩放大小,组件自动调整大小
11-06纯组件自适应的选项列表模块
12-15易语言组件自适应入门,文本框和超文本浏览
10-16易语言窗口组件自适应.ec模块
07-09组件自适应模块API实现的
12-17最新易语言窗口组件自适应模块源码