回复 17楼 山狼LS
程序代码:
CLEAR ALL oForm = CREATEOBJECT("C_Form") WITH oForm .Caption = "山狼的圖片測試" .WindowState = 2 .MinButton = .F. .MaxButton = .F. .AutoCenter = .T. .Show ENDWITH READ EVENTS CLEAR ALL RETURN DEFINE CLASS C_Form AS Form ADD OBJECT Image1 AS Image WITH Picture = "20150917_7c77d689921f492e1636kLCLvrxp8GiJ.gif", BackStyle = 1 && 老虎 ADD OBJECT Image2 AS Image WITH Picture = "20150917_4cbe3a73caa6d3f431e7PoP3SWL2E8gi.gif", BackStyle = 0 && 鳳凰 ADD OBJECT Image3 AS Image WITH Picture = "20150918_05a28456cb49453920cf6Lz6hErPPhx7.jpg.gif", BackStyle = 1 && 雀 ADD OBJECT Timer1 AS Timer WITH Interval = 1000 PROCEDURE Activate WITH This.Image1 .Top = 5 .Left = This.Width - .Width - 5 ENDWITH WITH This.Image2 .Top = This.Height - .Height - 5 .Left = 5 ENDWITH WITH This.Image3 .Top = (This.Height - .Height) / 2 .Left = (THis.Width - .Width) / 2 ENDWITH ENDPROC PROCEDURE Destroy CLEAR EVENTS ENDPROC ENDDEFINE
授人以渔,不授人以鱼。