5 Set Obj = WScript.CreateObject("SeraphyScriptTools.Instance")
6 WScript.ConnectObject Obj.MainFrame,"Main_"
11 .Button("Create New Frame").SetID(50)
13 .SetPlacement ,,300,150
14 .Open "SeraphyScriptTools Test1"
19 WScript.DisconnectObject Obj.MainFrame
21 '---------------------------------------------------------
22 '
\81@
\83C
\83x
\83\93\83g
\83n
\83\93\83h
\83\89
25 set ev = Obj.MainFrame.Event
26 if(ev.Parameter = 50) then
33 set ev = Obj.MainFrame.Event
37 '---------------------------------------------------------
38 '
\83T
\83u
\83E
\83B
\83\93\83h
\83E
\82Ì
\83N
\83\89\83X
\92è
\8b`
45 private sub class_initialize
46 set wnd = Obj.MainFrame.CreateChild
47 color = int(Rnd() * &hFFFFFF)
48 fillcolor = int(Rnd() * &hFFFFFF)
49 fontcolor = int(Rnd() * &hFFFFFF)
53 .SetPlacement ,,150,150
58 .BackColor = int(Rnd() * &hFFFFFF)
59 .Open "SUBFRAME " & count
62 Private Sub Class_Terminate
67 width = wnd.innerwidth
68 height = wnd.innerheight
69 With wnd.Canvas.Layer(0)
73 .fillcolor = fillcolor
74 .fontcolor = fontcolor
75 .FillCircle width/2,height/2,width/2
76 .Text width/2,height/2,"No." & this_count
77 .Text 0,height,width & "," & height
82 '---------------------------------------------------------
83 '
\95â
\8f\95\83T
\83u
\83\8b\81[
\83`
\83\93
88 set child = new ChildWnd