projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make Up calls to control consistent so they are called at the end by derived classes
[platform/core/uifw/dali-toolkit.git]
/
docs
/
content
/
shared-javascript-and-cpp-documentation
/
creating-custom-controls.md
diff --git
a/docs/content/shared-javascript-and-cpp-documentation/creating-custom-controls.md
b/docs/content/shared-javascript-and-cpp-documentation/creating-custom-controls.md
index
a1451ee
..
24620d8
100644
(file)
--- a/
docs/content/shared-javascript-and-cpp-documentation/creating-custom-controls.md
+++ b/
docs/content/shared-javascript-and-cpp-documentation/creating-custom-controls.md
@@
-341,10
+341,10
@@
An up call to the Control class is necessary if these methods are overridden.
// C++
void MyUIControlImpl::OnChildAdd( Actor& child );
{
// C++
void MyUIControlImpl::OnChildAdd( Actor& child );
{
- // Up call to Control first
- Control::OnChildAdd( child );
-
// Do any other operations required upon child addition
// Do any other operations required upon child addition
+
+ // Up call to Control at the end
+ Control::OnChildAdd( child );
}
~~~
~~~{.cpp}
}
~~~
~~~{.cpp}
@@
-371,10
+371,10
@@
An up call to the Control class is necessary if these methods are overridden.
// C++
void MyUIControlImpl::OnStageConnection( int depth )
{
// C++
void MyUIControlImpl::OnStageConnection( int depth )
{
- // Up call to Control first
- Control::OnStageConnection( depth );
-
// Do any other operations required upon stage connection
// Do any other operations required upon stage connection
+
+ // Up call to Control at the end
+ Control::OnStageConnection( depth );
}
~~~
~~~{.cpp}
}
~~~
~~~{.cpp}