on the list (maybe this weekend)DoubleDutch wrote:I used to use some of the internal functions, such as : ipf_GetLMargin, ipf_GetRMargin, ipf_GetWidth, etc
Can these be made available as commands as the internal versions are not working (they are really useful).
PurePDF Version 2.0
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Thanks. 

https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
here´s the update : PurePDF v2.13 http://www.purebasicpower.de/downloads/ ... 3_PB42.zip
changes :
changes :
- wrapped some internal commands to the outside (ipf_Get... to pdf_Get...)
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Thanks. 

https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- Thorsten1867
- Addict
- Posts: 1372
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Bugfix:
Code: Select all
Procedure.s ipf_TruncateCell(w.f,h.f,Text$,border.w=0,Ln.f=0,Align$=#PDF_ALIGN_LEFT,Fill.f=0,Link.w=0,trunc$="...")
Protected wMax.f, TLen.l
If w = 0
w = pdfW - pdfRMargin - pdfX
EndIf
wMax = w - (2 * pdfCMargin)
If wMax < 0 : wMax = 0 : EndIf ; <=========
If ipf_GetStringWidth(Text$) <= wMax
ipf_Cell(w, h, Text$, border, Ln, Align$, Fill, Link)
Else
TLen = Len(Text$)
While ipf_GetStringWidth(Left(Text$, TLen)+trunc$) > wMax
TLen - 1
Wend
ipf_Cell(w, h, Left(Text$, TLen)+trunc$, border, Ln, Align$, Fill, Link)
ProcedureReturn Right(Text$, Len(Text$)-TLen)
EndIf
EndProcedure
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Hello,
I just installed the package, compiled this code :Output was -4, no compiler error.
If you mean the #PDF_* constants are not listed in the constants explorer, this is not a bug. The constants explorer uses an internal database and only shows WIN API constants.
What do you mean by 'constants are not known by the debugger' ?Hurga wrote:I have a problem, that soem (most of the ?) Konstants are not known by the debugger (jaPBe)
i.e. #PDF_CELL_RIGHTBORDER, #PDF_ALIGN_CENTER
I just installed the package, compiled this code :
Code: Select all
Debug #PDF_CELL_RIGHTBORDER
Could you elaborate please ?ABBKlaus wrote:Just tested jaPBe and had the same problem. Seems to me like a bug in jaPBe ?
If you mean the #PDF_* constants are not listed in the constants explorer, this is not a bug. The constants explorer uses an internal database and only shows WIN API constants.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
The autocompletion works here for the #PDF_* constants ?!ABBKlaus wrote:Hello Gnozal,
thanks for clarification, i think he means the ide-autocomplete feature.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
That the strange thing...
Autocomplete works with the constants
when I try this:
Debug #PDF_CELL_RIGHTBORDER
then I got : Constant not found
As for me it seems not be a problem of jaPBe...
Strange...
//EDIT
Reinstalled 4.2 ->
Now it has an "division by zero" debugger error
in the example 6 (Table) in line "Savepdf..."
Autocomplete works with the constants
when I try this:
Debug #PDF_CELL_RIGHTBORDER
then I got : Constant not found
As for me it seems not be a problem of jaPBe...
Strange...
//EDIT
Reinstalled 4.2 ->
Now it has an "division by zero" debugger error
in the example 6 (Table) in line "Savepdf..."