-
Content Count
1943 -
Joined
-
Last visited
-
Days Won
25
Everything posted by Attila Kovacs
-
Yup. App takes over 200MB RAM and windows starts swapping, you can see the Page Faults in the task manager. Also thats why backwards is slower. I have no clue how can one influence that, never had a problem like that.
-
Just tried the exact same demo with 7.2.1 and 1million root nodes, it's fast as lightning in both directions.
-
Issue with code-editor toolbars
Attila Kovacs replied to PeterPanettone's topic in Delphi IDE and APIs
@Yaron Check "Always show designer items" under Environment Options / Tool Palette, and voila -
Issue with code-editor toolbars
Attila Kovacs replied to PeterPanettone's topic in Delphi IDE and APIs
Isn't that, that you can pull out any toolbar to undocked state, close it and save desktop settings? -
I can't exactly remember but I can see in my sources that I'm caching (also calculating myself, only once) the Nodeheight's and returning it in VSTMeasureItem event for VT. This would not make any sense if it wasn't too slow for me too, back to the days. Can't remember.
-
@Der schöne Günther Indeed. And also funny. But does not apply then styles are overriding every design time decorations except I'm implementing one custom hook for every different control types.
-
HELP: Decoding of data stored in array of char - RFID tag's
Attila Kovacs replied to CRO_Tomislav's topic in VCL
Don't do that. -
TJson - Strip TDateTime property where value is 0?
Attila Kovacs replied to Lars Fosdal's topic in Network, Cloud and Web
Too bad you can't register a converter for simple types. -
TJson - Strip TDateTime property where value is 0?
Attila Kovacs replied to Lars Fosdal's topic in Network, Cloud and Web
Kinda. Convert it first with ObjectToJsonObject then remove the time 0 pairs then generate the string. Or create a json wrapper for TDateClass where HasDate and NoDate are strings. In this case you have to take care of the Date-Format. btw. "1899-12-30T00:00:00.000Z" is a valid date. 🙂 -
Named pipe failure, multithreading and asynchronous I/O
Attila Kovacs replied to FPiette's topic in Windows API
I can't recompile it on w7 but the exes are working just fine in a w7 VM for me. -
Named pipe failure, multithreading and asynchronous I/O
Attila Kovacs replied to FPiette's topic in Windows API
I'm pretty sure. Win10 -
How to create a weak array?
Attila Kovacs posted a topic in Algorithms, Data Structures and Class Design
Hi, how can I declare a TArray<IFoo> where the elements are weak referenced? -
How to create a weak array?
Attila Kovacs replied to Attila Kovacs's topic in Algorithms, Data Structures and Class Design
@Stefan Glienke thanks. -
Named pipe failure, multithreading and asynchronous I/O
Attila Kovacs replied to FPiette's topic in Windows API
It works fine on Berlin U2. Edit: 10.3 CE too. -
The simplest way, without having to reimplement a couple of things from the original CMShowingChanged is leaving the form on wsMinimized and then calling a SW_SHOWNOACTIVATE: private procedure CMShowingChanged(var Message: TMessage); message CM_SHOWINGCHANGED; procedure TForm3.CMShowingChanged(var Message: TMessage); begin inherited; ShowWindow(Handle, SW_SHOWNOACTIVATE); end; This will also result a "restore" animation, if enabled.
-
I'd try to override the "show" process and call showwindow with SW_SHOWNOACTIVATE. Maybe there is already something in VCL.
-
@limelect ok, sorry but I'm not operating with explorer at all. I'm using Far Manager. btw. you could lookup libraries/pictures from the mentioned list and fire the same location in a new explorer window without knowing its real location.
-
@limelect In this case you could cache as a lookup table the entries from: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions and fire the explorer for example with: start shell:PicturesLibrary or explorer shell:PicturesLibrary where PicturesLibrary is the example, one element from the FolderDescriptions Then you will land there where you was and not in its translated dir.
-
does this help you to understand how "libraries" work? cd %appdata%\Microsoft\Windows\Libraries
-
@Stefan Glienke off> btw, regarding to DelphiAST updates, are you planning to update your uses helper? </off
-
Why would you bother some unused variables if you can live with those warnings? btw. copy paste into a text file and grep
-
I have a form, designed size let's say 640x680. Everything dynamic, every control is inside a TGridPanel, aligned. Designed formstate wsMaximized, one button can minimize the app with Application.Minimize or ShowWindow(Handle, SW_MINIMIZE). Everything fine. For the fist sight. But: On startup, the form will be rendered in 640x680 then resized to fullscreen and re-rendered. On minimize, form will silently resized to 640x680, rendered while it's became invisible, and on restore resized again to fullscreen and re-rendered again. How should I skip the unnecessary resizings/renderings/align calculations?
-
Minimizing and restoring a maximized window
Attila Kovacs replied to Attila Kovacs's topic in Windows API
Hm, looks like the solution is easier than I thought. Instead of setting the formstate to wsMaximized, if I'm setting the form's width and height to the Screen's width and height in the OnCreate event, the problems are gone. -
List of all uses clause items in the whole project
Attila Kovacs replied to PeterPanettone's topic in GExperts
TListView.Items.BeginUpdate / EndUpdate? -
Thomas, I do it already, there are at least 2 components which does about the same, except the auto DPI resizing, I have to do it manually and animation which I don't really care. But I'm always open for new things, I'm waiting for the answers.