• exec/load/DDLightbarMenu.js

    From nightfox@VERT to CVS commit on Saturday, July 08, 2017 12:40:23
    exec/load DDLightbarMenu.js 1.6 1.7
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv27400

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Updated to optinally have the menu draw a border around the menu items. This functionality uses the new borderStyle property, which can be one of the following: BORDER_NONE (no borders), BORDER_SINGLE (single-line border), or BORDER_DOUBLE (double-line border). I might add more border styles in the future (such as single-line vertical with double-line horizontal, etc.). Also, added a way to have a single non-space character in an item text highlighted with a different color (i.e., to show a hotkey in the item text). That is done by putting a & in the item text immediately before the key to highlight (i.e., "E&xit" would highlight the 'x' character). Added the itemTextCharHighlightColor property to specify the color attribute to use to highlight a hotkey character (currently, it defaults to bright yellow). Also, added the property hotkeyCaseSensitive, which is a boolean that specifies whether or not hotkey matching should be case-sensitive. It defaults to false.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From nightfox@VERT to CVS commit on Saturday, July 08, 2017 16:22:19
    exec/load DDLightbarMenu.js 1.7 1.8
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv32350

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Changed the way the border characters are configured in a way that is more flexible. Now, you can specify whatever border characters you want to use by changing the properties in the borderChars object within the menu object. Also, when adding a menu item, the pHotkey parameter will always be used as the hotkey if specified, but now if that parameter is not specified, then the first non-space character after a & in the item text will be used as the hotkey (in addition to that character being highlighted in a different color, as with the last commit). Also made some bug fixes regarding scrolling when using a border.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From nightfox@VERT to CVS commit on Saturday, July 08, 2017 16:43:35
    exec/load DDLightbarMenu.js 1.8 1.9
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv604

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Fixed an off-by-1 issue related to the menu height


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From nightfox@VERT to CVS commit on Saturday, July 08, 2017 20:43:45
    exec/load DDLightbarMenu.js 1.9 1.10
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17183

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Made a minor update for efficiency when displaying menu items ensuring the text fills the menu area (in case there's a text background in use)


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From nightfox@VERT to CVS commit on Thursday, August 03, 2017 19:32:03
    exec/load DDLightbarMenu.js 1.10 1.11
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv20863

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Added a new property to the menu object, ampersandHotkeysInItems, which specifies whether or not to interpret an ampersand as a hotkey in a menu item if placed immediately before a non-space character. It defaults to true. In some cases it might be desirable to disable that and have all ampersands in the menu items literally displayed.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From nightfox@VERT to CVS commit on Friday, August 04, 2017 20:20:35
    exec/load DDLightbarMenu.js 1.11 1.12
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv31498

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Menu items can now have multiple hotkeys. Hotkeys can be specified in the Add() method by passing a hotkey as the 3rd parameter and/or by putting a & in the menu item text just before a key you want to use as the hotkey. Also added the method AddItemHotkey(), which can add a hotkey to a menu item in addition to its existing hotkey(s).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From nightfox@VERT to CVS commit on Saturday, August 05, 2017 12:16:02
    exec/load DDLightbarMenu.js 1.12 1.13
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv5103

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Fixed a bug in calculating the displayable item text lengths.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Digital Man@VERT to nightfox on Saturday, August 05, 2017 13:47:13
    Re: exec/load/DDLightbarMenu.js
    By: nightfox to CVS commit on Sat Aug 05 2017 12:16 pm

    exec/load DDLightbarMenu.js 1.12 1.13
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv5103

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Fixed a bug in calculating the displayable item text lengths.

    There is still an issue with the "Choose a topic area" menu. If you hit 'End' as the first key, it shows a new entry at the bottom. See this screen shot as an example: http://vert.synchro.net/2017-08-05.png

    digital man

    Synchronet/BBS Terminology Definition #41:
    SBBS = Synchronet Bulletin Board System
    Norco, CA WX: 86.5øF, 48.0% humidity, 6 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From nightfox@VERT to CVS commit on Saturday, August 05, 2017 15:14:12
    exec/load DDLightbarMenu.js 1.13 1.14
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv20165

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Bug fix: Off-by-one error when pressing the End key. Now it goes to the correct item.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Saturday, August 05, 2017 15:15:21
    Re: exec/load/DDLightbarMenu.js
    By: Digital Man to nightfox on Sat Aug 05 2017 01:47 pm

    There is still an issue with the "Choose a topic area" menu. If you hit 'End' as the first key, it shows a new entry at the bottom. See this screen shot as an example: http://vert.synchro.net/2017-08-05.png

    I just submitted a change to DDLightbarMenu.js. That should be fixed now.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From nightfox@VERT to CVS commit on Sunday, August 06, 2017 13:08:10
    exec/load DDLightbarMenu.js 1.14 1.15
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv1946

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Added an optional "numbered mode", where each option is displayed with a number to the left (starting at 1), and the user is allowed to choose an option by typing the number of the item. Numbered mode is disabled by default and can be enabled by setting the numberedMode property to true. For example:
    lbMenu.numberedMode = true;
    When numbered mode is enabled and the user starts typing a number, the menu will prompt the user for an item number. The prompt will be located on the line below the menu, so in addition to the menu's height, you'll also need an extra line on the screen to account for the item prompt. In addition, when the user presses the enter key after the item number, a carriage return/line feed will be outputted, so in numbered mode, the menu's height should not go further than 2 lines below the console height. Otherwise, the display of the menu will not be correct if the user decides not to enter a number.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From nightfox@VERT to CVS commit on Sunday, August 06, 2017 13:36:35
    exec/load DDLightbarMenu.js 1.15 1.16
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv2668

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Updated the drawing function so that when in numbered mode and there are fewer items than the menu's height, it looks better.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Digital Man@VERT to Nightfox on Sunday, August 06, 2017 14:01:14
    Re: exec/load/DDLightbarMenu.js
    By: Nightfox to Digital Man on Sat Aug 05 2017 03:15 pm

    Re: exec/load/DDLightbarMenu.js
    By: Digital Man to nightfox on Sat Aug 05 2017 01:47 pm

    There is still an issue with the "Choose a topic area" menu. If you hit 'End' as the first key, it shows a new entry at the bottom. See this screen shot as an example: http://vert.synchro.net/2017-08-05.png

    I just submitted a change to DDLightbarMenu.js. That should be fixed now.

    Yes, that appears fixed.

    One thing I'd like to see: If you have a lot of message areas that allow polls/voting, like I do, it'd be nice if the original list of "topic areas" indicated which have polls in them (most of the areas don't). Or maybe a separate menu item to scan the areas for polls (since it could take a few seconds). MsgBase.get_msg_index() might be faster than MsgBase.get_all_msg_headers() for just checking the 'attr' property.

    digital man

    Synchronet "Real Fact" #68:
    Robert D. Bouman, the author of SyncEdit, died in the mid to late 1990's. Norco, CA WX: 85.4øF, 48.0% humidity, 8 mph NE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From nightfox@VERT to CVS commit on Sunday, August 06, 2017 16:16:21
    exec/load DDLightbarMenu.js 1.16 1.17
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv16319

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Bug fix - Now uses the correct color for all the item numbers in list mode when using a border.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From nightfox@VERT to CVS commit on Tuesday, August 15, 2017 20:11:09
    exec/load DDLightbarMenu.js 1.17 1.18
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv24109

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Started working on the ability to select multiple items from the menu (which is done with the spacebar). Multi-item selection is enabled by setting the multiSelect property to true (which is false by default). In multi-select mode, the GetVal() function will return an array of selected return values rather than a string. The display of selected items still needs to be worked on.. Right now it will display a check mark next to selected items after the user scrolls away from the item, and the position of the check mark is currently a little wierd, but multi-select is working.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert|cvs|bbs].synchro.net
  • From nightfox@VERT to CVS commit on Wednesday, August 16, 2017 20:00:01
    exec/load DDLightbarMenu.js 1.18 1.19
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv11076

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Added a property, maxNumSelections, to limit the number of selections a user can make in multi-select mode. -1 or 0 means no limit. I still need to work on getting the check mark displayed properly for selected items in multi-select mode..


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert|cvs|bbs].synchro.net
  • From nightfox@VERT to CVS commit on Friday, August 18, 2017 19:32:23
    exec/load DDLightbarMenu.js 1.19 1.20
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv11851

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Updated so that the checkmark character is correctly displayed in the item text when an item is selected in multi-select mode (with the spacebar).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From nightfox@VERT to CVS commit on Saturday, August 19, 2017 09:33:49
    exec/load DDLightbarMenu.js 1.20 1.21
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv18071

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Fixed a couple of issues when displaying menu items that are multi-selected.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From nightfox@VERT to CVS commit on Friday, September 08, 2017 20:47:18
    exec/load DDLightbarMenu.js 1.21 1.22
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv9616

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Added the functions GetNumItemsPerPage, GetTopItemIdxToTopOfLastPage, and SetTopItemIdxToTopOfLastPage.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From nightfox@VERT to CVS commit on Saturday, September 09, 2017 20:38:50
    exec/load DDLightbarMenu.js 1.22 1.23
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv21832

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Bug fix: Updated GetTopItemIdxToTopOfLastPage() and SetTopItemIdxToTopOfLastPage() to return/set the top item index to 0 if there is only one page of menu items


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From nightfox@VERT to CVS commit on Monday, December 18, 2017 12:09:10
    exec/load DDLightbarMenu.js 1.23 1.24
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv16807

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Updated the definitions of the KEY_PAGE_UP and KEY_PAGE_DOWN veriables to match what they are in sbbsdefs.js (if defined) from December 18, 2017 so that the PageUp and PageDown keys continue to work properly. This script should still also work with older builds of Synchronet.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From nightfox@VERT to CVS commit on Monday, March 26, 2018 12:55:29
    exec/load DDLightbarMenu.js 1.24 1.25
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv14619

    Modified Files:
    DDLightbarMenu.js
    Log Message:
    Bug fix in the SetBorderChars method: Missing an index ([i]) into an array


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From nightfox@VERT to CVS commit on Sunday, December 23, 2018 23:25:40
    exec/load DDLightbarMenu.js 1.25 NONE
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv4844

    Removed Files:
    DDLightbarMenu.js
    Log Message:
    Renamed DDLightbarMenu.js to dd_lightbar_menu.js to be more in line with other filenames in the Synchronet repository


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net