Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There is one limitation with this feature. The BeforeEdit event will not fire when the control gets focus. During tests, firing this event while getting focus would cause OI to remove and reset focus over and over until the control hung. Therefore, the logic for firing the event during GotFocus was removed. Instead, you can use the table's GotFocus event to capture edit mode, assuming of course your cells' CellEditMode properties are all the "Edit" mode.

Example

Code Block
 TransferTransfer Param1 to Cell 
Transfer Param2 to Reason 

 // When a user double clicks to edit a cell, display a custom edit window 
If Reason _EQC "Double Click" then 
    
   // Cancel the normal edit mode 
   Call Set_Property(CtrlEntId, "OLE.Cancel", 1) 
    
   // Use our own 
   Call Show_Custom_Edit_Window(CtrlEntId, Cell) 
    
 endend

See Also

BeforeUpdateAfterUpdatePosChangedPosChanging