• Welcome to PlanetSquires Forums.
 

WinFBE on GitHub (November 12, 2016)

Started by Paul Squires, November 12, 2016, 04:00:41 PM

Previous topic - Next topic

Paul Squires

New code in GitHub repository November 12, 2016.
https://github.com/PaulSquires/WinFBE/

Many changes in the editor. Too many to remember and list here.

Of particular note is brand new additions to the user interface. I have added an Explorer window and Output window. Both can be toggled on and off and both are fully resizable via splitters. I may have to tweak the colors but so far the functionality works well.

HOWEVER, in order to maintain the look and feel of the Explorer treeview, i have to create a custom vertical scrollbar. That scrollbar is not 100% complete so if you have too many files in the treeview you won't be able to scroll the list...at least not yet. You can see the scrollbar in the following screenshot.



Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

José Roca

#1
Add ".FBTPL" to get syntax coloring when writing code templates. Not important, just a nice touch.


   If cbool(wFileExt = ".BAS") OrElse cbool(wFileExt = ".INC") _
         OrElse cbool(wFileExt = ".BI") OrElse (this.IsNewFlag = True) Then

Paul Squires

Thanks Jose, I have added the change. It will be in the next upload. Thanks!
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

José Roca

When compiling a file (without a project) using the GUI option, the console appears. Why?

José Roca

Sometimes the cursor is unable to change from beam to arrow and flickers when it tries to change.

Paul Squires

Quote from: Jose Roca on November 12, 2016, 10:59:38 PM
When compiling a file (without a project) using the GUI option, the console appears. Why?

Thanks Jose, I have this fixed now. I fixed the logic for project and non-project files. Fix will be in next update to GitHub.
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

Quote from: Jose Roca on November 12, 2016, 11:10:03 PM
Sometimes the cursor is unable to change from beam to arrow and flickers when it tries to change.

Hmmmm.... I haven't noticed this but I will pay attention to see where it occurs.
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

The follow fixes and changes were just committed to the GitHub repository.

- Added .FBTPL extension to allow color syntax highlighting.
- Fixed logic for showing/hiding console window for GUI projects and non-projects.
- Changed Project Option from "Suppress console window" to "Show console window".
- Fixed new files not being added to Explorer in some situations (eg. Files based on Templates).
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

A couple more simple changes added to GitHub.

- Clicking ANSI/UNICODE panel area in StatusBar allows you to toggle between the two states.
- Output information from previous compile is now cleared when new project loaded.
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

José Roca

When the editor saves a file it adds an additional blank line.

Paul Squires

Quote from: Jose Roca on November 13, 2016, 10:25:01 PM
When the editor saves a file it adds an additional blank line.


Right you are. I forgot to add a semicolon at the end of the PRINT # statement.


   ' Save text buffer to disk by directly accessing buffer rather
   ' saving it to an intermediary string variable first.
   f = Freefile
   If Open( wFilename For Output As #f ) = 0 Then
      Dim As ZString Ptr psz = Cast( ZString Ptr, SendMessageW(this.hWindow, SCI_GETCHARACTERPOINTER, 0, 0) )
      Print #f, *psz
      Close #f
   Else
      ' error saving file
   End If         


Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Marc Pons

@Paul,  sorry i'm still not able to test your new editor (XP only)

But if you are interrested on way to input different codepage on your editor,
i've found an interresting tool ( this one not online) is here :
http://www.unipad.org/download/

what's nice is it provides plenty of virtual keyboards to input keys.
so it's simple to select the produced symboles  on the unipad utf8 editor panel ,
       copy them and paste to WinFBE panel , if WinFBE is on utf8 mode 
   or copy as utf8 and paste to WinFBE panel , if WinFBE is on any charset
as long as that literal is considered as utf8 string every thing will work.

have a look yourself , it exists a free version to download...

i think that kind of feature would be very nice to have: embedded,

it would help a lot when using different codepage/charset on the same document.

Sure it would be even better on utf16 editor, but using scintilla it is not possible.

Hope the info, can be helpfull for you or any futur user of your new editor.

I know it works, because i'm using that work-arround when input different charset on my adapted version of FB-CSED or CSED.

Paul Squires

Hi Marc, thanks for the information. I appreciate it.

Time for you to upgrade past WinXP  :)
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

I just committed the following changes to the GitHub repository:

- Fixed problem of saving files with additional ending CRLF being appended.
- Refactor code to eliminate some PROPERTY Get/Set for classes.
- Added vertical scrollbar to Compiler Log File output window.
- Clicking on Project FileType panel in StatusBar now invokes popup selector menu.
- Clicking on Line/Col panel in StatusBar now invokes the GotoLine dialog.

Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

José Roca

#14
Don't know if it is interntional or not, but the font in the explorer window looks a bit oversized as you are using Segoe UI 10 pt instead of 9pt. Very noticeable at 192 DPI.