如何模拟一个象窗体一样的控件(标题栏、焦点、拖动、改变大小、关闭等等)[4]

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

本文简介:选择自 sor 的 blog

    elseif (cmdback.width - x <= 60 and cmdback.height - y <= 60) then
        cmdback.mousepointer = 8
    elseif (x <= 60 and cmdback.height - y <= 60) then
        cmdback.mousepointer = 6
    elseif (y <= 60 and cmdback.width - x <= 60) then
        cmdback.mousepointer = 6
    elseif y <= 60 and x > 60 and cmdback.width - x > 60 then
        cmdback.mousepointer = 7
    elseif cmdback.height - y <= 60 and x > 60 and cmdback.width - x > 60 then
        cmdback.mousepointer = 7
    elseif x <= 60 and y > 60 and cmdback.height - y > 60 then
        cmdback.mousepointer = 9
    elseif cmdback.width - x <= 60 and y > 60 and cmdback.height - y > 60 then
        cmdback.mousepointer = 9
    end if
end sub

本文关键:可变大小的控件
 

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

go top