Difference between revisions of "Custom Delegates"

From Lianjapedia
Jump to: navigation, search
Line 20: Line 20:
 
===Change===
 
===Change===
 
The delegate for the Change event
 
The delegate for the Change event
 +
===Click===
 
===Collapsed===
 
===Collapsed===
 
The delegate for the Collapsed event
 
The delegate for the Collapsed event
 +
===Context Menu===
 
===Custom footer menu===
 
===Custom footer menu===
 
The delegate for the footer menu event
 
The delegate for the footer menu event
Line 34: Line 36:
  
 
See [[Section Menus]]
 
See [[Section Menus]]
 +
===Data Changed===
 
===Deactivate===
 
===Deactivate===
 
The delegate for the Deactivate event
 
The delegate for the Deactivate event
Line 46: Line 49:
 
===Expanded===
 
===Expanded===
 
The delegate for the Expanded event
 
The delegate for the Expanded event
 +
===Got Focus===
 +
===Hotkey===
 +
===Inactive===
 +
====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===
 
===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===
 
===Parent data changed===
 
===Parent data changed===
 
The delegate for the ParentDataChanged event
 
The delegate for the ParentDataChanged event
Line 68: Line 77:
 
===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===
Line 85: Line 94:
 
Ready
 
Ready
 
Activate
 
Activate
 +
 +
===Closing an App===
  
 
===Navigating between records===
 
===Navigating between records===
Line 91: Line 102:
  
 
===Adding a new record===
 
===Adding a new record===
 +
 +
===Deleting a record===

Revision as of 12:45, 9 February 2016

Under Construction

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

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

Collapsed

The delegate for the Collapsed event

Context Menu

Custom footer 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

Custom section menu

The delegate for the section menu event

See Section Menus

Data Changed

Deactivate

The delegate for the Deactivate event

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

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

Parent data changed

The delegate for the ParentDataChanged event

Ready

The delegate for the Ready event

Refresh

The delegate for the Refresh event

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

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

Navigating between records

Editing an existing record

Adding a new record

Deleting a record