WinFBE on GitHub (November 12, 2016)

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

Previous topic - Next topic

Paul Squires

Thanks Jose, I have made that change (will be in GitHub later this evening). I also noticed that the Goto Line dialog looked ugly. I had the line to set the DPI *after* the creation of the window rather than before. That fix will also be in GitHub later.


   pWindow->DPI = AfxCWindowOwnerPtr(hwndParent)->DPI

   pWindow->Create(hWndParent, L(168,"Go to Line"), @frmGoto_WndProc, 0, 0, 287, 126, _
        WS_POPUP Or WS_DLGFRAME Or WS_CAPTION Or WS_SYSMENU Or WS_CLIPSIBLINGS Or WS_CLIPCHILDREN, _
        WS_EX_DLGMODALFRAME Or WS_EX_CONTROLPARENT Or WS_EX_LEFT Or WS_EX_LTRREADING Or WS_EX_RIGHTSCROLLBAR)
   pWindow->SetClientSize(281, 97)
   pWindow->Center
Paul Squires
PlanetSquires Software

Paul Squires

Update changes to GitHub repository:

- Changed Explorer font to Segoe UI 9pt in order to scale better at high DPI resolutions.
- Fixed DPI code for the Goto Line dialog.
- Updated to Jose Roca's latest version of CWindow and Templates (RC 25).

Paul Squires
PlanetSquires Software

José Roca

#17
You have forgot to rem this line

pWindow->DPI = 96   ' eg. 144 or any other value (96 is default)

in frmMain_Show

The editor has become unusable at 192 DPI.

Paul Squires

Oh my.... I am so forgetful sometimes. I will fix it in GitHub later today.
Paul Squires
PlanetSquires Software

Paul Squires

Quote from: TechSupport on November 16, 2016, 08:57:00 AM
Oh my.... I am so forgetful sometimes. I will fix it in GitHub later today.
This is now fixed and GitHub updated.
Paul Squires
PlanetSquires Software

Paul Squires

Added to GitHub tonight:

- Added scrollbars to Explorer Treeview. The custom scrollbars were just too much trouble to implement.
- Added LockWindowUpdate of Explorer Treeview during WM_CLOSE to prevent flickering as documents are closed.
Paul Squires
PlanetSquires Software

José Roca

Folding/Unfolding does not work when clicking the folding mark with the mouse.

Paul Squires

Thanks Jose, I will get that worked out very soon as well.  :)
Paul Squires
PlanetSquires Software

José Roca

Is there already some way to use resource files or is it in the todo list?

Paul Squires

Quote from: TechSupport on November 19, 2016, 10:16:43 AM
Thanks Jose, I will get that worked out very soon as well.  :)
This is a 64-bit problem. Works on 32-bit. Most likely to do with how the SCNotification TYPE is defined. I will look at that structure to see what needs to be changed.
Paul Squires
PlanetSquires Software

Paul Squires

Quote from: Jose Roca on November 19, 2016, 10:30:09 AM
Is there already some way to use resource files or is it in the todo list?
The way I do this is to create a project and add the resource file to it. Then, simply designate that file as the "RESOURCE". You do that by changing its type through the right-click menu options or by clicking on the 4th panel in the statusbar.
Paul Squires
PlanetSquires Software

Paul Squires

#26
Quote from: TechSupport on November 19, 2016, 11:32:28 AM
Quote from: TechSupport on November 19, 2016, 10:16:43 AM
Thanks Jose, I will get that worked out very soon as well.  :)
This is a 64-bit problem. Works on 32-bit. Most likely to do with how the SCNotification TYPE is defined. I will look at that structure to see what needs to be changed.

Looks like the "Field = 4" was the problem


Type Sci_NotifyHeader Field = 4
  ' /* Compatible with Windows NMHDR.
  '  * hwndFrom is really an environment specific window handle or pointer
  '  * but most clients of Scintilla.h do not have this type visible. */
hwndFrom as HWND
idFrom As UINT_PTR
code As UINT
End Type

Type SCNotification
   hdr                  As Sci_NotifyHeader
   position             As INTEGER
   ch                   As INTEGER
   modifiers            As INTEGER
   modificationType     As INTEGER
   lpText               As ZString Ptr
   length               As INTEGER
   linesAdded           As INTEGER
   message              As INTEGER
   wParam               As uINTEGER
   lParam               As uINTEGER
   nLine                As INTEGER
   foldLevelNow         As INTEGER
   foldLevelPrev        As INTEGER
   margin               As INTEGER
   listType             As INTEGER
   x                    As INTEGER
   y                    As INTEGER
   token                As INTEGER
   annotationLinesAdded As INTEGER
   updated              As INTEGER
End Type


EDIT: Something is still not right because although the folding now seems to work, the toggling of the Bookmark column does not work on 64-bit (but does on 32-bit).
Paul Squires
PlanetSquires Software

Paul Squires

Updated to GitHub repository:

- Removed unused entries in the English.lang language file.
- Files are now only added to MRU file list if they are not part of an active Project.
- Updated SCNotification TYPE structure in modScintilla.bi in order to work correctly on 64-bit. May not work 100% (Bookmark toggle does not seem to work correctly yet).

Paul Squires
PlanetSquires Software

José Roca

I'm having several problems with projects, like GPF when clicking the OK button.

Also, when creating a second project, the compiler setup loses the drive letter

:\Users\Pepe\FreeBasic32\fbc.exe

Something must be wrong in the code when saving the options.

Paul Squires

Thanks Jose, when you say clicking the OK button, do you mean the OK button for the Project options dialog form?

I did make changes to the {CURDRIVE} replacement macro code that I use to substitute the drive letter for settings like the compiler, etc. Is your compiler setup on the same drive as your project, or different drive?
Paul Squires
PlanetSquires Software