| 1014 | } |
| 1015 | |
| 1016 | sp<Control> Control::copyTo(sp<Control> CopyParent) |
| 1017 | { |
| 1018 | sp<Control> copy; |
| 1019 | if (CopyParent) |
| 1020 | { |
| 1021 | copy = CopyParent->createChild<Control>(takesFocus); |
| 1022 | } |
| 1023 | else |
| 1024 | { |
| 1025 | copy = mksp<Control>(takesFocus); |
| 1026 | } |
| 1027 | copyControlData(copy); |
| 1028 | return copy; |
| 1029 | } |
| 1030 | |
| 1031 | void Control::copyControlData(sp<Control> CopyOf) |
| 1032 | { |