Skip to content

Commit 31b0027

Browse files
FiveTechSoftclaude
andcommitted
docs(win): update stale Delphi-style refs in hbbuilder_win.prg comments
Comments still mentioned ::Left/::Top/::AppTitle and ::oXxx:Text after the Hungarian rename; align them with the actual code so future readers aren't misled. Pure comment edits — exe rebuilt with no functional diff. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2e106a8 commit 31b0027

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

bin/hbbuilder_win.exe

0 Bytes
Binary file not shown.

source/hbbuilder_win.prg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3328,7 +3328,7 @@ static function OpenProjectFile( cFile )
33283328
{ |hForm, nType, nL, nT, nW, nH| OnComponentDrop( hForm, nType, nL, nT, nW, nH ) } )
33293329
// Two-way: sync code + inspector when form is moved/resized.
33303330
// Was wired in TBNew but missing here - that's why dragging the
3331-
// design form after Open never updated ::Left / ::Top before save.
3331+
// design form after Open never updated ::nLeft / ::nTop before save.
33323332
oDesignForm:OnResize := { || SyncDesignerToCode(), ;
33333333
InspectorRefresh( oDesignForm:hCpp ) }
33343334
next
@@ -3868,7 +3868,7 @@ static function TBRun()
38683868
38693869
cBuildDir := "c:\hbbuilder_build"
38703870
3871-
// Honour ::AppTitle from the main form: user's chosen app name
3871+
// Honour ::cAppTitle from the main form: user's chosen app name
38723872
// becomes the .exe name so what they ship matches the inspector.
38733873
cAppTitle := ""
38743874
if Len( aForms ) > 0 .and. aForms[1][2] != nil .and. aForms[1][2]:hCpp != 0
@@ -4754,7 +4754,7 @@ return AllTrim( StrTran( StrTran( cOut, Chr(13), "" ), Chr(10), "" ) )
47544754
// control types emit a comment line (rendered as no-op on Android).
47554755
//
47564756
// Event handlers written as METHODs on the form class are translated into
4757-
// plain FUNCTIONs and appended, with ::oXxx:Text accesses rewritten into
4757+
// plain FUNCTIONs and appended, with ::oXxx:cText accesses rewritten into
47584758
// UI_GetText / UI_SetText calls against the control handles.
47594759
static function GenerateAndroidPRG()
47604760

@@ -4906,7 +4906,7 @@ static function GenerateAndroidPRG()
49064906
return cPRG
49074907

49084908
// Translate METHOD handlers referenced by the emitted UI_OnClick bindings
4909-
// into plain FUNCTIONs usable by the generated PRG. Rewrites ::oXxx:Text
4909+
// into plain FUNCTIONs usable by the generated PRG. Rewrites ::oXxx:cText
49104910
// access so it hits UI_GetText/UI_SetText against the backend handles.
49114911
// Any handler we can't find is emitted as an empty stub (so the link
49124912
// succeeds and the button is simply inert until the user fills it in).
@@ -4941,7 +4941,7 @@ static function TranslateHandlers( aBind, cEventTab, aCtrlNames )
49414941
cBody := SubStr( cEventTab, nPos + 1, nEnd - nPos - 1 )
49424942
endif
49434943

4944-
// Rewrite ::oXxx:Text references. Works line by line so we can
4944+
// Rewrite ::oXxx:cText references. Works line by line so we can
49454945
// balance parentheses on setter assignments.
49464946
aLines := hb_ATokens( cBody, e )
49474947
for k := 1 to Len( aLines )

0 commit comments

Comments
 (0)