- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何改 rebase 于 TWinControl 的控件的不透明度?为什么他们不将此功能添加到 TControl/TWinControl 级别(为什么只添加到 TForm)?
最佳答案
控制窗口的不透明度由称为分层窗口 的功能提供。你可以read more about the feature on MSDN .该功能仅适用于顶级 窗口。据我所知,Desktop Window Manager (Vista 的“玻璃”效果)也仅适用于顶层窗口。
可用于子窗口的替代方法是使用 window regions将窗口的某些区域标记为完全透明,或使用 bitmap alpha blending自己绘制整个控件。
关于delphi - TWinControl 的不透明度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1636132/
我喜欢“覆盖”TWinControl.CNKeyDown,将 Enter 键用作 Tab,而不修改原始 VCL 源。我也这样做,使用 SetFocus,效果很好。 辅助类型声明为: type T
如何改 rebase 于 TWinControl 的控件的不透明度?为什么他们不将此功能添加到 TControl/TWinControl 级别(为什么只添加到 TForm)? 最佳答案 控制窗口的不透
我面临着必须拦截和处理 WM_GETOBJECT 的艰巨任务。每当发送到表单上的任何 TWinControl 时都会发送消息。 每个面板 每个嵌套面板 每个编辑框 每个组合框 每个按钮 每个工具栏 每
我想将已发布的属性添加到 TWinControl 中。有没有办法在不需要重新编译基本源代码的情况下做到这一点? 如果没有,有什么方法可以重新编译基本源代码而不用太麻烦? 感谢您的建议... 因新想法而
我正在创建一个 Delphi 服务。有没有办法在服务中使用从 TWinControl 派生的控件?最终,我放置在它上面的控件和任何控件都将保存到位图。但是我尝试的任何操作都会出现“控件没有父窗口”错误
使用伪函数进行子类化: CreateSpecialHandle(TWinControl *Control, const TCreateParams &Params, const AnsiString
谁能告诉我为什么第二次转换在 Delphi 7 中编译失败? var WebBrowser: TWebBrowser; begin WebBrowser := TWebBrowser.Crea
想象一下,您想要分配自己的事件过程: procedure TSuperObject.DoSomething(Sender: TObject; Button: TMouseButton; Shift:
我需要将焦点设置在 TEdit 控件上。通常,我在检查控件是否可以聚焦后使用TWinControl.SetFocus。最近,我注意到TCustomForm类提供了SetFocusedControl函数
我有这个代码: procedure TForm1.FormCreate(Sender: TObject); begin DoSomethingWithCombobox(ComboBox1.Hand
我试图在 TWinControl 中显示自定义提示,但我不知道如何获取它的位置。 使用位置 0,0 在屏幕顶部(窗口外)显示提示,所以我猜它一定是屏幕上控件的位置。 编辑: 我发现 TControl
我有一个高度多线程的 Delphi 6 应用程序。我创建了一个源自 TWinControl 的组件。当我第一次构建它时,我使用了一个隐藏窗口,它是 WndProc 来处理消息,并使用 Allocate
我是一名优秀的程序员,十分优秀!