-
Content Count
1977 -
Joined
-
Last visited
-
Days Won
26
Everything posted by Attila Kovacs
-
so why do you comment on something you don't understand?:) Especially with ctrl-c/ctrl-v. Is that all how clipboard works in your opinion?:)
-
Hm, thanks Lars, this will be a good start. Hope I can isolate, not just watch. Lets see!
-
Thanks @Ugochukwu Mmaduekwe, no problem, I just wanted to inform if there is already something for that. I'll check hooking up some windows messages.
-
@Fr0sT.Brutal Not quite. I think my description is also crystal clear. 😉
-
it's a recurring problem most likely no ODBC driver installed
- 2 replies
-
- firedac
- delphi 10.3.3
-
(and 1 more)
Tagged with:
-
Bug in Delphi string behavior?
Attila Kovacs replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
High five! -
@Kryvich thx, works as you described. (db login-error-form, prior to any other, including main-form created)
-
Wow. After so many years of working with Delphi I have just noticed that you can paste code into the watch list 🤪 Or did I install some experts?
-
Reintroducing overloaded methods - is it possible?
Attila Kovacs replied to aehimself's topic in Algorithms, Data Structures and Class Design
What if you create a TBaseBase with protected overloaded methods and public in TBase(TBaseBase) TChild(TBaseBase) or TBase with protecdted overloaded methods and public in TBaseExposed(TBase) and TChild(TBase) ? Or you go from New() to .FromJSON(JSON: string): TMyClass and .FromInteger(I: integer): TMyClass? Or creating records with Implicit operators for string and integer/whatever, then you could write Child := '{somejson}'; or Child := 1; (did I go too far?:) -
Reintroducing overloaded methods - is it possible?
Attila Kovacs replied to aehimself's topic in Algorithms, Data Structures and Class Design
@aehimself Yep, I missed that everything is public. You can't hide overloaded public methods. -
Reintroducing overloaded methods - is it possible?
Attila Kovacs replied to aehimself's topic in Algorithms, Data Structures and Class Design
you won't see the 4 overloads from a 2nd unit, only from this one where the classes are declared Ah everything is Public. You can't hide it. -
Reintroducing overloaded methods - is it possible?
Attila Kovacs replied to aehimself's topic in Algorithms, Data Structures and Class Design
try it again from a new unit -
paste into watch list
Attila Kovacs replied to Attila Kovacs's topic in Tips / Blogs / Tutorials / Videos
@limelect I've started a 10.2 without anything installed and it works. Give it a try. -
What color did a user click on in an Image
Attila Kovacs replied to Tom F's topic in Algorithms, Data Structures and Class Design
if it's a 24bit bitmap you could try with TBitmap's ScanLine -
TFDBatchMoveSQLWriter and table structure updates
Attila Kovacs replied to Stéphane Wierzbicki's topic in Databases
@Stéphane Wierzbicki It's not that easy as it sounds. What if a column name changes? Is it a new column or just the name changed? What if a datatype changes? etc..etc.. Anyway, I can't even imagine what can you do with this kind of data in an SQL Server where columns are occasionally added. Either you should unpivot the excel before importing it or storing the file in a blob. -
In windows 10, the title bar gets smaller in maximized state as in any other states. Not just the IDE, every application. And this is not the issue. The issue is, somebody decided to put controls onto the title bar. This is such a no-go, antipattern, etc.... every kid knows that. Now you see why.
-
Overload methods or use unique names?
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
procedure AddTask(aAction: TTaskAction; aTask: TTask); overload; // Execute aTask immeditaly Does it make sense? AddTask(taQueueTaskOnly, lTask); // Execute aTask immediately -
Overload methods or use unique names?
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Strange, if you look at your original example, the proper function names are already there, at the end of each line, in the comments. -
New Third Party section - DelphiHTMLComponents
Attila Kovacs replied to Darian Miller's topic in Community Management
Yeah, it would be great. -
Black screen while processing longer task on windows server 2012 R2
Attila Kovacs replied to Soji's topic in General Help
Except it's kingly slow and the queue will be processed right after the job is finished, also replaying every mouse / keyboard event happened meanwhile the loop was running. -
Black screen while processing longer task on windows server 2012 R2
Attila Kovacs replied to Soji's topic in General Help
You still have to call Application.Processmessages in your loops. Otherwise you have to hook in a lower level. ( I think, I would have to test to be sure if SetWindowsHookEx would work) -
Black screen while processing longer task on windows server 2012 R2
Attila Kovacs replied to Soji's topic in General Help
As your blocking task runs in a modal form with an own message loop I would not concern about calling Application.Processmessages. However, with a small addition. I would hook Application.OnMessages (as long as the blocking code runs) to handle only WM_PAINT and the messages sent to the Abort button (if any). (in this example WM_TIMER is included only for animations, and btnStart for not be stuck in down state) Of course this would also prevent the system from a restart, for that, you should watch for other messages too, and handle properly, if its a problem. procedure TfrmDoSomething.MyOnMessage(var Msg: TMsg; var Handled: boolean); begin if (Msg.hwnd = btnStart.Handle) and (Msg.Message = WM_MOUSELEAVE) then else if Msg.hwnd = btnAbort.Handle then else case Msg.Message of WM_PAINT, WM_TIMER: ; else Handled := True; end; end; -
No KeyUp for numpad keys after relese Shift
Attila Kovacs replied to ŁukaszDe's topic in Windows API
I can't see anything broken. SHIFT overrides NumLock and CapsLock. That means, with NumLock ON pressing SHIFT + 0 = pressing insert. Releasing SHIFT means, you are holding the 0 key, releasing 0 means you are releasing the 0 key, and not Insert. That's how windows works. -
Printing Multiple Charts that Span Pages
Attila Kovacs replied to Larry Hengen's topic in General Help
Interesting approach, but yes, could be. -
Printing Multiple Charts that Span Pages
Attila Kovacs replied to Larry Hengen's topic in General Help
I'm not sure about the 50 meters, but there is also https://www.delphihtmlcomponents.com/reports.html