Hi,
Error with adaptation when a toolbar has a textbox in it.
The textbox's Refresh method contains this code :
lparameters move_your_refresh_code_into_this_refresh_, t02,t03,t04,t05,t06,t07,t08,t09,t10,t11,t12,t13,t14,t15,t16,t17,t18,t19,t20 if Type('m.thisForm.wlPropsRestore') == 'L' and (m.thisForm.wlPropsRestore or m.thisForm.wlPropsSave or m.thisForm.wlHTMLgen) return endif
However, wlPropsSave and wlHTMLgen do not exist; in a toolbar the properties wcPropSave and wcHTMLgen are defined instead.
Other controls have the same problem too, as well as the toolbar's refresh method.
Thanks.
Paul
the toolbar class not being currently supported, you can just restore your original class
Hi,
Understood, but the problem is that toolbars are used in the desktop mode and the adapted child controls don't work with them, regardless if I revert the toolbar class or not.
I'll just have to make changes so that toolbars are never created in web mode (which is a bigger job than it sounds, there a lot of them and code often assumes that they exist).
btw, the fix is simple, the Refresh method on all controls that could be placed in a toolbar should be changed to :
lparameters move_your_refresh_code_into_this_refresh_, t02,t03,t04,t05,t06,t07,t08,t09,t10,t11,t12,t13,t14,t15,t16,t17,t18,t19,t20
if Type('m.thisForm.wlPropsRestore') == 'L'
If Type('m.thisForm.wlPropsSave') != 'U' and Type('m.thisForm.wlHTMLgen') != 'U' and (m.thisForm.wlPropsRestore or
m.thisForm.wlPropsSave or m.thisForm.wlHTMLgen) or ;
Type('m.thisForm.wcPropSave') != 'U' and Type('m.thisForm.wcHTMLgen') != 'U' and (m.thisForm.wlPropsRestore or
m.thisForm.wcPropSave or m.thisForm.wcHTMLgen)
Return
endif
endif
Or alternatively rename the properties in the awtbr class to match the property names in the form class, which might be a larger job.
Thanks.
Paul
OK got it
We have a program creating common properties and methods in aw.vcx!aw*
, just awTbr
was left aside because not supported, I now understand we should have treated it like the other classes.
For a quick fix you can just create the missing properties in aw.vcx!awTbr
(and save aw.vcx
before and after the fix).
We'll release a V. 2.29
(or 3.0, not decided yet) beta; if you subscribed to betas (or wish to, just tell), you'll get the full fix.