361 |
|
|
362 |
if(toolkitWindow == null) |
if(toolkitWindow == null) |
363 |
{ |
{ |
364 |
CreateHandle(); |
CreateControl(); |
365 |
} |
} |
366 |
|
|
367 |
lock(this) // this may not be necessary |
lock(this) // this may not be necessary |
2497 |
|
|
2498 |
public void Invalidate(Region region, bool invalidateChildren) |
public void Invalidate(Region region, bool invalidateChildren) |
2499 |
{ |
{ |
2500 |
if (toolkitWindow == null || !Visible) |
if (!Visible) |
2501 |
{ |
{ |
2502 |
return; |
return; |
2503 |
} |
} |
2504 |
|
|
2505 |
|
if (toolkitWindow == null) |
2506 |
|
{ |
2507 |
|
if ((parent == null) || (!parent.IsHandleCreated)) |
2508 |
|
{ |
2509 |
|
return; |
2510 |
|
} |
2511 |
|
|
2512 |
|
CreateControl (); |
2513 |
|
} |
2514 |
|
|
2515 |
using (Region region1 = region.Clone()) |
using (Region region1 = region.Clone()) |
2516 |
{ |
{ |
2517 |
InvalidateInternal(region1, invalidateChildren); |
InvalidateInternal(region1, invalidateChildren); |
2566 |
{ |
{ |
2567 |
if(toolkitWindow == null) |
if(toolkitWindow == null) |
2568 |
{ |
{ |
2569 |
CreateHandle(); |
CreateControl(); |
2570 |
} |
} |
2571 |
toolkitWindow.Invalidate(b.X, b.Y, b.Width, b.Height); |
toolkitWindow.Invalidate(b.X, b.Y, b.Width, b.Height); |
2572 |
} |
} |
5157 |
protected virtual void OnParentVisibleChanged(EventArgs e) |
protected virtual void OnParentVisibleChanged(EventArgs e) |
5158 |
{ |
{ |
5159 |
bool parentVisible = parent.Visible; |
bool parentVisible = parent.Visible; |
5160 |
if((!parentVisible && visible) != (parentVisible && visible)) |
OnVisibleChanged(e); |
|
{ |
|
|
OnVisibleChanged(e); |
|
|
} |
|
5161 |
} |
} |
5162 |
internal virtual void OnPrimaryEnter(EventArgs e) |
internal virtual void OnPrimaryEnter(EventArgs e) |
5163 |
{ |
{ |