Author Topic: Function 'BCX_Pie'  (Read 1202 times)

RMeyer

  • Newbie
  • *
  • Posts: 8
    • View Profile
Function 'BCX_Pie'
« on: July 23, 2023, 04:25:59 AM »
Hello Mr BCX,

after research in the BCX forum or source code BCX does not contain (unintentionally ?) an equivalent for the GDI function 'Pie'.
My variant of 'bc.bas' contains the hopefully correctly implemented function 'BCX_Pie'.
Could you add the function in the next BCX update?

Richard Meyer



MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 2392
    • View Profile
Re: Function 'BCX_Pie'
« Reply #1 on: July 23, 2023, 09:16:16 AM »
Hello Richard,

Thank you for the BCX_PIE function and for the care you gave incorporating it into BCX. 

Excellent job!  We have gone far too long without our pie!

BCX_PIE  will be included in the forthcoming version 8.0.1.


Ref:  https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-pie

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 2392
    • View Profile
Re: Function 'BCX_Pie'
« Reply #2 on: July 23, 2023, 10:41:55 AM »
The attached screenshot uses the BCX_ARC example from BCX Help and simply replaces BCX_ARC with BCX_PIE.

This showed me the implementation works and it shows some differences between the two functions.


Robert

  • Hero Member
  • *****
  • Posts: 1256
    • View Profile
Re: Function 'BCX_Pie'
« Reply #3 on: July 23, 2023, 04:41:32 PM »
BCX 8.0.1 teaser. Wait for it !

Code: [Select]
GUI "BCX_PIE"
 
 SUB FORMLOAD
   GLOBAL Form1 AS HWND
   Form1 = BCX_FORM("BCX_PIE", 0, 0, 110, 115)
   BCX_SET_FORM_COLOR(Form1,QBCOLOR(1))
   CENTER(Form1)
   SHOW(Form1)
 END SUB
 
 BEGIN EVENTS
   SELECT CASE CBMSG
   CASE WM_PAINT
     CALL DrawStuff
   END SELECT
 END EVENTS
 
 SUB DrawStuff
   BCX_PIE(Form1,25, 25, 190, 190, 200, 60, 200, 150, QBCOLOR(14), QBCOLOR(9))
 END SUB



MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 2392
    • View Profile
Re: Function 'BCX_Pie'
« Reply #4 on: July 23, 2023, 04:56:49 PM »

BCX 8.0.1 teaser. Wait for it !


wocka, wocka, wocka, wocka,

bloop, bloop, bloop

 ;D

RMeyer

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Function 'BCX_Pie'
« Reply #5 on: July 25, 2023, 12:33:38 AM »
Just a modest addition to your brilliant BCX translator....