main logo
Subject: Re: Beta 2 Update posted
Author: graeme thomson
Posted: 2000/10/05 01:59:31
 
View Entire Thread
New Search


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
<-- Prior Message New Search Next Message -->