delphi控件大小随窗体大小变化 您好: 您有delphi控件大小随窗体大小变化的源码吗?非常感谢!!! 新手敬上 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 自己在OnResize事件中计算不行吗? http://topic.csdn.net/t/20030506/09/1743910.html这里面有解答~ScaleBy,搞定这个函数。 控件有个Anchors锚点属性,就是固定某个方向和容器边界的距离。object Memo1: TMemo Anchors = [akLeft, akTop, akRight, akBottom]end scaled:=true; if (screen.width<>orignwidth) thenbegin height:=longint(height)*longint(screen.height)div orignheight;width:=longint(width)*longint(screen.width)div orignwidth;scaleby(screen.width,orignwidth);end; 如何捕获桌面更新的消息 delphi调用存储过程 请高手解答 DBchart及SQL难题,大家来帮我想想办法 谁有easygrid-v6控件的demo源代码,谢! c的dll在delphi中使用的数据读取问 关于canvas的问题 怎么用ADO的组件建立一个临时表呀! 菜菜问题,请高手帮帮忙!我按照书上定义了一个记录类型(包含case integer of语句),该怎么使用? 怎样调用数据库中一个字段的值|? 怎样用索引找出自己想的值 |? 一个三层架构的问题!在线等待急.... 如何提高大量数据导入 oracle 的速度(附我的数据入库代码)?????????????
这里面有解答~ScaleBy,搞定这个函数。
object Memo1: TMemo
Anchors = [akLeft, akTop, akRight, akBottom]
end
if (screen.width<>orignwidth) then
begin
height:=longint(height)*longint(screen.height)div orignheight;
width:=longint(width)*longint(screen.width)div orignwidth;
scaleby(screen.width,orignwidth);
end;