Ignore:
Timestamp:
Aug 24, 2008, 5:28:59 PM (16 years ago)
Author:
イグトランス (egtra)
Message:

サブクラス化機構(Control.Attach)の整備

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/ActiveBasic/Windows/UI/MakeControlEventHandler.ab

    r559 r615  
    4646'   out.WriteLine(Ex"\t@brief " & comment)
    4747'   out.WriteLine(Ex"\t*/")
    48     out.WriteLine(Ex"\t" & staticKeyword & "Sub On" & eventName & "(e As " & argsType & ")")
     48    out.WriteLine(Ex"\t" & staticKeyword & "Function On" & eventName & "(e As " & argsType & ") As Boolean")
    4949    out.WriteLine(Ex"\t\tIf Not IsNothing(" & eventMember & ") Then")
    5050    out.WriteLine(Ex"\t\t\t" & eventMember & "(This, e)")
     51    out.WriteLine(Ex"\t\t\tReturn True")
    5152    out.WriteLine(Ex"\t\tEnd If")
    52     out.WriteLine(Ex"\tEnd Sub")
     53    out.WriteLine(Ex"\tEnd Function")
    5354    out.WriteLine("Private")
    5455    out.WriteLine(Ex"\t" & staticKeyword & eventMember & " As " & handlerType)
     
    7273                Dim a = ActiveBasic.Strings.Detail.Split(s, 9) 'Tab
    7374                If a.Count >= 3 Then
    74                     OutputEventHandlerCode(out, a[0], a[1], a[2], isStatic)
     75                    OutputEventHandlerCode(out, a.Item[0], a.Item[1], a.Item[2], isStatic)
    7576                End If
    7677            Loop
Note: See TracChangeset for help on using the changeset viewer.