-
Content Count
2068 -
Joined
-
Last visited
-
Days Won
27
Everything posted by Attila Kovacs
-
pre-generic dictionary class
Attila Kovacs replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
The "Sorted" property changes the behavior how stringlist works. If it's not set, it won't yield on duplicate values (looking up would take too much time), and Thomas obviously needs this function as he tries to mimic a TDictionary. -
Accessing variables outside a For loop
Attila Kovacs replied to Bernard's topic in Algorithms, Data Structures and Class Design
After the loop != after the loop. in the very next line a register/stack could hold the right value, a couple of lines lower it will surely hold only garbage where the emphasis is on the "could". it depends on the codegen, different compiler options, compiler versions, platforms may generate different loop code -
Accessing variables outside a For loop
Attila Kovacs replied to Bernard's topic in Algorithms, Data Structures and Class Design
There is no guarantee that in the code generated by the compiler there will be any "variable" used. Even if it works today, it could change in the future. -
SVG control package v2.3 update 4 released
Attila Kovacs replied to bverhue's topic in Delphi Third-Party
The prices were ok, I started scratching my head at this: "Delphi Source code of the SVG control package, this includes:" "The source code necessary to parse and render svg graphics" ...... I could not decide if one would get all the sources or partially just dcu's or whatever. -
you can also go with join if you want ;WITH t AS( SELECT * FROM ( VALUES ('a'),('b'),('c') ) AS _(x) ) ,t2 AS( SELECT * FROM ( VALUES ('a'),('b'),('d') ) AS _(y) ) SELECT * FROM t LEFT JOIN t2 ON t2.y=t.x
-
Interesting size reduction algorithm for HashTable
Attila Kovacs replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Okay. This explains everything. This is the Message Of The Century. -
Interesting size reduction algorithm for HashTable
Attila Kovacs replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
And meanwhile we are sitting here, money just falling out of our *nus, which we gladly forward to emba just for being collective responsible for whatever -
No. The event OnJoyMove should be triggered every time you move the joystick, not just one time. There must be something else.
-
procedure TForm1.MyOnMoveHandler(Sender: TObject; var X, Y: Integer); begin DoSomething(x, y); end; procedure TForm1.X; begin myJoy := Tjoystick.Create(Form1); myJoy.OnJoyMove := MyOnMoveHandler; end;
-
Get class instance in record
Attila Kovacs replied to Ugochukwu Mmaduekwe's topic in Algorithms, Data Structures and Class Design
Not outside, as it's strict private. You could pass TA instances to the method you are using to initialize your record. class function DefaultB(ATA: TA): TB; static; begin Result.ClassAInstance := ATA; end; -
As a Delphi expert, do you ever need to refactor or improve your code?
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
It's an interesting topic since ages. Please don't kill it. The original question was also very broad (or strictly just a yes/no question). -
And it's not just about html, it's about everything... I have so far: Runtime user rights management with htscript Runtime charts designer with htreports, including SVG maps over 8500 paths (ZIP code areas) HTML Report generator in a Report generator (like the one in the video, just not FR) On the fly datasheet generator, in just msecs Custom dropdown forms with interactive elements Several webshop-template/text editors with htmledit (wysiwyg) Several visualizations like notes, appointments, charts, etc.. with dynamic content and dynamic sizes (looks really great) many other things... and many many new ideas.. I can't wait for the office extensions! I love it! And everything native. Dig this.
-
Can't reproduce in Chrome. @Kas Ob. Wat is your default os encoding and which parentheses was it?
-
custom attributes question
Attila Kovacs replied to David Schwartz's topic in RTL and Delphi Object Pascal
They are different, but you can parse and look for the field or for the property for yourself. You can also put as many attributes to your field/property as you want. -
@Alexander Sviridenkov So you have implemented the whole office package into Delphi? I hope it's not only for FMX. 😉
-
holy cow Alexander
-
I was playing with TWebBrowser and it turns out that it just renders crap in HDPI mode. A simple winforms app with a webbrowser renders everything correctly. Both exe's are added to FEATURE_BROWSER_EMULATION with 11000 and checked the compatibility mode with https://detectmybrowser.com/ Tested in 10.1/10.2/10.3 I could not find any report about it, maybe I'm doing something wrong. Has anyone else experienced this?
-
Got it. The key is to register the exe name under "FEATURE_96DPI_PIXEL" in the registry with a dword=1. This makes TWebBrowser render correctly in a DPIAware applicaiton. Thank you @Der schöne Günther for the hint!
-
Wow @Der schöne Günther, bingo. I've compared the manifests between the winforms and the delphi app and the winforms app has no dpiAware:True in it. So I unchecked it in Delphi and voila, they render the same. Thanks for the tip, but.... Now I have an other question... What should I do now? Looks like I would need it for the VCL app but not for the TWebBrowser!?
-
maybe your original project's exe name added to the registry to run in hihgher compatibility mode? https://stackoverflow.com/questions/25843845/how-to-have-delphi-twebbrowser-component-running-in-ie9-mode
-
It's amazing that you can argue with a quotation from your own post. Maybe 400% text zoom would be better.
-
So what? First time experiences with 4K?
-
scaling, not the text size
-
no. use 200% scaling for best result
-
What are your compiler settings for debug builds?
Attila Kovacs replied to dummzeuch's topic in Delphi IDE and APIs
This makes Greta even more sad.