大富翁们救命,着急!急救!失业在家搞点小玩意,撞上老虎,透明窗体上生成Label显示不出来 (300分)

to lcl800
目的是使caption:=value,label色彩逐点变化
 
将按钮设置为不透明,显示正确吗
 
to lcl800
按钮只是暂时的
 
呵呵, 我这里有个小程序实现的你要求的效果(包括字体颜色渐变, 还会满屏跑)。
如果想要可以给你一份。
 
Pearl:也给我一份,好吗?谢谢!
lfpsoft@163.com
 
to pearl
先谢啦 Wangnen@sina.com
最主要能动态改变Lable.caption
 
to pearl
我今天sina打不开,我只看到列表中你给我发了,非常感谢,麻烦你给再发一次
 wangzhengneng@163.com
 
to pearl.
缺少 AdvStrCommFunc_1 有空再帮我看看,有结果请发wangnen@sina.com
exe运行不了,我没看出效果,可能和我要的功能有些差别,我最主要的目的就是在透明窗体
上改变Label.Caption
 
是否需要动画效果???
如果不需要已经OK了
 
to 天真
不需要的,能发给我看看吗,谢谢,我等了几天了,Wangnen@sina.com
 
花15分钟写了个demo, 运行起来就会在你的桌面当中出现一个庞大的红色数字时钟。 应该就是你要求的效果了。

pas文件:

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls;

type
TForm1 = class(TForm)
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;


var
Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.Timer1Timer(Sender: TObject);
var
s: string;
r, r1: HRGN;
Rct: TRect;
begin

s := formatdatetime('yyyy-mm-dd hh:nn:ss', now);
begin
path(canvas.handle);
textout(canvas.handle, 0, 0, pchar(s), length(s));
endpath(canvas.handle);
r1 := pathtoregion(canvas.handle);
getrgnbox(r1, rct);
r := createrectrgnindirect(rct);
combinergn(r, r, r1, RGN_DIFF);
deleteobject(r1);
setwindowrgn(handle, r, true);
end;


end.


dfm文件:
object Form1: TForm1
Left = 176
Top = 288
BorderStyle = bsNone
Caption = 'Form1'
ClientHeight = 109
ClientWidth = 688
Color = clRed
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -64
Font.Name = 'Times New Roman'
Font.Style = [fsBold]
OldCreateOrder = False
Position = poScreenCenter
PixelsPerInch = 96
TextHeight = 73
object Timer1: TTimer
OnTimer = Timer1Timer
Left = 152
Top = 88
end
end
 
离我的目的有些近了,非常感谢各位,有问题再请帮忙
 

Similar threads

I
回复
0
查看
564
import
I
回复
0
查看
251
小学生_hjz
顶部