On Thursday 30 May 2013 17:49:22 Med Hamza wrote: > Hi Martin > Is there a simple method to set in the procedure > onFocusedWidgetChanged(const oldwidget: twidget; const newwidget: > > my CurrentDatasource to newwidget.datalink.datasource > > Ex CurrentDs.dataset := classof(newwidget).datalink.datasource.dataset > What is the purpose? Maybe there is a better solution?
> All What I found is > > If newwidget is tdbwidgetgid then currentDs.dataset:= > tdbwidgetgrid(newwidgetgrid).dataliknk.datasource.dataset > ...... > ..... > if newwidget is tdb* then > ................................................... > " procedure tmainfo.fochaexe(const oldwidget: twidget; const newwidget: twidget); var datalink1: tdatalink; dataso1: tdatasource; begin if getclasspropvalue(newwidget,'datalink',tdatalink, tobject(datalink1)) then begin dataso1:= datalink1.datasource; //... " git master 3c79b1e3d57ed1d2d4b1b7a5603d572be63a7457. Please don't forget to replace "db" by "mdb" in uses. Martin ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk