Changeset 473 for trunk/Include/Classes/System/Windows
- Timestamp:
- Mar 12, 2008, 9:54:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Windows/Forms/Control.ab
r461 r473 113 113 End Sub 114 114 115 Const Function Bounds() As Rectangle115 Const Function Bounds() As Drawing.Rectangle 116 116 Dim wr As RECT 117 117 wr = wnd.WindowRect 118 Dim r = New Rectangle(wr)118 Dim r = New Drawing.Rectangle(wr) 119 119 Dim parent = Parent 120 120 If Object.ReferenceEquals(parent, Nothing) Then 121 Return parent ->RectangleToClient(r)121 Return parent.RectangleToClient(r) 122 122 Else 123 123 Return r … … 129 129 End Sub 130 130 */ 131 Const Function Location() As Point131 Const Function Location() As Drawing.Point 132 132 Return Bounds.Location 133 133 End Function … … 137 137 End Sub 138 138 */ 139 Const Function Size() As Size139 Const Function Size() As Drawing.Size 140 140 Return Bounds.Size 141 141 End Function … … 213 213 End Function 214 214 */ 215 Const Function RectangleToScreen(r As Rectangle) AsRectangle215 Const Function RectangleToScreen(r As Drawing.Rectangle) As Drawing.Rectangle 216 216 Dim rc = r.ToRECT 217 217 wnd.ClientToScreen(rc) 218 Return New Rectangle(rc)219 End Function 220 221 Const Function RectangleToClient(r As Rectangle) AsRectangle218 Return New Drawing.Rectangle(rc) 219 End Function 220 221 Const Function RectangleToClient(r As Drawing.Rectangle) As Drawing.Rectangle 222 222 Dim rc = r.ToRECT() 223 223 wnd.ScreenToClient(rc) 224 Return New Rectangle(rc)224 Return New Drawing.Rectangle(rc) 225 225 End Function 226 226 … … 405 405 ' Virtual Function DefaultCursor() As Cursor 406 406 407 Virtual Function DefaultSize() As Size408 Return New Size(300, 300)407 Virtual Function DefaultSize() As Drawing.Size 408 Return New Drawing.Size(300, 300) 409 409 End Function 410 410 … … 543 543 End Sub 544 544 545 Virtual Sub NotifyInvalidate(r As Rectangle)545 Virtual Sub NotifyInvalidate(r As Drawing.Rectangle) 546 546 Dim rc As RECT 547 547 rc = r.ToRECT()
Note:
See TracChangeset
for help on using the changeset viewer.