Profile cover photo
Profile photo
Paul TOTH
About
Communities and Collections
View all
Posts

Post has attachment
Hello,

I've updated my PDFReader project to use my own library libPDFium build from scratch with the last PDFium source code !

https://github.com/tothpaul/PDFiumReader

Can you test this with TDatetimePicker on something else than Windows 7 ?

Put a DTP and a Memo on a form
set the DTP OnChange event to log its date in the memo

procedure TForm1.DateTimePicker1Change(Sender: TObject);
begin
Memo1.Lines.Add(DateToSTr(DateTimePicker1.Date));
end;

when I select a date, the OnChange event is fired twice.

Worst, if you set Min/MaxDate properties and you click on the dropdown calendar, the OnChange event is fired twice and, the first time, the Date value is the MaxDate !

I've found a workaround, can you test it also ?

type
TDateTimePicker = class(Vcl.ComCtrls.TDateTimePicker)
private
FIgnoreChange: Boolean;
public
procedure WMNotify(var Msg: TWMNotifyDT); message WM_NOTIFY;
procedure Change; override;
end;

procedure TDateTimePicker.WMNotify(var Msg: TWMNotifyDT);
begin
if Msg.NMHdr.code = MCN_SELCHANGE then
FIgnoreChange := True;
inherited;
end;

procedure TDateTimePicker.Change;
begin
if FIgnoreChange then
FIgnoreChange := False;
else
inherited;
end;

Hello,

Is there any way yo have a graphic interface for a Delphi application on Windows IoT x86 ?

I can build Console application, but can't find how to create a GUI, the traditionnal Win32 API is not available.

Thanks

Post has attachment
Hello !!!

I've finally fixed the few bugs on my (Mine)Craft translation that lead to a blank screen...incredible how 2 line of code can completely mess up everything :)

https://github.com/tothpaul/DelphiCraft

Post has attachment
Que tout cela est pénible !

on ne cherche pas à me voler mon numéro de carte de crédit, je veux juste lire une info sur firebird !!!
Photo
Add a comment...

Post has attachment
Add a comment...

Post has attachment

test de formats

gras *doube-gras* *avec espace*
-barré -barré-
italic _italic_

I have a strange error on a very simple (from VCL point of view, just a couple of forms) XE3 application.

I have a form with a TImage containing a PNG image, sometimes, the application raise a system error 87 while loading Image1.Picture.Data from the DFM

I can not reproduce the problem on my PC of course...is there any know ressource leak under XE3 around TPNGImage ?

Post has attachment
Thinking on SQL and strings

https://github.com/tothpaul/DelphiTips/tree/master/SQLStrings

In fact, I'd like to have such feature at compile time :)
Wait while more posts are being loaded