- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
前几天,我开始在Delphi中玩不同的视觉效果,并在使用Aero Glass效果时遇到了问题(我安装了Delphi 2010):当我将按钮放在玻璃上时,该按钮的某些部分(或其他一些元素)燃烧并变得透明。我不知道为什么,但我尝试在其他计算机上执行相同的示例。并且这个错误重复出现。
有错误的屏幕截图;第二个按钮的标题是透明的:
我的示例程序:
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
<小时/>
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
end.
object Form1: TForm1
Left = 0
Top = 0
Caption = 'Form1'
ClientHeight = 202
ClientWidth = 331
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
GlassFrame.Enabled = True
GlassFrame.Bottom = 50
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object Button1: TButton
Left = 64
Top = 153
Width = 175
Height = 41
Caption = 'Button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clMenuHighlight
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
TabOrder = 0
end
object Button2: TButton
Left = 64
Top = 73
Width = 175
Height = 41
Caption = 'Button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clMenuHighlight
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
TabOrder = 1
end
end
最佳答案
这是 Delphi 2010 对“玻璃”(使用 DWM 的航空组合)支持中的一个已知错误,我相信它已在 Delphi XE 中修复,我选择使用的解决方法是使用我自己的自定义 TButton 类类.
当我在 2010 年看到这个错误时,我向 Embarcadero 报告了这个错误,就像其他人一样,我似乎找不到 QC#(错误报告#),但建议的双缓冲解决方法对我来说是 Not Acceptable 。 TBitBtn
我相信并没有出现这个问题,这是我最简单的解决方法,尽管它还有其他问题。
Delphi 2010 中有很多玻璃问题。一般建议;升级德尔福。
关于带 Aero 玻璃的 Windows 版本的 Delphi 2010 按钮将文本变为白色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16019241/
大家好,我是 android/glass 开发的新手,所以如果我错了请纠正我。 我尝试创建一个很好的高频实时卡片。然而,当我关闭应用程序时,函数 surfaceDestroyed() 没有得到触发并且
我正在编写一些 C# 代码,我想在其中获取一个 2D 矩形并将其拆分为更小的 2D 多边形。我希望效果看起来像矩形是由玻璃制成的,并且在随机位置用锤子敲击它。我想知道是否有人知道一个好的算法来帮助我解
我有一个无边框、不可调整大小的 WPF 窗体(WindowStyle=None、AllowsTransparency=True、ResizeMode=NoResize),背景是半透明的。下面是在记事本
我想在使用 OpenGL(带着色器)的屏幕转换中做类似的事情。我一直在寻找一些教程或类似的东西,但没有任何效果。我怎样才能达到这种效果? 最佳答案 只是关于如何开始的一些想法.. 如果您确实从 3D
我在对半透明叠加 div 应用模糊效果时遇到问题。我希望 div 后面的所有内容都变得模糊,像这样: 这是一个不起作用的 jsfiddle:http://jsfiddle.net/u2y2091z/
我(终于!)找到了一种在玻璃上呈现 Windows.Forms 控件的方法,它似乎没有任何重大缺点,也没有任何大的实现时间。它的灵感来自 this article来自 Coded,它基本上解释了如何
基本上 在一个 Activity 中,我有一个 ListView。当我选择一个项目时,一个透明的 Activity 会以一个小框的形式打开。当此框出现时,您仍然可以查看之前的 Activity 屏幕,
我有许多在过去编写的实用程序,看起来非常过时。所以我最近开始让他们使用 Windows 主题,并希望加入一些 Aero 玻璃效果。 问题是,我不太确定合适的用途是什么。 IE7 和现在的 Firefo
我能否以某种方式禁用我的 WPF 应用程序窗口的玻璃/透明度? 注意:我不想禁用 Aero,只是禁用玻璃/透明度和我的窗口,而不是整个系统。 类似这样的东西(Enable Transparency 复
对于 Google Glass 应用程序,如何让您的应用程序在向下滑动到主玻璃菜单时优雅地退出? 在 MainActivity 中尝试这段代码: @Override protected
我有一个发布一对实时卡片的 Google Glass 应用程序。当我单击这些卡片时,它会将我带到 Activity 的 UI。我想做的是拦截其中一张卡片的点击,而不是将 View 更改为 Activi
有人知道,Google Glass 会支持 OpenGL ES 吗?如果是这样,它会是1.1吗? 2? WebGL? 我确信这可能必须在 GDK (GNDK?) 发布时使用,但有计划使其成为可能吗?
我有一个以 CardScrollView 作为 Activity 的应用程序。 Ok Glass => My App => Ok Glass => Next Page
我在 JFrame 玻璃 Pane 顶部放置了一个 JFilechooser。当我选择“查找”弹出窗口时,它似乎显示在 JFilechooser 后面。我不久前用网上找到的一个解决方案修复了这个问题,
我有一个简单的 Glass 应用程序,它使用 GDK 抓取一些文本并拍照。我可以轻松创建带有文本和照片的 LiveCard,但是当我尝试将实时卡片转换为静态卡片时,当我尝试将图像添加到卡片时出现空指针
我是一名优秀的程序员,十分优秀!