制作从屏幕右下角逐渐弹出的消息提示框[5]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 nhconch 的 blog

    releasecapture;
    perform(wm_syscommand, $f002, 0);
end;

//下面代码判断鼠标所在位置,并改变鼠标光标,提示用户可以拖动窗体或改变大小
procedure tfrmpshotkey.imgtitlebarmousemove(sender: tobject;
  shift: tshiftstate; x, y: integer);
begin
    if x < 5 then imgtitlebar.cursor := crsizenwse
    else if x > width - 5 then imgtitlebar.cursor := crsizenesw
    else if y < 3 then imgtitlebar.cursor := crsizens
    else imgtitlebar.cursor := crsizeall;
end;

procedure tfrmpshotkey.label11mousemove(sender: tobject;
  shift: tshiftstate; x, y: integer);
begin
    if x < 5 then label11.cursor := crsizenesw
    else if x > width - 5 then label11.cursor := crsizenwse
    else label11.cursor := crsizens;
end;

end.

本文关键:制作从屏幕右下角逐渐弹出的消息提示框
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top