Changeset 2384 for trunk/src/netlabs/macros/popup.e
- Timestamp:
- Jun 23, 2009, 3:58:15 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/netlabs/macros/popup.e ¶
r2375 r2384 5 5 * Copyright (c) Netlabs EPM Distribution Project 2004 6 6 * 7 * $Id: popup.e,v 1.1 0 2009-06-23 00:53:58aschn Exp $7 * $Id: popup.e,v 1.11 2009-06-23 01:58:15 aschn Exp $ 8 8 * 9 9 * =========================================================================== … … 161 161 activemenu = menuname 162 162 163 compile if 0 164 call psave_pos( savedpos) 165 compile endif 163 fNoMove = (translate( strip( arg(1))) = 'NOCURSORMOVE') 166 164 167 165 deletemenu menuname, 0, 0, 0 168 'BuildPopupMenu' menuname 166 'BuildPopupMenu' menuname fNoMove 169 167 showmenu menuname, 1 170 171 compile if 0172 -- Disadvantage: scrolls window if cursor is off the edit window173 call prestore_pos( savedpos)174 compile endif175 168 176 169 -- Cascade menu now replaced by inline menu items, because it doesnot work: … … 185 178 universal LEXAM_is_available 186 179 compile endif 187 menuname = arg(1)180 parse arg menuname fNoMove 188 181 if menuname = '' then 189 182 menuname = 'popup1' 190 183 endif 184 185 fNoMove = (strip( arg(2)) = 1) 186 191 187 mt = leftstr( marktype(), 1) 192 188 fInMark = mouse_in_mark() -- Save in a variable so user's include file can test. … … 260 256 261 257 elseif mt <> ' ' then -- Build Outside-Mark pop-up -------------------------------------------------------------------------------- 262 'MH_gotoposition' 258 if not fNoMove then 259 'MH_gotoposition' 260 endif 263 261 buildmenuitem menuname, 80, 8000, COPY_MARK_MENU__MSG\9'Alt+C', 'DUPMARK C'COPY_MARK_MENUP__MSG, 0, mpfrom2short(HP_EDIT_COPYMARK, 0) 264 262 buildmenuitem menuname, 80, 8001, MOVE_MARK_MENU__MSG\9'Alt+M', 'DUPMARK M'MOVE_MARK_MENUP__MSG, 0, mpfrom2short(HP_EDIT_MOVE, 0) … … 269 267 270 268 else -- Build No-mark pop-up ------------------------------------------------------------------------------------------------------ 271 'MH_gotoposition' 269 if not fNoMove then 270 'MH_gotoposition' 271 endif 272 272 ch = substr( textline(.line), .col, 1) 273 273 gray_if_space = 16384*( ch = ' ' | not .line)
Note:
See TracChangeset
for help on using the changeset viewer.