Skip to content

v0.2.215

Choose a tag to compare

@hanlokesu hanlokesu released this 04 Dec 00:03
· 29 commits to main since this release

PB64Basic Enhanced v0.2.215 - batch 435.

See the full changelog in README.md


batch 435 (Gary Beene batch 7) - 50/50 samples compile on both compilers, 50/50 run, and the GUI pixel comparison is 48 identical / 2 near (0.016% and 0.053%). The batch closed the following PBWin differences.

  • DIR$: DIR$(NEXT, ONLY attr) re-applies the attribute filter on every NEXT call; the DIR$(mask [, ONLY attr] TO DirData) and DIR$(NEXT, TO DirData) forms fill the PBWin DirData record; the %SUBDIR built-in equate (value 16) is now defined; an ONLY scan excludes hidden/system entries.
  • GRAPHIC: GRAPHIC PIE / GRAPHIC ARC angles are parsed and passed as doubles and converted to the geometric polar angle PBWin uses for elliptic arcs; a supplied fill colour without a fill style defaults to solid; the virtual canvas is rebuilt when CONTROL SET SIZE changes a GRAPHIC control; a bordered GRAPHIC that requests the parent client area gets the client size instead of adding border pixels; GRAPHIC CLIENT / GRAPHIC CANVAS accept X/Y offsets.
  • GRAPHIC scroll bars: GetScrollInfo now reports nMax as the viewport width/height rather than width-1, matching PBWin's thumb range.
  • ListBox: the control is created with WS_VSCROLL, so a scroll-bar added by style has a real range immediately; pb_listbox_auto_vscroll adds the style when the content overflows and removes it when it does not.
  • DIALOG: all DIALOG NEW arguments are converted to 32-bit values (including units); the first focusable control is chosen by walking GW_CHILD / GW_HWNDNEXT and skipping plain statics while accepting SS_OWNERDRAW graphics.
  • TreeView: item handles are kept in a 32-bit token table and translated at every entry point; NM_TREEVIEW notifications are copied before use; item text is converted UTF-8 to ANSI and back.
  • Text and colour: TEXTOUT clears the DC background mode first so text is transparent; edit controls apply PBWin's top margin (5 px for a normal font, 1 px for small fonts); RGB() / BGR() saturate each component to 0..255 instead of wrapping; LO(BYTE, <ByRef param> \ 256) keeps the 16-bit mask PBWin applies; GETCLIPBOARDDATA / SETCLIPBOARDDATA are recognised as pointer-returning APIs.
  • Parser: DISPATCH is an 8-byte object pointer; STRINGZ * n is the same fixed NUL-terminated storage as ASCIIZ * n; THREAD CREATE fn(...), TO h accepts the optional comma.
  • Runtime objects pb_runtime_x64.obj and pb_runtime_x86.obj were rebuilt from the updated pb_runtime.c.
  • Remaining near pairs, reported as near and not identical: 0915 3-D pie at 0.016% (14 pixels on two radial boundary lines) and 1595 timer at 0.053% (8 pixels in a counter digit, a timer-phase artefact). Self-check: examples/batch435_test.bas (batch435-fails= 0).