U-BED (Unicode BCX Editor) by Ian Casey

Started by Ian Casey (RIP), June 13, 2021, 05:36:35 PM

Previous topic - Next topic

Ian Casey (RIP)

Update for MRU at the previous URL, changed colors in the ini file and .RC to RGB. Also added output panel to capture console output and scroll to last line.

Ian Casey (RIP)

#10
Just hold on that I have found a bug, I will get back after I resolve it.


Edit: It was caused when I tried to set EM_SETEVENTMASK to accept dropped files and I already had the maximum open files(24) in Bed.

I tried SCN_URIDROPPED, DragAcceptFiles and WM_DROPFILES without any success so far, so if someone wants to chime in .....

Ian Casey (RIP)

#9
Thanks MRU for that post, it's always good to get other opinions.
As far as I know this was started by Mike Henning and was continued by Doyle Whisenant, MrBCX and now myself, so large parts of the code are items I have just left alone. I don't care if you want to use the code, it's good for learning.

I will check to see if I can use RGB values in the ini file, but you could always save a copy of your favorite colors as User Theme, there is only 1 of these at this time.  I will also check out drag/drop of files to create new tabs.

I'm afraid I am not good with UAC and I don't have a problem, I have attached the manifest file from MrBCX that I renamed and used, there is a linker option in PellesC but  I don't see where I used it.

  I did run Bed through VirusTotal and it passed all the main AV software including Symantec, MalwareBytes etc. although there were 4 of 60 AV programs that I have never heard (K7GW) of that complained for Bed and Ubed but 0 of 58 for the source code. I have UPX turned off, many AV's don't like it.

Ian Casey (RIP)

I finally got around to one more update.
Added Current/Project/History panes to the Navigation panel.
ReOrder the tabs using the up/down buttons in Current panel.

Executable:  https://bcxbasiccoders.com/bcxusers/ian/programs/Bed-idc.zip
Unicode version: https://bcxbasiccoders.com/bcxusers/ian/programs/Ubed-idc.zip
Source: https://bcxbasiccoders.com/bcxusers/ian/programs/Bed-source-idc.zip

Ian Casey (RIP)

#7
Another update is available, added intellisence and autocomplete for both ASCII and Unicode versions.

Folding still does not work in unicode version but everything else is as far as I have seen.

Executable:  https://bcxbasiccoders.com/bcxusers/ian/programs/Bed-idc.zip
Unicode version: https://bcxbasiccoders.com/bcxusers/ian/programs/Ubed-idc.zip
Source: https://bcxbasiccoders.com/bcxusers/ian/programs/Bed-source-idc.zip

Edit:  5:05 7/3/21
Then the fold problem was found.  :)

Ian Casey (RIP)

Thanks Robert
I guess you are using the unicode version to write Greek to the Navigation treeview
I just found that the folding isn't working with unicode either, I am hoping both will be related, something isn't being translated, finding where is the hard part.
I am using PellesC and Kevin and myself confirmed problems with compiling BED in 64bit.

It'll give me something to do :-)


Robert

Quote from: iancasey on June 13, 2021, 05:36:35 PM
Hi All,
I have updated my version.

Added a toolbar mostly from Doyles example.

Added "Goto Function/Declare" to context menu in scintilla control. Takes you to the start of your user function or declare line, a return option is then available.

Added a start to intellisence - Hints , autocomplete is not working but I left the code in there if anyone wants to try to fix it.
Hints will show the needed syntax when a BCX keyword is typed. It needs non alpha character at the end to show the Hint. i.e. lof( - displays lof || size = lof(file)
Show Keywords Hints is toggled on/off in the View menu.

Added "Show current decription" to the context menu, click on the keyword, a selection will not work.
I stole the descriptions and syntax from the help file, thanks Robert.

Added color themes to config. The colors are not great but its a start, also a user theme is available, use to save your favorite colors. This can be different from current colors. If you have a set of colors I could add a theme to future versions.

Known bug: Search combo box does not accept ctrl-v to paste but the context menu Paste does work.

Executable:  https://bcxbasiccoders.com/bcxusers/ian/programs/Bed-idc.zip
Source: https://bcxbasiccoders.com/bcxusers/ian/programs/Bed-source-idc.zip

Hi Ian:

It's looking great!

I compiled with MSVC 64 and received a couple of dozen warnings but nothing show stopping. Built a 64 bit SciLexer.dll from Scintilla 446, put it in BEd, fired it up and away it went. Loaded one of my BCX UTF-8 files and it displayed as expected.

The identifiers (variable names) in the file were all in Greek characters and in the side bar on the right, the variables were not displayed as Greek characters but rather as UTF-8 deconstructed into its ANSI components. To fix that, you would have to use the SciLexer to output the UTF-8 to the sidebar. Not a trivial task.

Thanks and as MrBCX said there's lots to study and learn from your work. Good stuff!

Ian Casey (RIP)

Sorry, I should have included the link for the scintilla Dll.

https://bcxbasiccoders.com/bcxusers/ian/programs/SciLexerBCX32.zip

Thanks MrBCX for the earlier response.

MrBcx

Quote from: rexxitall on June 14, 2021, 04:23:30 PM
Thanks for the nice editor :)

@Ian i got a bug that scintilla.dll could not be loaded :(
i try to fix it and download the latest dll version from the web but no success.
Is there something in the ini file ?
I could only find the lexer dll but not the scintilla ones.
Is it missing in the binary ?

So now "just" a dialog editor and a debugger is missing to make it feature complete ;) 

.oO(Thanks god i am (far far (c) Shrek) away from them) *grin*

Ian does not include the dll with his updates.  I'm attaching the 32-bit dll that you need.
Note - Ian has changed the name of the dll to distinguish between his 32 and 64 bit versions.

If you want a good dialog editor for BCX, check this out:  https://bcxbasiccoders.com/smf/index.php?topic=291.0

rexxitall

Thanks for the nice editor :)

@Ian i got a bug that scintilla.dll could not be loaded :(
i try to fix it and download the latest dll version from the web but no success.
Is there something in the ini file ?
I could only find the lexer dll but not the scintilla ones.
Is it missing in the binary ?

So now "just" a dialog editor and a debugger is missing to make it feature complete ;) 

.oO(Thanks god i am (far far (c) Shrek) away from them) *grin*

Ian Casey (RIP)

#1
In July 2022, I moved all the postings from the BCX Editor topic that concerned Ian Casey's UNICODE version to its its own TOPIC.  Unfortunately, during the move, I accidentally deleted Ian's original announcement of UBED, so hopefully this brief explanation will help.  Ian's UNICODE BED editor differs from my version of BED in several ways.  Besides a focus on UNICODE support, UBED provides project management, intellisense, updated compiling capabilities, and other changes.  ~MrBcx~

From Ian Casey
June 13, 2021

Hi All,

I have updated my version.

Added a toolbar mostly from Doyles example.

Added "Goto Function/Declare" to context menu in scintilla control. Takes you to the start of your user function or declare line, a return option is then available.

Added a start to intellisence - Hints , autocomplete is not working but I left the code in there if anyone wants to try to fix it.
Hints will show the needed syntax when a BCX keyword is typed. It needs non alpha character at the end to show the Hint. i.e. lof( - displays lof || size = lof(file)
Show Keywords Hints is toggled on/off in the View menu.

Added "Show current decription" to the context menu, click on the keyword, a selection will not work.
I stole the descriptions and syntax from the help file, thanks Robert.

Added color themes to config. The colors are not great but its a start, also a user theme is available, use to save your favorite colors. This can be different from current colors. If you have a set of colors I could add a theme to future versions.

Known bug: Search combo box does not accept ctrl-v to paste but the context menu Paste does work.

Executable:  https://bcxbasiccoders.com/bcxusers/ian/programs/Bed-idc.zip
Source: https://bcxbasiccoders.com/bcxusers/ian/programs/Bed-source-idc.zip