Joe Brown wrote:
> I'm trying to figure out how to load an image every time a new record
> populates a control.
> 
> Currently I have a filename column/control which I'm using to populate
> the image displayed.  But I need to know every time the record pointer
> changes.  
> 
> afterPointerMove doesn't appear to fire after a requery, so I'm calling
> the setImage method in two different events.
> 
> I really need not show the file name to the user, that needs to be
> transparent to them, so I suppose I really need to dig into the bizobj
> and keep track of the current record there.

Try binding to your form's RowNumChanged event:

self.Form.bindEvent(dabo.dEvents.RowNumChanged, self.onRowNumChanged)

def onRowNumChanged(self, evt):
        print "row changed"
        self.update()



-- 
pkm ~ http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to