What's New in FWH 26.07

Highlights of FiveWin for Harbour/xHarbour version 26.07 (July 2026). See also whatsnew.txt in the FWH root for the full day-by-day log.

DesktopWeb — one PRG, desktop + browser (login.prg)

New sample samples/DesktopWeb/login.prg: a single application that exposes the same HTML/CSS/JS to the desktop shell and to any web browser.

Build: cd samples\DesktopWeb then build.bat (or build_new.bat login hm64 -mt). Requires WebView2 Runtime for the desktop window. See TWebView2.

Remote View + WebView2 (testrvweb)

New sample samples/RemoteView/testrvweb.prg combines Remote View with TWebView2:

Layout tip for same-screen development: place the real desktop window low on the screen (FROM nTop, nLeft … PIXEL) so the browser image stays above it; use a modest RemoteViewSetOffset. Requires the WebView2 Runtime. Full notes: Remote View + WebView2.

XBrowse multi-line cell + LimitText (xbrml250 sample)

New sample samples/ui/xbrowse/xbrml250.prg shows how to edit a long character column in several lines inside the cell, while capping the length (example: 250 characters).

Full notes: TXBrowse multi-line cell edit.

TControl F1 / CHM help — empty nHelpId bubbles to parent

F1 / WM_HELP is delivered to the focused control. When the control had an empty nHelpId, FWH returned without opening help, so oWnd:nHelpId / oDlg:nHelpId was never used. TControl:__HelpTopic() now calls ::oWnd:HelpTopic() so the window/dialog context is applied.

CHM context help behaviour:

Topic names must match real .htm files inside the CHM. HelpSetPos() only applies to classic .hlp, not CHM. Sample: samples/test/testchmhlp.prg (+ popups.txt). Rebuild the PRG library after update.

samples/misc/dshow.prg — webcam (Media Foundation)

samples/misc/dshow.prg shows live webcam preview and BMP snapshot in a FiveWin dialog. On Windows 10/11, DirectShow IVideoWindow / GetCurrentImage often produces a black buffer even when the filter graph is running (verified with FaceTime HD / UVC). The sample therefore uses Media Foundation through C code embedded directly in the PRG.

cd samples\misc
build_new.bat dshow xb32
dshow.exe

Related: class TWebCam (legacy VFW) and samples/web/webcam.prg.

FW_DemoDB() — new demo MySQL host

The free cloud demo MySQL server used by FWH samples has moved. FW_DemoDB() now connects to a single host:

The former second server (nServer = 2) was removed. If the first parameter is a character string it is still treated as cLib ("FWH", "ADO" or "DLP"); numeric values are ignored. Existing sample calls need no source changes after rebuilding the PRG library.

oCn := FW_DemoDB()           // FWH native (default)
oCn := FW_DemoDB( "ADO" )    // via ADO
oCn := FW_DemoDB( "DLP" )    // via Dolphin, if linked

See also MariaDB / MySQL — FW_DemoDB().

TWebView2 — Fixed Version Runtime

TWebView2():New() accepts a third optional parameter cBrowserExecutableFolder (Microsoft's browserExecutableFolder). When set, WebView2 loads a Fixed Version / standalone Runtime from that folder instead of the Evergreen Runtime installed on the system.

oWeb := TWebView2():New( oWnd, , "C:\MyApp\WebView2Runtime" )

Also fixed: the second parameter cUserDataFolder was being overwritten with a default AppData path; it is now honoured.

Full reference: TWebView2.

Other July 2026 fixes