#1 Re: PDF Engine » SynPDF DRAW_TEXT bug » 2015-02-06 10:24:10

hi, I have similar problem using SynPdf and right align text when text contains space (1 or more).

When the text is printed out the last char of the line is cutted.

Seems the output rect has a wrong dimension when a space is presente.

iFormat := DT_EDITCONTROL or DT_WORDBREAK or DT_NOPREFIX or DT_RIGHT;

DrawText(FCanvas.Handle, PChar(AText), Length(AText), ABounds, iFormat);

I tryed with just DT_RIGHT and I have same problem.

iFormat := DT_RIGHT;


Any ideas, may I try to do something to investigate?

I attach 2 screenshots.

* Pagina 1.pdf - The original text is "06/02/2015 10:58:29[CR]ciao[CR]ciao 3[CR]ciao_3"
* Copertina.pdf - The original text is "06/02/2015 11:04:15"


Ps. I tried changing TPdfDocumentGDI.UseMetaFileTextPositioning using tpExactTextCharacterPositining and the problem seems fixed.

Regards
Cocce

#2 Re: Other components » LVCL - SynCommons » 2013-07-12 08:40:33

LVL and XE4

Hi i tried to compile the LVCL demo but i receive a lot of errors about PWideChar and PAnsiChar

[dcc32 Error] Classes.pas(1313): E2010 Incompatible types: 'PWideChar' and 'PAnsiChar'

is XE4 supported and other Unicode Delphi version?

Thanks in advance

#3 Re: PDF Engine » FastReport PDF export using SynPDF » 2013-06-27 10:54:32

Hi, i tried the export class but seems to have a problem with transparent images, png specially.

Is there a workaroung for that?

Thanks

#4 Re: Other components » Focus a edit when SynTaskDialog is shown » 2012-03-29 13:33:17

ab wrote:

Good idea.

I've made the following modifications:
  *  added tdfQueryFieldFocused optional flag to focus the input field component
  *  InputBox function will now focus the input field component by default

See http://synopse.info/fossil/info/0e7d678761


Veryyyyyyyyyyyyyyyyyy gooooood.

Thanks

#5 Other components » Focus a edit when SynTaskDialog is shown » 2012-03-29 13:00:38

cocce
Replies: 2

Hi, I use a standard InputQuery replacemnt like this:

function InputQuery(const ACaption, APrompt: string; var Value: string): boolean;
var
  Task: TTaskDialog;
begin
  Task.Inst := ACaption;
  Task.Content := APrompt;
  Task.Query := Value;
  Result := Task.Execute([cbOk, cbCancel], 0, [tdfQuery], tiQuestion) = mrOk;
  if Result then
    Value := Task.Query;
end;

I need to focus on edit component instead the button.

Is it possibile or I have to change the FormShow method?

Thanks
Cocce

Board footer

Powered by FluxBB