Page 7 of 32

Posted: Tue Jun 24, 2008 9:07 pm
by ABBKlaus
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).
on the list (maybe this weekend)

Posted: Tue Jun 24, 2008 9:13 pm
by DoubleDutch
Thanks. :D

Posted: Sun Jun 29, 2008 1:08 pm
by ABBKlaus
here“s the update : PurePDF v2.13 http://www.purebasicpower.de/downloads/ ... 3_PB42.zip

changes :
- wrapped some internal commands to the outside (ipf_Get... to pdf_Get...)

Posted: Sun Jun 29, 2008 2:43 pm
by DoubleDutch
Thanks. :D

Posted: Mon Sep 01, 2008 10:13 pm
by Thorsten1867
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

Posted: Mon Sep 01, 2008 11:52 pm
by ABBKlaus
@Thorsten1867 : its fixed, thanks.

Posted: Thu Sep 04, 2008 2:34 pm
by Hurga
Hello
AbbKlaus

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

Did I do something wrong?
The res-file is in the residents dir...

Any suggestions?

Posted: Thu Sep 04, 2008 10:01 pm
by ABBKlaus
Just tested jaPBe and had the same problem. Seems to me like a bug in jaPBe ?
Image

Posted: Fri Sep 05, 2008 1:26 pm
by gnozal
Hello,
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
What do you mean by 'constants are not known by the debugger' ?
I just installed the package, compiled this code :

Code: Select all

Debug #PDF_CELL_RIGHTBORDER
Output was -4, no compiler error.
ABBKlaus wrote:Just tested jaPBe and had the same problem. Seems to me like a bug in jaPBe ?
Could you elaborate please ?
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.

Posted: Fri Sep 05, 2008 4:29 pm
by ABBKlaus
Hello Gnozal,

thanks for clarification, i think he means the ide-autocomplete feature.

Posted: Sat Sep 06, 2008 12:00 pm
by gnozal
ABBKlaus wrote:Hello Gnozal,
thanks for clarification, i think he means the ide-autocomplete feature.
The autocompletion works here for the #PDF_* constants ?!

Posted: Tue Sep 09, 2008 11:09 am
by Hurga
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..."

Posted: Tue Sep 09, 2008 4:32 pm
by ABBKlaus
hmmm, tested here and all works as expected.
Do you have PureBasic 4.10 installed ?
If so, it has a higher priority and you have to change the PureBasic path manually. In jaPBe please go to File\Preferences -> General(TAB) -> PureBasic path and change it !

Regards Klaus

Posted: Tue Sep 09, 2008 5:24 pm
by Hurga
I used PB 4.2

Posted: Tue Sep 09, 2008 6:46 pm
by ABBKlaus
does it work in the PB-IDE ?