如上,一解决就结贴
谢谢
谢谢
解决方案 »
- delphi中怎样连接加密的access数据库??????急等
- 在Delphi,我如何将integer的值转化成16进制的阿,
- 怎么得到TStringGrid中选中行的行号?
- 采用SocketConnection连接的一个重大问题!!!
- 请各位高手邦忙!!!一个delphi7与mysql的问题
- 怎样将txt格式的文件导入到数据库中?
- 关于DELPHI的两个小问题
- 有没有一种软件可以防止硬盘上的文件不被删除?
- 急需--机房管理程序!
- delphi2007的代码升级到delphi xe2问题多多
- 如何将TreeView中单个节点保存为单独的文件?
- 如何得到一个txt file的行数 , 如何一行一行的读出来
var
G: TGraphic;
begin
if AutoSize and (Picture.Width > 0) and (Picture.Height > 0) then
SetBounds(Left, Top, Picture.Width, Picture.Height);
G := Picture.Graphic;
if G <> nil then
begin
if not ((G is TMetaFile) or (G is TIcon)) then
G.Transparent := FTransparent;
if (not G.Transparent) and Stretch and not Proportional then
ControlStyle := ControlStyle + [csOpaque]
else // picture might not cover entire clientrect
ControlStyle := ControlStyle - [csOpaque];
if DoPaletteChange and FDrawing then Update;
end
else ControlStyle := ControlStyle - [csOpaque];
if not FDrawing then Invalidate;
end;重点注意ControlStyle := ControlStyle + [csOpaque]所以可设置Transparent:=False,Proportional:=False,Stretch:=True即可达到你要的效果
等加载完了再设置为TRUE
还有没有什么啊?
我是新手
可不可以在详细的解释一下上边你说的
“如果控件的 ComponentStyle 属性集合没有包含 csOpaque 的话,呼叫 Invalidate方法时 会导致元件的背景先被擦掉再重绘。”
谢谢