Difference between revisions of "Custom Delegates"
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 2: | Line 2: | ||
==Custom Delegates== | ==Custom Delegates== | ||
+ | |||
===Activate=== | ===Activate=== | ||
− | The delegate for the Activate event | + | The delegate for the Activate event. |
+ | |||
===After Data Changed=== | ===After Data Changed=== | ||
− | The delegate for the Changed event (after data is read) | + | The delegate for the Changed event (after data is read). |
+ | |||
===After Data Create=== | ===After Data Create=== | ||
− | The delegate for the AfterCreated event | + | The delegate for the AfterCreated event. |
+ | |||
===After Data Delete=== | ===After Data Delete=== | ||
− | The delegate for the AfterDelete event | + | The delegate for the AfterDelete event. |
+ | |||
===After Data Update=== | ===After Data Update=== | ||
− | The delegate for the AfterUpdate event | + | The delegate for the AfterUpdate event. |
+ | |||
===After Row Change=== | ===After Row Change=== | ||
+ | |||
===Before Data Create=== | ===Before Data Create=== | ||
− | The delegate for the BeforeCreated event | + | The delegate for the BeforeCreated event. |
+ | |||
===Before Data Delete=== | ===Before Data Delete=== | ||
− | The delegate for the BeforeDelete event | + | The delegate for the BeforeDelete event. |
+ | |||
===Before Data Update=== | ===Before Data Update=== | ||
− | The delegate for the BeforeUpdate event | + | The delegate for the BeforeUpdate event. |
+ | |||
===Change=== | ===Change=== | ||
− | The delegate for the Change event | + | The delegate for the Change event. |
+ | |||
===Click=== | ===Click=== | ||
+ | The delegate for the Click event. | ||
+ | |||
===Collapsed=== | ===Collapsed=== | ||
− | The delegate for the Collapsed event | + | The delegate for the Collapsed event. |
+ | |||
===Context Menu=== | ===Context Menu=== | ||
+ | |||
===Custom footer menu=== | ===Custom footer menu=== | ||
− | The delegate for the footer menu event | + | The delegate for the footer menu event. |
See [[Section Footers]] | See [[Section Footers]] | ||
+ | |||
===Custom library=== | ===Custom library=== | ||
− | The filename of the library containing code for event handlers and custom procedures/functions | + | The filename of the library containing code for event handlers and custom procedures/functions. |
+ | |||
===Custom search command=== | ===Custom search command=== | ||
− | The delegate for the search event | + | The delegate for the search event. |
+ | |||
===Custom section menu=== | ===Custom section menu=== | ||
− | The delegate for the section menu event | + | The delegate for the section menu event. |
See [[Section Menus]] | See [[Section Menus]] | ||
+ | |||
===Data Changed=== | ===Data Changed=== | ||
+ | |||
===Deactivate=== | ===Deactivate=== | ||
− | The delegate for the Deactivate event | + | The delegate for the Deactivate event. |
+ | |||
===Default Action=== | ===Default Action=== | ||
+ | |||
===Destroy=== | ===Destroy=== | ||
− | The delegate for the Destroy event | + | The delegate for the Destroy event. |
+ | |||
===Dialog button delegate=== | ===Dialog button delegate=== | ||
The delegate for the DialogButtonClicked event. If a dialogbutton on a Field has no delegate, the Section delegate will be called. If the section has no delegate, then the Page delegate will be called. | The delegate for the DialogButtonClicked event. If a dialogbutton on a Field has no delegate, the Section delegate will be called. If the section has no delegate, then the Page delegate will be called. | ||
+ | |||
===Double click=== | ===Double click=== | ||
− | The delegate for the row DoubleClicked event | + | The delegate for the row DoubleClicked event. |
+ | |||
===Enabled When=== | ===Enabled When=== | ||
− | The delegate for the EnabledWhen event | + | The delegate for the EnabledWhen event. |
+ | |||
===Expanded=== | ===Expanded=== | ||
− | The delegate for the Expanded event | + | The delegate for the Expanded event. |
+ | |||
===Gestures=== | ===Gestures=== | ||
+ | The catch all delegate for the Gestures event. | ||
+ | |||
===Got Focus=== | ===Got Focus=== | ||
+ | |||
===Hotkey=== | ===Hotkey=== | ||
+ | |||
===Inactive=== | ===Inactive=== | ||
+ | |||
====Inactive interval==== | ====Inactive interval==== | ||
+ | |||
===Init=== | ===Init=== | ||
− | The delegate for the Init event | + | The delegate for the Init event. |
+ | |||
===Interactive Change=== | ===Interactive Change=== | ||
The delegate for the InteractiveChange event. This is called after each key is pressed. | The delegate for the InteractiveChange event. This is called after each key is pressed. | ||
+ | |||
===Instant Search=== | ===Instant Search=== | ||
+ | |||
===Link Click=== | ===Link Click=== | ||
− | The delegate for the Hyperlink/Button Click event. This is called with two arguments: functionname(controlsource,text) | + | The delegate for the Hyperlink/Button Click event. |
+ | |||
+ | This is called with two arguments: functionname(controlsource,text). | ||
+ | |||
===Load=== | ===Load=== | ||
− | The delegate for the Load event | + | The delegate for the Load event. |
+ | |||
===Lost Focus=== | ===Lost Focus=== | ||
+ | The delegate for the LostFocus event. | ||
+ | |||
===Middle Click=== | ===Middle Click=== | ||
+ | The delegate for the MiddleClick event. | ||
+ | |||
===Mouse Down=== | ===Mouse Down=== | ||
+ | The delegate for the MouseDown event. | ||
+ | |||
===Mouse Enter=== | ===Mouse Enter=== | ||
+ | The delegate for the MouseEnter event. | ||
+ | |||
===Mouse Leave=== | ===Mouse Leave=== | ||
+ | The delegate for the MouseLeave event. | ||
+ | |||
===Mouse Move=== | ===Mouse Move=== | ||
+ | The delegate for the MouseMove event. | ||
+ | |||
===Mouse Up=== | ===Mouse Up=== | ||
+ | The delegate for the MouseUp event. | ||
+ | |||
===Pan gesture=== | ===Pan gesture=== | ||
+ | The Pan gesture delegate. | ||
+ | |||
===Parent data changed=== | ===Parent data changed=== | ||
− | The delegate for the ParentDataChanged event | + | The delegate for the ParentDataChanged event. |
+ | |||
===Pinch gesture=== | ===Pinch gesture=== | ||
+ | The Pinch gesture delegate. | ||
+ | |||
===Ready=== | ===Ready=== | ||
− | The delegate for the Ready event | + | The delegate for the Ready event. |
+ | |||
===Refresh=== | ===Refresh=== | ||
− | The delegate for the Refresh event | + | The delegate for the Refresh event. |
+ | |||
===Resize=== | ===Resize=== | ||
+ | The delegate for the Resize event. | ||
+ | |||
+ | Advanced Canvas Controls. | ||
+ | |||
===Resized=== | ===Resized=== | ||
+ | The delegate for the Resized event. | ||
+ | |||
+ | Canvas Section. | ||
+ | |||
===Scripting language=== | ===Scripting language=== | ||
− | The default scripting language for custom code in this section (Inherit | Recital | Visual FoxPro | Python | JavaScript | PHP) | + | The default scripting language for custom code in this section (Inherit | Recital | Visual FoxPro | Python | JavaScript | PHP). |
+ | |||
===Selection Changed=== | ===Selection Changed=== | ||
− | The delegate for the Selection Changed event (for multi row selection) | + | The delegate for the Selection Changed event (for multi row selection). |
+ | |||
===Sort=== | ===Sort=== | ||
− | The delegate for the column Sort event fired when the header is clicked. This is called with two arguments: nColumn, nDirection | + | The delegate for the column Sort event fired when the header is clicked. This is called with two arguments: nColumn, nDirection. |
+ | |||
===Swipe down gesture=== | ===Swipe down gesture=== | ||
+ | The Swipe Down gesture delegate. | ||
+ | |||
===Swipe left gesture=== | ===Swipe left gesture=== | ||
+ | The Swipe Left gesture delegate. | ||
+ | |||
===Swipe right gesture=== | ===Swipe right gesture=== | ||
+ | The Swipe Right gesture delegate. | ||
+ | |||
===Swipe up gesture=== | ===Swipe up gesture=== | ||
+ | The Swipe Up gesture delegate. | ||
+ | |||
===Tap gesture=== | ===Tap gesture=== | ||
+ | The Tap gesture delegate. | ||
+ | |||
===Tap and hold gesture=== | ===Tap and hold gesture=== | ||
+ | The Tap and Hold gesture delegate. | ||
+ | |||
===Timer=== | ===Timer=== | ||
− | The delegate for the Timer event | + | The delegate for the Timer event. |
+ | |||
====Timer interval==== | ====Timer interval==== | ||
− | The timer interval in seconds that the Timer event will be called at runtime | + | The timer interval in seconds that the Timer event will be called at runtime. |
+ | |||
===Unload=== | ===Unload=== | ||
− | The delegate for the Unload event | + | The delegate for the Unload event. |
+ | |||
===Valid When=== | ===Valid When=== | ||
− | The delegate for the ValidWhen event | + | The delegate for the ValidWhen event. |
+ | |||
===Visible When=== | ===Visible When=== | ||
− | The delegate for the VisibleWhen event | + | The delegate for the VisibleWhen event. |
Revision as of 07:52, 10 February 2016
Under Construction
Contents
- 1 Custom Delegates
- 1.1 Activate
- 1.2 After Data Changed
- 1.3 After Data Create
- 1.4 After Data Delete
- 1.5 After Data Update
- 1.6 After Row Change
- 1.7 Before Data Create
- 1.8 Before Data Delete
- 1.9 Before Data Update
- 1.10 Change
- 1.11 Click
- 1.12 Collapsed
- 1.13 Context Menu
- 1.14 Custom footer menu
- 1.15 Custom library
- 1.16 Custom search command
- 1.17 Custom section menu
- 1.18 Data Changed
- 1.19 Deactivate
- 1.20 Default Action
- 1.21 Destroy
- 1.22 Dialog button delegate
- 1.23 Double click
- 1.24 Enabled When
- 1.25 Expanded
- 1.26 Gestures
- 1.27 Got Focus
- 1.28 Hotkey
- 1.29 Inactive
- 1.30 Init
- 1.31 Interactive Change
- 1.32 Instant Search
- 1.33 Link Click
- 1.34 Load
- 1.35 Lost Focus
- 1.36 Middle Click
- 1.37 Mouse Down
- 1.38 Mouse Enter
- 1.39 Mouse Leave
- 1.40 Mouse Move
- 1.41 Mouse Up
- 1.42 Pan gesture
- 1.43 Parent data changed
- 1.44 Pinch gesture
- 1.45 Ready
- 1.46 Refresh
- 1.47 Resize
- 1.48 Resized
- 1.49 Scripting language
- 1.50 Selection Changed
- 1.51 Sort
- 1.52 Swipe down gesture
- 1.53 Swipe left gesture
- 1.54 Swipe right gesture
- 1.55 Swipe up gesture
- 1.56 Tap gesture
- 1.57 Tap and hold gesture
- 1.58 Timer
- 1.59 Unload
- 1.60 Valid When
- 1.61 Visible When
- 2 Event Sequences
- 3 Other Delegates
- 4 Inline Delegates
Custom Delegates
Activate
The delegate for the Activate event.
After Data Changed
The delegate for the Changed event (after data is read).
After Data Create
The delegate for the AfterCreated event.
After Data Delete
The delegate for the AfterDelete event.
After Data Update
The delegate for the AfterUpdate event.
After Row Change
Before Data Create
The delegate for the BeforeCreated event.
Before Data Delete
The delegate for the BeforeDelete event.
Before Data Update
The delegate for the BeforeUpdate event.
Change
The delegate for the Change event.
Click
The delegate for the Click event.
Collapsed
The delegate for the Collapsed event.
Context Menu
The delegate for the footer menu event.
See Section Footers
Custom library
The filename of the library containing code for event handlers and custom procedures/functions.
Custom search command
The delegate for the search event.
The delegate for the section menu event.
See Section Menus
Data Changed
Deactivate
The delegate for the Deactivate event.
Default Action
Destroy
The delegate for the Destroy event.
Dialog button delegate
The delegate for the DialogButtonClicked event. If a dialogbutton on a Field has no delegate, the Section delegate will be called. If the section has no delegate, then the Page delegate will be called.
Double click
The delegate for the row DoubleClicked event.
Enabled When
The delegate for the EnabledWhen event.
Expanded
The delegate for the Expanded event.
Gestures
The catch all delegate for the Gestures event.
Got Focus
Hotkey
Inactive
Inactive interval
Init
The delegate for the Init event.
Interactive Change
The delegate for the InteractiveChange event. This is called after each key is pressed.
Instant Search
Link Click
The delegate for the Hyperlink/Button Click event.
This is called with two arguments: functionname(controlsource,text).
Load
The delegate for the Load event.
Lost Focus
The delegate for the LostFocus event.
Middle Click
The delegate for the MiddleClick event.
Mouse Down
The delegate for the MouseDown event.
Mouse Enter
The delegate for the MouseEnter event.
Mouse Leave
The delegate for the MouseLeave event.
Mouse Move
The delegate for the MouseMove event.
Mouse Up
The delegate for the MouseUp event.
Pan gesture
The Pan gesture delegate.
Parent data changed
The delegate for the ParentDataChanged event.
Pinch gesture
The Pinch gesture delegate.
Ready
The delegate for the Ready event.
Refresh
The delegate for the Refresh event.
Resize
The delegate for the Resize event.
Advanced Canvas Controls.
Resized
The delegate for the Resized event.
Canvas Section.
Scripting language
The default scripting language for custom code in this section (Inherit | Recital | Visual FoxPro | Python | JavaScript | PHP).
Selection Changed
The delegate for the Selection Changed event (for multi row selection).
Sort
The delegate for the column Sort event fired when the header is clicked. This is called with two arguments: nColumn, nDirection.
Swipe down gesture
The Swipe Down gesture delegate.
Swipe left gesture
The Swipe Left gesture delegate.
Swipe right gesture
The Swipe Right gesture delegate.
Swipe up gesture
The Swipe Up gesture delegate.
Tap gesture
The Tap gesture delegate.
Tap and hold gesture
The Tap and Hold gesture delegate.
Timer
The delegate for the Timer event.
Timer interval
The timer interval in seconds that the Timer event will be called at runtime.
Unload
The delegate for the Unload event.
Valid When
The delegate for the ValidWhen event.
Visible When
The delegate for the VisibleWhen event.
Event Sequences
Loading an App
Init
Load
Ready
Activate
Closing an App
Editing an existing record
Adding a new record
Deleting a record
Other Delegates
CatalogView Section
Caption delegate
The inline delegate to invoke when the caption is clicked.
Custom library
Custom library containing the Tile producer delegate.
Read more delegate
The inline delegate to invoke when the 'Read more' link is clicked. Alternatively, the 'Click' delegate can be used.
Tile producer
Delegate to call to render a custom tile. This should just output the HTML.
Custom search panel
Add delegate
Specify a delegate to call when the 'Add' icon is clicked.
Note that you can use an 'inline' delegate like this: $("section:yoursectionid?action=add")
Delete delegate
Specify a delegate to call when the 'Delete' icon is clicked.
Note that you can use an 'inline' delegate like this: $("section:yoursectionid?action=delete")
Selection delegate
Specify a delegate to call when a row is clicked.
Note that you can use an 'inline' delegate like this: $("section:yoursectionid?action=search&text={}").
Notice how {} is used to substitute the value of the item selected.
Org Chart Custom delegate library
See Org Chart Options: Custom delegate library