An event method sequence is executed when a form is opened. The specific sequence depends on the set of controls and data sources that are associated with the form.
Open a Form In this example, the user opens a form that contains a grid control, which is bound to a data source.
The executed events are distributed across two threads. The timing of event method execution between threads can vary.
The following table shows the sequence that event methods are executed in when a user opens a form.
| Method | Where | Thread number |
|---|---|---|
|
new |
Form |
|
|
init |
Form |
1 |
|
loadUserSetting |
Form |
2 |
|
run |
Form |
1 |
|
init |
Data source |
2 |
|
executeQuery |
Data source |
2 |
|
leaveRecord |
Data source |
2 |
|
leave |
Data source |
2 |
|
leaveRecord |
Data source |
2 |
|
firstField |
Form |
2 |
|
firstField |
Form |
1 |
本文介绍了当用户打开包含网格控件并绑定到数据源的表单时,事件方法的执行序列。这些事件方法分布在两个线程中执行,具体顺序取决于与表单关联的控件和数据源。
1万+

被折叠的 条评论
为什么被折叠?



