ignore my previous ravings re toolbars. I can see where the framework logic of setting enabled via the refresh method works. I do have one problem though which seems to defy logic.
If I set a toolbarbutton ENABLED via the refresh() call to SetEnabled() I can trace the setting correctly but there is no response: let me explain In Refresh() of the toolbarbutton I have code such as
local llretval
llretval = ATC("frmClient",_screen.activeform.name) > 0
this.setenabled(llretval)
SetEnabled method shows enabled being passed as true so:
this.enabled = tlEnabled
sets enabled to true however the button remains disabled.
Is there some quirk in docked toolbars to create this behaviour or am I missing something? I thought it may have just been not refreshing but I have tried it by repeat refreshing. The other behaviour is that if in refresh() I put this.setenabled(.t.) then it works correctly. It presumably has something to do with the parameter but what????
©2002 graeme thomson |