Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: LETARTARE on December 25, 2021, 02:46:26 pm

Title: 'cb-12610' and 'wxWidgets' nightly builds Dec 24, 2021
Post by: LETARTARE on December 25, 2021, 02:46:26 pm
Win7-64, gcc = x86_64-8.1.0-posix-seh-rt_v6-rev0

1- I compiled the latest version of 'wxWidgets' from 24/12/2021 (http://https://github.com/wxWidgets/wxWidgets)
  1.1- adding in '...\3.1.6\include\wx\msw\setup.h ' for Msw 
Quote
#define wxUSE_GRAPHICS_DIRECT2D wxUSE_GRAPHICS_CONTEXT
  1.2- construction with a script
  * no problem ...

2- compilation of 'cb-12610' with 'wx-3.1.6' ?
  2.1 i used a globale variable in project : '#wx316_64' initialized to the right value
  2.2 at compile time the only problem comes from the modification of 'class wxAuiNoteBookPage', which has had the public variable 'wxBitmap bitmap' changed to 'wxBitmapBundle bitmap'
       - you have to modify 'Notebookstyles.cpp' which uses it in 'NbStyleVC71::DrawTab(...)'
       - my modifications are clumsy, they work but do not allow to compile under 'wx-3.1.5' (see patch)

It is only in order to prepare 'CB' for the future version of wx-3.1.6, that I ask the developers to look for a more elegant solution to this problem
Title: Re: 'cb-12610' and 'wxWidgets' nightly builds Dec 24, 2021
Post by: Miguel Gimenez on December 26, 2021, 02:13:17 pm
I plan adapting the source to wx3.1.6, specially because this release is a 3.2.0-beta, but I will wait for the official release because currently wxAUI and wxButton still have problems with wxBitmapBundle when scale factor is not 1.0.

This wxBitmapBundle feature will be useful for Hi-DPI, but the code will need further adaptations.
Title: Re: 'cb-12610' and 'wxWidgets' nightly builds Dec 24, 2021
Post by: LETARTARE on December 26, 2021, 04:41:11 pm
Thank you,
if only this file is to be changed, this is already comforting.