Skip to content

Commit

Permalink
change a few StrLen to EstrLen
Browse files Browse the repository at this point in the history
implement reopen function
  • Loading branch information
dmcoles committed Jul 5, 2024
1 parent b2a5b12 commit 0941266
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eSourceGen.e
Original file line number Diff line number Diff line change
Expand Up @@ -851,16 +851,16 @@ PROC genWindowHeader(count, windowObject:PTR TO windowObject, menuObject:PTR TO
StrAdd(menuFlags,'CHECKIT')
ENDIF
IF menuItem.toggle
IF StrLen(menuFlags) THEN StrAdd(menuFlags,' OR ')
IF EstrLen(menuFlags) THEN StrAdd(menuFlags,' OR ')
StrAdd(menuFlags,'MENUTOGGLE')
ENDIF
IF menuItem.checked
IF StrLen(menuFlags) THEN StrAdd(menuFlags,' OR ')
IF EstrLen(menuFlags) THEN StrAdd(menuFlags,' OR ')
StrAdd(menuFlags,'CHECKED')
ENDIF
ENDIF
IF menuItem.disabled
IF StrLen(menuFlags) THEN StrAdd(menuFlags,' OR ')
IF EstrLen(menuFlags) THEN StrAdd(menuFlags,' OR ')
IF menuItem.type=MENU_TYPE_MENU
StrAdd(menuFlags,'NM_MENUDISABLED')
ELSE
Expand All @@ -870,7 +870,7 @@ PROC genWindowHeader(count, windowObject:PTR TO windowObject, menuObject:PTR TO

StringF(tempStr,' menuData[\d].type:=\s',i,itemType)
self.writeLine(tempStr)
IF StrLen(menuFlags)
IF EstrLen(menuFlags)
StringF(tempStr,' menuData[\d].flags:=\s',i,menuFlags)
self.writeLine(tempStr)
ENDIF
Expand Down
2 changes: 2 additions & 0 deletions rebuild.e
Original file line number Diff line number Diff line change
Expand Up @@ -2891,6 +2891,8 @@ PROC main() HANDLE
saveFile()
CASE MENU_PROJECT_SAVEAS ->Save As
saveFileAs()
CASE MENU_PROJECT_REOPEN ->Reopen file
doLoad(recentFiles.item(subitem))
CASE MENU_PROJECT_GENCODE ->Generate Code
genCode()
CASE MENU_PROJECT_SHOWLIBS
Expand Down

0 comments on commit 0941266

Please sign in to comment.