for NSBasic Developers by EFsoft

 

NSBasic Desk 4.0 is now available. The program includes the usual Visual IDE features plus some
useful tool as Menu Editor.
I noted that in the CE Device version of NSBasic 4.0 the mentioned tool is not available.
This means that if you use NSBasic to program 'Anytime and anywhere'  you have, in this case
to write the menu's code manually.
NSBMenuW  is the program developed to get a solution.
You can use the program on your CE device directly and get the relative code to Copy (Control-C)
and paste (Control-P) into your NSBasic IDE.As it runs on the CE device you can also preview the
result in the device program's window at the end of the compilation before pasting the result code.
This is the program's screenshot:

                              

This image show the program developed         This is the code running on CE Device
by Visual Basic 5.0                                       after translation using VBtraNS 

To install the program simply copy it by Active Sync where you like (i suggest the NSBasic folder 
in your device) and run it by a tap on the .nsb file or create a link if you like.
To use it first run the NSBasic IDE and your program code window thence run MenuW.nsb.
(To unistal the program simply delete it and the relative created link if any) 
As you can see the program's interface is not exactly like the Menu Wizard that you find in the Desk
NSBasic Version 4.0 but the use and the result are about the same.
You have to type the Caption (Menu's voice) and the Name (Name of the Sub called by a tab on the
menu caption), select the Caption level (0 for the MenuBar level) and tap NEXT button.
You will see the Caption name shown in List below.
Repeat this operation for all the menu's voices that you need and note that if you change the caption
level you will see the caption'name indented by three point on the right for each level's unit.
Take note that to add a separator between the menu's voices of the same level you have only to use
" - " in the Caption input textbox leaving empty the Name input textbox.
Two prompt advices will be shown if you use next without inserting all the required data and if you use
twice the same Name.
To Modify, Delete or Insert an item do the following:
MODIFY: Tap in the list the item to modify. You will see its content shown above in the input fields
               and level counter. Modify what you wish thence tap NEXT to reinsert the new data.
DELETE: Tap in the list the item to delete thence use DELETE button.The item will be erased. 
INSERT:  Tap as above the list Item under which you like to add a new menu's voice.A new blank
               line will be shown under the taped item. Tap now on it and you will see the input fields 
               blanked. The Caption level istead will mantain the previous level number.
               Add the new item's data, modify the caption level if requested and click NEXT button.
               The ne menu's voice will be shown now in the menu list.
Remember that you must increase 1 caption level only each time (Level 0 thence Level 2 is not
acceptable and may produce wrong code).
As soon as you are ready use the OK button on the top of the program window and you will see a
a textbox showing the created code and new button with the caption 'PREVIEW'.
Tap on this button and you will be able to see your menu at the botton of the screen and to use it 
to check if all is correct as you like.
In this case hightlight all the code's instructions in the textbox and using Ctrl+C copy the same, 
thence open NSBasic ide on your CE device and tap on the IDE windows and standBy until the
PopMenu appears select Paste and you will see your code pasted into your program.
And this all.               

Being a Christmas' Gift  program is not quoted in the common Download page but you can download
the Zip file (Including help instruction also) 
HERE 

Please note that this is the first BETA version so it may be subject to fix and update.
This program has been created to add it to a new upgraded version of NSAssistant
that will be posted within 2003. 
FIRST BUGS FIX
Now program runs correctly. In this new version has bee fully rewritten the program's
code so now:
1) the resulting menu,when user preview the menu, the same looks exactly it has
    been written without relocating some items casually.
2) on starting the Visual Keyboard is authomatically shown and the Caption input text
    box get focus directly.
3) ScrollBars have been added to Captions' display List (Vertical only) and to the text
    box resulting Code (both).
4) Font's dimensions in the input TextBoxes have been increased to read text better.
If you downloaded the old version, simply overwrite the old file with the new .nsb
file on your CE device