Re: [wxCode-users] centering a string to a point with wxPdfDoc

2009-03-12 Thread Luca Cappa
Hello, On Thu, 12 Mar 2009 14:30:18 +0100, Ulrich Telle wrote: > As you observed the y position corresponds > roughly to the upper left corner of the text box. The baseline of the > font is positioned half of the cell height plus 30% of the font size in > user units below, i.e. > > y_baseline =

Re: [wxCode-users] centering a string to a point with wxPdfDoc

2009-03-12 Thread Luca Cappa
Hello, On Wed, 11 Mar 2009 21:00:40 +0100, Ulrich Telle wrote: > Luca Cappa schrieb: >> I wrote a simple function which draws a string with the its bounding box >> centered to the given pCenter parameter: >> >> void drawCenteredText (wxPdfDocument& pPDF, wxStr

[wxCode-users] centering a string to a point with wxPdfDoc

2009-03-11 Thread Luca Cappa
Hello, I wrote a simple function which draws a string with the its bounding box centered to the given pCenter parameter: void drawCenteredText (wxPdfDocument& pPDF, wxString const& pString, Vector2f const& pCenter) { float lHeightMM = float (pPDF.GetFontSize ()) / 72.f * 2.54f / 10.f; /

[wxCode-users] Patch to compile wxPdfDoc with last wxWidgets trunk revision

2009-03-02 Thread Luca Cappa
Hello, I attach in this email a little patch to compile the wxPdfDoc library with wxWidgets trunk revision. I tested the compilation and runnning only on Windows XP + MSVC2005. Keep up the very good work, Thanks, Luca wxpdfdoc.patch Description: Binary data

[wxCode-users] wxThings compilation problem with wxW 2.8.4 and wxUSE_STL set to 1

2007-05-25 Thread Luca Cappa
Hello, I am using wxWidgets 2.8.4 compiled with "#define wxUSE_STL 1", and compiling wxThings I am getting some compilation errors regarding "... ::Node is not defined... ". I propose here below a patch that would fix that error, and that will make wxThings compileable whether wxUSE_STL is s