Recent Posts

Pages: [1] 2 3 ... 10
1
User Contributions / Re: Bcx EDitor (BED)
« Last post by MrBcx on September 23, 2022, 02:42:08 PM »
Small update - added persistence to the BUILD dialog.

This is BED ... short for Bcx EDitor

https://bcxbasiccoders.com/bcxusers/mrbcx/bed.zip
       ( September 23, 2022     12:00 pm  GMT-7 )
2
Announcements / Re: Server Migration
« Last post by Jeff on September 21, 2022, 03:03:11 PM »
The migration is complete and everything appears to be working normally.  Please let us know if you notice any problems.
3
Announcements / Re: Server Migration
« Last post by jbk on September 21, 2022, 09:22:32 AM »
thanks for the heads-up  :)
4
Announcements / Server Migration
« Last post by MrBcx on September 20, 2022, 12:41:20 PM »
Jeff Shollenberger informed me that the BCX site and forum will be moving to a new server during the next 24 hours. 

That may be painless or there may be wrinkles that will need to be ironed out. 

We wanted to let folks know that, if you experience issues connecting or logging in, be assured that those issues will be resolved as quickly as possible.

-MrBcx-

5
Questions & Answers / Re: BCX Dialog
« Last post by MrBcx on September 16, 2022, 05:31:43 PM »
Ad ... This works as expected. 

Code: [Select]

GUI "LICENSE"

SUB FORMLOAD
    BCX_MDIALOG( License, "License App", 0, 0, 0, 150, 225)
    PostQuitMessage(0)
END SUB


BEGIN EVENTS
END EVENTS



BEGIN MODAL DIALOG AS License ' Modeless Dialog or Modal Dialog ?
    STATIC LicEd AS CONTROL
    STATIC LicBtn AS CONTROL

    SELECT CASE CBMSG
        CASE WM_INITDIALOG
        LicEd = BCX_EDIT("", hWnd, 109, 4, 4, 142, 195, WS_CHILD | WS_VISIBLE | ES_READONLY | ES_MULTILINE)
        ' modstyle(LicEd, WS_VSCROLL)
        EDITLOADFILE(LicEd, "help.txt")
        LicBtn = BCX_BUTTON("Close", hWnd, 110, 4, 200, 40, 10)
        SHOW CBHWND

        CASE WM_COMMAND
        SELECT CASE CBCTL
            CASE 110 ' button LicBtn is hit
            CLOSEDIALOG
        END SELECT
    END SELECT
END DIALOG


6
Questions & Answers / BCX Dialog
« Last post by Ad_Rienks on September 16, 2022, 04:11:41 PM »
Hello,

I have this modeless dialog, that should be called as a sort of help when a menu item is choosen, or a button is clicked.

Code: [Select]
BEGIN DIALOG AS License ' Modeless Dialog or Modal Dialog ?
  STATIC LicEd AS CONTROL
  STATIC LicBtn AS CONTROL
SELECT CASE cbmsg
CASE WM_INITDIALOG
                        LicEd = BCX_EDIT("", hWnd, 109, 4, 4, 142, 195, WS_CHILD | WS_VISIBLE | ES_READONLY | ES_MULTILINE)
' modstyle(LicEd, WS_VSCROLL)
editloadfile(LicEd, "help.txt")
LicBtn = bcx_button("Close", hWnd, 110, 4, 200, 40, 10)
END select
IF cbctl = 110 THEN ' button LicBtn is hit
CloseDialog
END IF
END DIALOG

When the dialog is called, it flashes and disappears immediately, as if the button was pressed. The code is almost the same as I've seen in other programs.
What is wrong with this code?
The dialog opens as it should, as I want it to see, if I leave out the '110' ID

Thanks for any explanation to this newbie question.
7
Tips & Tricks / Re: You Are Screwed.
« Last post by MrBcx on September 14, 2022, 08:02:40 PM »
And if you're still not fully confused, this will help ...

Quote
Until recently, Windows has emphasized "Unicode" -W variants over -A APIs. However, recent releases have used the ANSI code page and -A APIs as a means to introduce UTF-8 support to apps. If the ANSI code page is configured for UTF-8, -A APIs typically operate in UTF-8. This model has the benefit of supporting existing code built with -A APIs without any code changes.

https://docs.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page?source=recommendations

8
Tips & Tricks / You Are Screwed.
« Last post by Robert on September 14, 2022, 05:17:27 PM »
Here' a Raymond Chen addendum to the warnings added to the latest version of the BCX Documentation.

Keep your eye on the code page: Is this string CP_ACP or UTF-8?

https://devblogs.microsoft.com/oldnewthing/20150611-00/?p=45401
9
Announcements / BCX Documentation Version 7.9.5, September 14, 2022
« Last post by Robert on September 14, 2022, 05:07:19 PM »
BCX Documentation Version 7.9.5, September 14, 2022
 
Robert Wishlaw
* added warnings to the ANSITOWIDE$ and WIDETOANSI$ function sections.
10
Questions & Answers / Re: New user question
« Last post by MrBcx on September 14, 2022, 02:37:00 PM »
Encoding paths, at times, requires a lot of patience.

Glad you're making progress with Pelles C. 

It is an excellent compiler, so long as you don't crank up its optimizer.

Pages: [1] 2 3 ... 10