In ctmenu.vcx cfilepopup.loadchildren
IF NOT EMPTY(This.cFileMenuPWChangeBarClass) lnChild = lnChild + 1 laChildren[lnChild, CHILD_CLASS] = This.cFileMenuPWChangeBarClass ENDIF
but in itmenu.vcx ifilepopup.loadchldren
lnChild = lnChild + 1 laChildren[lnChild, CHILD_CLASS] = "iFileMenuPWChangeBar" laChildren[lnChild, CHILD_NAME] = "oFileMenuPWChangeBar"
The first bit of code is very useful but is overridden by the i-layer code. Is there any reason for this?
Would not the following be better?
lnChild = lnChild + 1 IF NOT EMPTY(This.cFileMenuPWChangeBarClass) laChildren[lnChild, CHILD_CLASS] = This.cFileMenuPWChangeBarClass ELSE laChildren[lnChild, CHILD_CLASS] = "iFileMenuPWChangeBar" laChildren[lnChild, CHILD_NAME] = "oFileMenuPWChangeBar" ENDIF
ENDIF
©2000 graeme thomson |