BCX v8.2.3 is available for download

Started by MrBcx, February 01, 2025, 08:58:45 AM

Previous topic - Next topic

MrBcx

Quote from: Quin
MrBcx,
Truth be told I downloaded this version but have yet to unzip it to my git repository yet for this exact reason.
Never hurts to be on the cutting edge though. :)

Quote from: Robert

Unzip 8.2.3 and the cutting edge will have your blood on the floor.
It'll be the wrong color but that don't mean nothin' to you.

... and now we know what he meant ;)

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


Robert

Quote from: Quin on February 01, 2025, 11:46:35 AM
Quote from: MrBcx on February 01, 2025, 11:03:19 AM
Quote from: Quin on February 01, 2025, 10:30:51 AM
Damn, many updates recently. Thanks mrBcx! :)

Quin,

You likely don't need this update but I wanted to get this update out quickly, so that any users that might
be considering using BCX_GRADIENT would have access to what I believe is the final version of this function.
MrBcx,
Truth be told I downloaded this version but have yet to unzip it to my git repository yet for this exact reason. Never hurts to be on the cutting edge though. :)

Unzip 8.2.3 and the cutting edge will have your blood on the floor. It'll be the wrong color but that don't mean nothin' to you.

Quin

Quote from: MrBcx on February 01, 2025, 11:03:19 AM
Quote from: Quin on February 01, 2025, 10:30:51 AM
Damn, many updates recently. Thanks mrBcx! :)

Quin,

You likely don't need this update but I wanted to get this update out quickly, so that any users that might
be considering using BCX_GRADIENT would have access to what I believe is the final version of this function.
MrBcx,
Truth be told I downloaded this version but have yet to unzip it to my git repository yet for this exact reason. Never hurts to be on the cutting edge though. :)

MrBcx

Quote from: Quin on February 01, 2025, 10:30:51 AM
Damn, many updates recently. Thanks mrBcx! :)

Quin,

You likely don't need this update but I wanted to get this update out quickly, so that any users that might
be considering using BCX_GRADIENT would have access to what I believe is the final version of this function.



Quin

Damn, many updates recently. Thanks mrBcx! :)

MrBcx

BCX 8.2.3 has been released.     

This is a minor update.

https://bcxbasiccoders.com/archives/YahooGroups/Bcx_Files_New/Bcx823.zip

~ MrBcx ~

REVISIONS:

*********************************************************************************************
2025/02/01       Changes in 8.2.3 from 8.2.2
*********************************************************************************************
Kevin Diggins  : BCX_GRADIENT can now can create horizontal and vertical gradients.
                 ****************************************************************************
                 -NOTE- This update will break existing 8.2.2 BCX_GRADIENT statements!
                 ****************************************************************************
                 Usage: BCX_GRADIENT (HWND, TopLeft_Color, BottomRight_Color, Direction[,hDestDC])
                 You must pass the argument "Direction" zero for drawing a Top-to-Bottom gradient
                 or non-zero for drawing a Left-to-Right gradient.
  Here's a colorful demo:
                 
                 $BCXVERSION "8.2.3"
                 GUI "BCX_GRADIENT Demo"

                 SUB FORMLOAD
                    LOCAL AS HWND Form
                    Form = BCX_FORM("BCX_GRADIENT Demo", 0, 0, 360, 250)
                    MODSTYLE(Form, 0, WS_SIZEBOX | WS_MAXIMIZEBOX)
                    CENTER(Form)
                    SHOW(Form)
                    SetTimer(Form, 1, 500, NULL)  ' Start a 1/2 second timer
                 END SUB

                 BEGIN EVENTS
                    STATIC i
                    SELECT CASE CBMSG
                       CASE WM_PAINT
                          DIM AS PAINTSTRUCT ps
                          DIM AS HDC hdc

                          hdc = BeginPaint(CBHWND, &ps)
                          IF i > 4 OR i = 0 THEN i = 1
                          SELECT CASE i
                             CASE 1
                                BCX_GRADIENT(CBHWND, RGB(0, 0, 120), RGB(255, 255, 255), 0)
                             CASE 2
                                BCX_GRADIENT(CBHWND, RGB(120, 0, 0), RGB(255, 255, 255), 1)
                             CASE 3
                                BCX_GRADIENT(CBHWND, RGB(255, 255, 255), RGB(0, 120, 0), 0)
                             CASE 4
                                BCX_GRADIENT(CBHWND, RGB(255, 255, 255), RGB(120, 120, 0), 1)
                          END SELECT
                          EndPaint(CBHWND, &ps)

                       CASE WM_TIMER    ' Force a re-paint of our window
                          INCR i
                          InvalidateRect(CBHWND, NULL, 1)
                          UpdateWindow(CBHWND)  ' Ensure WM_PAINT is processed immediately
                    END SELECT
                 END EVENTS