WinFBE Suite 1.8.7 (December 9, 2018)

Started by Paul Squires, December 09, 2018, 01:08:15 PM

Previous topic - Next topic

Paul Squires

I doubt that the keyboard accelerator will be user defined. Well, at least not in version 1 of this stuff.
Paul Squires
PlanetSquires Software

Paul Squires

GitHub updated with the User Snippets functionality.

Basically, you define a short trigger word that when typed and TAB pressed will be replaced by the expanded code text. Seems to work okay so far.

The User Snippets dialog can be resized so it should be easy to size it enter large code text.
User Snippets can be single line or multiple lines.

See attached image.
Paul Squires
PlanetSquires Software

Paul Squires

Image Manager changed slightly. Added a combobox for the various image view options rather than the two radio buttons.
1. Actual Size
2. Apply High DPI Scaling
3. Autosize
4. Fit to Width
5. Fit to Height
6. Stretch
Paul Squires
PlanetSquires Software

Joerg B.

Hi Paul
I have added the German language file on the basis of the English language file.
Greeting from Germany

Joerg

Paul Squires

Thanks Joerg, I appreciate it. There are many additions happening lately to the language file because of the new things that I am adding into WinFBE. New options, forms, etc.  I will let you know prior to the next WinFBE being released in order to allow you time to update your file for the release. Thanks!
Paul Squires
PlanetSquires Software

Paul Squires

Here is a new "About" form I just gobbled together. Nothing fancy but it is better than the standard messagebox that I was using.
Paul Squires
PlanetSquires Software

Paul Squires

#36
For the User Snippets manager I have added the ability to insert replaceable parameters. You can manually type the parameter into the snippet text or you can right-click and insert by selecting the parameter for the list.

The first graphic how a test of the parameters looks like in the User Snippets manager. The second image shows the result of typing param and then pressing TAB.
Paul Squires
PlanetSquires Software

raymw


Joerg B.

Quote from: Paul Squires on January 03, 2019, 02:14:01 PM
Thanks Joerg, I appreciate it. There are many additions happening lately to the language file because of the new things that I am adding into WinFBE. New options, forms, etc.  I will let you know prior to the next WinFBE being released in order to allow you time to update your file for the release. Thanks!



Hello Paul
.... when you're ready ..... just send it to me.
I do that very gladly.
Greeting from Germany

Joerg

Paul Squires

Another day, another new feature  :)
I've been on a bit of programming roll lately so here is an image of the new subnodes in the Explorer. These nodes will exist for any new or existing Projects.

Paul Squires
PlanetSquires Software

Paul Squires

During my WinFBE code cleanup over the past week I've noticed a few time savers that I would have loved to have built into WinFBE to do things faster. Well, I have them all implemented now. Happy start for my programming new year. Hahahaha

Here is the latest group of code navigation options that I just added this morning:
- Added: Goto Header file (.bi) (Ctrl+Shift+H). Option found in Search / Code Navigation.
- Added: Goto Code file (.bas, .inc) (Ctrl+Shift+C). Option found in Search / Code Navigation.
- Added: Goto Main file (.bas) (Ctrl+Shift+M). Option found in Search / Code Navigation.
- Added: Goto Resource file (.rc) (Ctrl+Shift+R). Option found in Search / Code Navigation.

These functions allow you to quickly jump to files that you have designated in your project. For example, jump to the Resource file or the file designated as your "Main" compile file. Those two functions rely on the fact that the user designates certain files as Resource, Main, Header, Module, or Normal.

The two options to goto the Header file or the Code file are invaluable and they work for projects and non-projects. They allow you to quickly pop back and forth between the main source file (eg  modMenus.inc or fbc.bas) and its corresponding header file (eg modMenus.bi or fbc.bi). Obviously, you need to be sure to name your files the same with only differing file extensions.

Here are the other improvements over the past week:
- Added: Explorer treeview subnodes to hold Header, Resource, Main, Module, Normal files (for Projects only).
- Added: User Snippets (insert user defined code snippets).
- Added: A search textbox added to Function List (filters the function list based on the search term).
- Added: Next Function (Ctrl+PgDn), Previous Function (Ctrl+PgUp) to the Search menu.
- Added: Pressing F6 or selecting "Sub/Function Definition" will open any #Include file on the current editing line.

Paul Squires
PlanetSquires Software

Paul Squires

Enhanced the "Compiler Log File" information that shows in the Output window. In addition to the raw log file I am now adding the full command line that was sent to the fb compiler (and some other stuff for successful compiles).

Here is an example of successful and failed compiles of WinFBE source code:

Quote
Successful Compile (Errors 0 Warnings 0)

Primary Source: X:\FB\WinFBE\src\WinFBE.bas
Target Compilation: ..\WinFBE32.exe (1037K, 1060864 bytes)
Compile Time: 3.0 seconds (2019-01-06 07:31:52)

Command Line:
X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\fbc32.exe -m "X:\FB\WinFBE\src\WinFBE.bas" "X:\FB\WinFBE\src\WinFBE.rc" -v -s console -x "..\WinFBE32.exe"

FreeBASIC Compiler - Version 1.06.0 (11-22-2018), built for win32 (32bit)
Copyright (C) 2004-2016 The FreeBASIC development team.
standalone
target:       win32, 486, 32bit
compiling:    X:\FB\WinFBE\src\WinFBE.bas -o X:\FB\WinFBE\src\WinFBE.asm (main module)
assembling:   X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\bin\win32\as.exe --32 --strip-local-absolute "X:\FB\WinFBE\src\WinFBE.asm" -o "X:\FB\WinFBE\src\WinFBE.o"
compiling rc:               X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\bin\win32\GoRC.exe /ni /nw /o /fo "X:\FB\WinFBE\src\WinFBE.obj" "X:\FB\WinFBE\src\WinFBE.rc"
linking:      X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\bin\win32\ld.exe -m i386pe -o "..\WinFBE32.exe" -subsystem console "X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\lib\win32\fbextra.x" --stack 1048576,1048576 -s -L "X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\lib\win32" -L "." "X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\lib\win32\crt2.o" "X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\lib\win32\crtbegin.o" "X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\lib\win32\fbrt0.o" "X:\FB\WinFBE\src\WinFBE.o" "X:\FB\WinFBE\src\WinFBE.obj" "-(" -lkernel32 -lgdi32 -lmsimg32 -luser32 -lversion -ladvapi32 -limm32 -lole32 -luuid -loleaut32 -lcomctl32 -lshell32 -luxtheme -lpsapi -lcomdlg32 -lshlwapi -lddraw -ldxguid -lgdiplus -lwinspool -lfb -lgcc -lmsvcrt -lmingw32 -lmingwex -lmoldname -lgcc_eh "-)" "X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\lib\win32\crtend.o"

Quote
Failed Compile (Errors 1  Warnings 0  [2019-01-06 07:34:52])

Command Line:
X:\FB\WinFBE_Suite-Editor\FreeBASIC-1.06.0\fbc32.exe -m "X:\FB\WinFBE\src\WinFBE.bas" "X:\FB\WinFBE\src\WinFBE.rc" -v -s console -x "..\WinFBE32.exe"

FreeBASIC Compiler - Version 1.06.0 (11-22-2018), built for win32 (32bit)
Copyright (C) 2004-2016 The FreeBASIC development team.
standalone
target:       win32, 486, 32bit
compiling:    X:\FB\WinFBE\src\WinFBE.bas -o X:\FB\WinFBE\src\WinFBE.asm (main module)
X:\FB\WinFBE\src\modCompile.inc(666) error 181: Invalid assignment/conversion in 'function = "xxxxx"'
Paul Squires
PlanetSquires Software

Paul Squires

All these years and I've never had to code a drag and drop Treeview with auto window scrolling. Well, that exercise is now over. It was one of those "it's easy when you know how to do it" kind of experiences. Another nugget of knowledge for my brain. :)
Paul Squires
PlanetSquires Software

Paul Squires

#43
Here is another new navigation feature. Check out the attached screenshot at the two comboboxes located right below the top tab control.

The left combobox holds all of the file names. The right combobox holds the list of subs/functions in the current active file. As you navigate through the code the sub/function name will change depending on whether you are inside that function. You can also switch to different files or between functions by using these comboboxes.
Paul Squires
PlanetSquires Software

Paul Squires

A user has emailed me that WinFBE fails dealing with read only files. He is 100% right and it is an oversight on my part. I will add the necessary code logic to deal with read only files. Once I add this read only code I will be ready to release an update package (v1 . 8 . 8 ).
Paul Squires
PlanetSquires Software