Ignore:
Timestamp:
Mar 12, 2008, 9:54:46 PM (16 years ago)
Author:
イグトランス (egtra)
Message:

実験として書いていたControlクラスを追加(せめてコミット前に既存のContorolに混ぜようとしたがコンパイルできなかった)。
ほかForms, Drawing及びGDI+の修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/System/Windows/Forms/Control.ab

    r461 r473  
    113113    End Sub
    114114
    115     Const Function Bounds() As Rectangle
     115    Const Function Bounds() As Drawing.Rectangle
    116116        Dim wr As RECT
    117117        wr = wnd.WindowRect
    118         Dim r = New Rectangle(wr)
     118        Dim r = New Drawing.Rectangle(wr)
    119119        Dim parent = Parent
    120120        If Object.ReferenceEquals(parent, Nothing) Then
    121             Return parent->RectangleToClient(r)
     121            Return parent.RectangleToClient(r)
    122122        Else
    123123            Return r
     
    129129    End Sub
    130130*/
    131     Const Function Location() As Point
     131    Const Function Location() As Drawing.Point
    132132        Return Bounds.Location
    133133    End Function
     
    137137    End Sub
    138138*/
    139     Const Function Size() As Size
     139    Const Function Size() As Drawing.Size
    140140        Return Bounds.Size
    141141    End Function
     
    213213    End Function
    214214*/
    215     Const Function RectangleToScreen(r As Rectangle) As Rectangle
     215    Const Function RectangleToScreen(r As Drawing.Rectangle) As Drawing.Rectangle
    216216        Dim rc = r.ToRECT
    217217        wnd.ClientToScreen(rc)
    218         Return New Rectangle(rc)
    219     End Function
    220 
    221     Const Function RectangleToClient(r As Rectangle) As Rectangle
     218        Return New Drawing.Rectangle(rc)
     219    End Function
     220
     221    Const Function RectangleToClient(r As Drawing.Rectangle) As Drawing.Rectangle
    222222        Dim rc = r.ToRECT()
    223223        wnd.ScreenToClient(rc)
    224         Return New Rectangle(rc)
     224        Return New Drawing.Rectangle(rc)
    225225    End Function
    226226
     
    405405'   Virtual Function DefaultCursor() As Cursor
    406406
    407     Virtual Function DefaultSize() As Size
    408         Return New Size(300, 300)
     407    Virtual Function DefaultSize() As Drawing.Size
     408        Return New Drawing.Size(300, 300)
    409409    End Function
    410410
     
    543543    End Sub
    544544
    545     Virtual Sub NotifyInvalidate(r As Rectangle)
     545    Virtual Sub NotifyInvalidate(r As Drawing.Rectangle)
    546546        Dim rc As RECT
    547547        rc = r.ToRECT()
Note: See TracChangeset for help on using the changeset viewer.