English 中文(简体)
其尺寸大于屏幕尺寸的窗体截图
原标题:Screenshot of form whose dimensions are greater than screen dimensions

我有一个TForm物体 其高度大于我屏幕要求的垂直分辨率

出于某种原因, Windows 不允许窗体的可见( 客户? ) 区域超过屏幕分辨率, 所以垂直滚动条出现在我的窗体上 。

我将如何获得整个窗体的 TBitmap 图像或屏幕截图( 没有滚动条, 所有窗体组件都可见), 以使窗体的所有内容都可见?

最佳回答

首先,您必须确定窗体没有滚动条。 为此您可以写入一个“ 窗体控制恢复” 事件处理器, 并根据您的需求对 MaxWidth 和 MaxH8 进行调整。 如果在设计过程中对窗体大小进行限制, 请将窗体创建事件所需的宽度和高度设定为理想值 。

现在您可以使用 GetFormimage 来获取屏幕截图 。

问题回答

暂无回答




相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签