-
Content Count
1986 -
Joined
-
Last visited
-
Days Won
26
Everything posted by Attila Kovacs
-
@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.
-
Otherwise, really impressive. I like how the Imagelist captures the DPI change, the compressed storage, preview in imagelist-editor, plus the save button. The zooming tiger is so fast that I can't even believe that it's being rendered for every frame, is it some bitmap transformation? One thing I'm missing, linking the imagelists into a chain. Ergo, defining the svg's once, in a "main" imagelist and having multiple imagelists pointing to the "main" with different sizes. Great work
-
Lib does not work on a system with decimal separator different than point "."
-
And once you are done patching these into your search routines, one day you will face a component with its own TWriter and TReader which breaks all these regular rules and won't work, or in worst case, it will even screw up your concat logic and crash badly.
-
Theme XYZ... There is this IDE theme with the dark/blue etc. themes. Then there is this modernthemeXXX.bpl. And there are windows themes since 7 (I think). Am I right? Now,I killed the first two, then I came across this: http://docwiki.embarcadero.com/RADStudio/Rio/en/Disabling_Themes_in_the_IDE_and_in_Your_Application However, I can't see any difference if I remove the lines from this merge manifest. I'm also not sure how should this work. Why would windows look for this file? Btw. it's on W10, the article says 7/8. Does it apply for W10 too? Btw btw, it's still "CodeGear RAD Studio" in the manifest. Why? Would one need a new signature if it changes? Money? Edit: Ok, looks like from W10 things are changed, there is no more "classic" (stone age) theme anymore. I could also fix the dark "Standard" toolbar by resetting it to its defaults. It was just a bit strange that the latest IDE without any theming also differs a _LOT_ from Berlin.
-
You can still drop themeloader, themeXY, and of course moderntheme bpl too. Yes, it was also themed long before the "themes" (modernthemeXXX.bpl). But then you will face, how poor the new forms (like options) and some other parts are implemented. Un-/Wrong Aligned controls etc... And the "Standard" toolbar has a dark background, if I nuke modernthemeXXX.bpl and looking at the bare, winapi rendered IDE. And these things never will be fixed. But hey, on the other side, JAVA apps do not fall so slowly anymore.
-
"duplicates not allowed" error when opening a project
Attila Kovacs replied to Edwin Yip's topic in Delphi IDE and APIs
you have duplicate entries in your dbxconnections.ini, possibly -
Right Process for Changing an Application's Icon?
Attila Kovacs replied to Steve Maughan's topic in VCL
TForm also has an Icon property. Just for the record. An assigned Icon could lead to the same symptoms. -
This was bothering me forever. At the beginning, because of collecting possible sensible data and keeping it in the memory, later, because if I needed it, it wasn't ergonomic enough. So I have bound it to the ctrl-shift-[F1/F2] for showing the window, navigate up/down, and copy to clipboard on releasing the keys. It's just a couple of lines, (no OTA on this), if one of you likes it I can put the code here later.
-
Best site/source for SQL Server questions?
Attila Kovacs replied to Lars Fosdal's topic in Databases
I see, I'd check then "Row Versioning". I never used it yet but I'll try it myself when I find some time. -
Best site/source for SQL Server questions?
Attila Kovacs replied to Lars Fosdal's topic in Databases
WITH (NOLOCK) ? evt. Row Versioning -
@Uwe Raabe Hehe, I managed it too a couple of weeks ago. Don't ask me how, but that was a looooong loooong debug session until I found the problem 😉
-
best practise sharing : 2 buttons with mrOK on a form
Attila Kovacs replied to bernhard_LA's topic in VCL
ModalResult is an integer value, so you can assign whatever you want, the form will close and ModalResult will hold this value. -
I can easily reproduce this putting a 2nd unit1.pas anywhere in the search path and/or library path _AND_ storing the applications unit1.pas somewhere else like the .dpr itself. The search order is given. (btw. IDE dies badly if you put a file into the uses lists with 0 bytes length :D) Edit: Maybe some dead entries in the .dproj? It's suspicious that you didn't create a new project because it's not called Project1, did you copy the old one?
-
just for curiosity what happens if you write in the uses list : uses .... Main.pas in 'src\frm\Main.pas'; if it helps then you have an other main.pas in your search path and you should be able to open it with ctrl-click on the unit name in the uses list.
-
What is meant as 'implementation detail' vs 'non-implementation detail'?
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
@Bill Meyer Not really.. It was something like leaky-abstraction or similar can't recall. -
What is meant as 'implementation detail' vs 'non-implementation detail'?
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
@Dalija Prasnikar What what the blog post about the leaking strings again? I can't find it anymore.