Garbled output of BCX Mini Form Designer

Started by Vortex, September 18, 2023, 02:18:00 PM

Previous topic - Next topic

Vortex

Hello,

- Run BCX Mini Form Designer 1.03.10 ( Executable modification \ compilation date : 19 August 2023 )

- Without modifying the form. Click Save BAS file. The scale can be 1.0
- Save the source code.

Some garbled characters are appearing in the source code :

GUI "Form1",PIXELS



GLOBAL Form1 AS HWND


SUB FORMLOAD()
   Form1 = BCX_FORM("Form1", 0, 0, 409, 282)
   CENTER(Form1)
   SHOW(Form1)
END SUB

BEGIN EVENTS
SELECT CASE CBMSG
    CASE WM_CTLCOLORSTATIC, WM_CTLCOLOREDIT,WM_CTLCOLORLISTBOX
      SELECT CASE (HWND)CBLPARAM
h{h{     <---------------  This line
      END SELECT
   CASE WM_COMMAND
      SELECT CASE CBCTL
      END SELECT
END SELECT
END EVENTS

MrBcx

#1
I just downloaded and tested the 2020 version 1.31 from here:

https://bcxbasiccoders.com/smf/index.php?topic=291.0

I do not get any garbled chars.

[UPDATE]

I recompiled using Pelles C v12 and still no garbled characters.  I did however
have to update the source code in 3 or 4 places but those were minor edits.
One was to rename PI to PLI in a UDT in two files and another was to silence
a warning about using a variable named "tmp" that wasn't properly initialized.
There are a couple remaining recommendations about adding additional parenthesis
to statements containing both logical and bitwise operators which I decided to leave
as is, for now.


Vortex

#2
Hello MrBcx,

I found the reason of the issue.

As in your reply,

https://bcxbasiccoders.com/smf/index.php?topic=291.0

The zip archive obtained from this link works without any problem and outputs the correct code without any garbled chracters :


GUI "Form1",PIXELS

GLOBAL Form1 AS HWND

SUB FORMLOAD()
   Form1 = BCX_FORM("Form1", 0, 0, 487, 377)
   CENTER(Form1)
   SHOW(Form1)
END SUB

BEGIN EVENTS
SELECT CASE CBMSG
   CASE WM_COMMAND
      SELECT CASE CBCTL
      END SELECT
END SELECT
END EVENTS


I observe that the form designer displays two different version numbers. While the caption reads 1.03.10 , the about option of the help section displays the version number as 1.31

We have the Bcx EDitor (BED) announcement here :

https://bcxbasiccoders.com/smf/index.php?topic=420.0

https://bcxbasiccoders.com/bcxusers/mrbcx/bed.zip

The Tools folder of this attachment contains another version of the BCX Mini Form Designer.

This version displays the garbled characters :


GUI "Form1",PIXELS

GLOBAL Form1 AS HWND

SUB FORMLOAD()
   Form1 = BCX_FORM("Form1", 0, 0, 763, 338)
   CENTER(Form1)
   SHOW(Form1)
END SUB

BEGIN EVENTS
SELECT CASE CBMSG
    CASE WM_CTLCOLORSTATIC, WM_CTLCOLOREDIT,WM_CTLCOLORLISTBOX
      SELECT CASE (HWND)CBLPARAM
8{8{
      END SELECT
   CASE WM_COMMAND
      SELECT CASE CBCTL
      END SELECT
END SELECT
END EVENTS


The version number remains the same :  The caption reads 1.03.10 , the about option displays the version number as 1.31

Thanks for maintaining this nice editor, nice job.

MrBcx

Thank you for your research.

I've updated the BMFD versioning included in the \BED\Tools\ folder to 1.40
and I've rebuilt BMFD using the forthcoming BCX 8.0.6 and Pelles C v12.  The garbled
characters are gone.  I honestly don't know what caused or cured that bug, so for now
we'll just thank our lucky stars and move on.

I'll upload an updated BED package today that will include the new BMFD, along with
minor BED code changes and the updated BED syntax files.


Vortex

Hi MrBcx,

Many thanks for the new version. The new release is fixing the issue.