Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : MMEdit V 5.1
Page 4 of 8 | |||||
Author | Message | ||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
Health is OK. I just had to be gentle with myself for a few days... To send the listing to the editor, MMCC puts the listing in the clipboard and then uses TCPIP to send the "paste" command to MMEdit. MMEdit has to be running. If that fails, the listing 'should' still be in the clipboard so you could start a new file and <paste>. Let me know if that works. In the mean time, I will increase the time between making the TCPIP connection and sending the paste command. It might help. For your other problem, sending files to MMCC, I have change it so even unchanged files are saved before sending when using Linux. I think that might be some sore of permissions problem or perhaps the difference between using a file path starting at the user home compared to the drive root. That did cause some issues in MMEdit. Jim VK7JH MMedit MMBasic Help |
||||
ville56 Regular Member Joined: 08/06/2022 Location: AustriaPosts: 95 |
I've a problem with listing long programs. "List all" stalls after about 500 to 600 lines of code, "send listing to editor" behaves the same. It stalls not always at the same line. Is there any restriction on the size of the code MMCC can handle with list commands? Regards, Gerald 73 de OE1HGA, Gerald |
||||
ville56 Regular Member Joined: 08/06/2022 Location: AustriaPosts: 95 |
Sorry, forgot to mention the environment Windows 10, MMCC/MMedit 5.1.2 2023/04/29 But had that also in older versions, at least as far as i remember ... 73 de OE1HGA, Gerald |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
Thanks for the report. I will have to double buffer the serial stream. It is the picomite driver buffer that is overflowing and I can't change it's size. For now, you should be OK using the file manager to transfer your current program to MMEdit Jim VK7JH MMedit MMBasic Help |
||||
ville56 Regular Member Joined: 08/06/2022 Location: AustriaPosts: 95 |
Thank you, Jim. My progs always seem to be a bit oversized. Regards, Gerald 73 de OE1HGA, Gerald |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
I have successfully transferred a program 2000 lines and 96k so that part is working. I just have to test it on slow devices to make sure I haven't broken something else. The other thing to remember when using LIST, set your display to a wide setting so lines don't wrap. I use OPTION DISPLAY 40,120 Not sure if that's permitted on the VGA version. Jim VK7JH MMedit MMBasic Help |
||||
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2137 |
It is if OPTION LCDPANEL NOCONSOLE is done first. |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
V5.1.3 New features and bug fixes. Auto-configure will hopefully save users from trying to load programs using the wrong commands. If Auto Configure is set, the device is queried and the device type in MMCC set to match the actual device. The option is set by default but can be disabled if you find it too intrusive. There will always be a conflict between highlighting true keywords (Commands and Functions) and including all or some of the parameters as well. Now you have the choice. The first"Syntax" menu item lets you toggle between keywords only and including parameters. Note that it toggles the menu list, not your chosen syntax for a file. You would still have to select the new syntax to see any change. I have deliberately not included parameters that are 1 or 2 characters long. That would be too intrusive. As part of the above, I have recreated the keyword lists using a semi-automated process. This means that there are probably words I have missed in both settings. I had a request to allow 'include' files to be stored in their own folder instead of having to navigate to them each time. Introducing the "store". You can use it as the include file store or just the main code repository. A location that remains the same no matter where you load a program from. There are "store" alternatives in the file and edit menus. To set the store folder, hold the <SHIFT> key while selecting "Insert file from store" in the edit menu. Linux users will have to edit the MMedit5.inf file for now. Fixed a few bugs when in a Telnet session. Improved "quick hint" <F12> feature to better handle the dots in mm.info etc. There was a problem in MMCC when listing long programs. This should now be fixed. I have finally put some of the options in the preferences setting pop-up. (File menu) Jim VK7JH MMedit MMBasic Help |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
Thanks Jim, One funny thing, in 'preferences', if I untick AUTO COMPLETE and save, immediately the: ' OPTION EXPLICIT OPTION DEFAULT NONE loses it's colour coding. Is that correct or do I not understand what is meant to happen? If I type" print "Hello" That is not colour coded either until I re tick AUTO COMPLETE and change the syntax back and forth. I sort of expected that but when I do it, the 'print' is not capitalised and coloured but the "Hello" is colour coded green? Maybe you can explain another thing. The first time I 'Run in DOS' it takes a while to run the program, thereafter it happens in a flash. I think it is some peculiarity of my PC because I get the same sort of thing with a different program. The previous version (MMEdit4) does the same. Bill PS. Thank you for the 'store'. I can now unpin my 'include' folder from explorer. Keep safe. Live long and prosper. |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
Addendum: I does work as I expected if I restart MMEdit. Bill Keep safe. Live long and prosper. |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
Blame it on your AV trying to protect you from the nasty world. It annoys me too. Windows isn't able to remember the safe programs between sessions. Jim VK7JH MMedit MMBasic Help |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
Thanks for that heads up Jim. I'm using windows defender and you can tell it to ignore some programs (add exclusions). I did that for MMEdit5 and now MMBasic for DOS programs run instantly. The other program, Calibre ebook manager, has also improved too I think. Windows defender doesn't like the MMEdit installation program but that's only an occasional thing. Bill Keep safe. Live long and prosper. |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
MMEdit V5.1.4 is available. Design – a layout tool for LCD displays (and MMB4W) You need to have your display configured and OPTION GUI CONTROLS set to a suitable number Step 1. New layout design. A new tab opens with: There are 3 sections for you to enter data. ‘RUN_ONCE is where any variables are setup. Just do enough to make the layout look ‘right’. 'USER_DATA is where any fonts needed for the layout will go. 'GUI_ELEMENTS is the main area of interest. The easiest way to enter GUI controls is type GUI then F12. This opens up a window with a list of all GUI controls and TEXT thrown in for convenience. Double click on the desired controls to include them in your code. Some of the parameter fields need to be changed to “real” values. The easiest way to configure colours is to double click on the parameter to select the full word and right click to activate a popup menu with a colour chooser item. Pick a predefined colour or create your own. There is no need to remove the square brackets, MMEdit will do that for you. MMEdit will also replace #ref with a ref number and startX etc with a variable ready for moving the controls around. If you have a number of similar controls such as buttons all the same colour, setup one then ctrl-D to duplicate the line. Step 2. Incorporate Layout code. This step adds the code need to move the elements around the screen and replaces the parameters that need changing. You are now ready to send the code to your device (or MMB4W) and start playing. Space bar changes the current control Z toggles between moving the control and changing the size. + and – change the size of any text controls. G changes to grid spacing 1, 5 or 10 pixels. If you prefer a different gris spacing, you can edit the program to suit. S saves the position data for all elements as DATA statements. MMB4W saves the data to a file then sends the file to MMEdit. If BAS files area associated with MMEdit, the file is opened in anew tab. Otherwise, you will have to open the file manually. With an attached ‘mite the data is displayed in the terminal and you will have to copy and past it into the basic program. Step 3. Replace variables with numbers. After you have copied the new DATA statements and pasted them over the original ones, including the last line of -1’s, you use the new DATA to replace all the cpos() array variables with integers. Step 4. Extract your code. Here we open a new tab with your GUI statements ready to incorporate into you program. If at any stage, you feel the urge to add more controls, do so by placing them after the last control and run “Refresh layout code”. This can be done after step 2 or step 3. At various stages during the process, new tabs are opened to protect your masterpiece from destruction but it is advisable to save your own copy. VK7JH MMedit MMBasic Help |
||||
Andrew_G Guru Joined: 18/10/2016 Location: AustraliaPosts: 847 |
Hi Jim, {An update: I hadn't closed down MMEdit before I tried Load file and run". Having done that it now works. Andrew} {{A further update: I've resolved the DO/LOOP issue - see next post}} I've upgraded to v1.4 but the "Load file and run" icon is not working. Not just the GUI Design code but any old code. I've got the syntax set to Picomite, MCC is connected and working (I can list the Pico's file). Is there a setting? Secondly, in the sample code there is a DO before 'GUI Elements. If I'm running once that can come out? Cheers, Andrew PS: I've also discovered so many other useful things, like double-clicking here and there, as described above; thanks Edited 2023-05-20 09:34 by Andrew_G |
||||
Andrew_G Guru Joined: 18/10/2016 Location: AustraliaPosts: 847 |
Hi Jim, It is a thing of beauty! For the notes?: - (I think?) Numlock needs to be off for the keypad's "+" and "-" keys to work. - the set of four arrow keys move the target GUI item around. Some suggestions (only if worthwhile): - can you possibly re-post to here the full code of the example (it is on the other thread) - is it possible to highlight which item has focus (eg a change of colour)? - if you are silly enough to move an item off screen it crashes the program - is it easy to change the font size on the GUI controls (it may not be as this is set at the start of the program?). Thanks again, Andrew |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
Thanks for the feedback Andrew. AS you have found, the DO between the two sections for user entry is part of the code for the main event. I tried to think of something as a place holder that doesn't look silly but decided anything has the risk of users deleting it so I stuck with the DO Changing size of text looks for the + and - characters, it shouldn't matter which buttons the user uses to send them. I tried to allow for attached keyboards as well as terminals. I could re-post the full example but the user will create their own, using the latest version. Changing colour of the selected control is possible but not sure if its' worth it. Some controls let you move them further off screen than others. This makes a block a bit harder but would be nice. I might be able to incorporate ON ERROR Anything that is at the start of the program gets difficult to change on-the-fly. My experience with GUI development is starting to show... There are two files in the data folder. newdesign.txt is the code used for a new design and designloop.txt is the one with the rest of the code. Users are welcome to modify as much as they like and any ch suggestions are welcome. Be sure to make a backup because they will get overwritten next update. Jim VK7JH MMedit MMBasic Help |
||||
Andrew_G Guru Joined: 18/10/2016 Location: AustraliaPosts: 847 |
Thanks Jim. I'm capable of fiddling with your code. If I do anything 'useful' I'll let you know. (But it won't be for a little while) It is most useful as it is! Cheers, Andrew |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
Andrew, I have added a check for of screen and also let users specify a target screen smaller than the one being used. This is handy when praying on MMB4W. I need to add a few other drawing elements, not limiting to GUI ones. Stay tuned. Jim VK7JH MMedit MMBasic Help |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9129 |
I know it is impressive software - but perhaps treating it as a deity is taking things too far |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
Maybe I meant 'preying' I do find it very handy to be able to designing for any small screen with the comfort of a big monitor. I have just posted an update to MMEdit - same version number. It now checks for going off screen and prevent it from happening. Also, The list of GUI controls now contains LINE, BOX RBOX etc. I squashed a few bugs in the "Refresh layout code" section where you add extra controls. I am sure there will be more to fix Jim VK7JH MMedit MMBasic Help |
||||
Page 4 of 8 |
Print this page |