BindingSource PoistionChanged

Posted by Roger Blanchard on 04-Feb-2009 11:57

Does anyone know if this event can be forced to fire via the ABL?

I tried:

PUBLISH OnPositionChanged (NEW System.EventArgs()) FROM bindingsource1.

All Replies

Posted by Admin on 04-Feb-2009 12:00

bindingSource1:OnPositionChanged (NEW System.EventArgs())

Posted by Roger Blanchard on 04-Feb-2009 12:03

I tried that as well and it fails on syntax check with:

Protected element 'OnPositionChanged' may only be accessed from within its class hierarchy (12926)

Posted by Admin on 04-Feb-2009 12:07

Ah. Damn. If that's relevant to you, you mifght try to create a class inherriting from the ProBindingSource and create a public method that uses the OnPositionChanged method to publish...

Adding the custom ProBindingSource to the Toolbox requires manually adding it to the Toolbox.xml file (the add control dialog does not list ABL components, just ABL controls).

Please let us know, if that has side-effects.

This thread is closed