PeterBelow
Members-
Content Count
517 -
Joined
-
Last visited
-
Days Won
13
PeterBelow last won the day on April 30
PeterBelow had the most liked content!
Community Reputation
239 ExcellentTechnical Information
-
Delphi-Version
Delphi 11 Alexandria
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Look at this help entry for an overview of how to modify the way a TDBGrid is drawn. In your case set the DefaultDrawing property of the grid to false and attach a handler to the OnDrawColumnCell event. The handler can check the attached dataset's current row to see what row it has to draw. If it is the first just call the grid's DefaultDrawColumnCell method directly. If it is the second row change the grid.canvas.font to bold first and then call DefaultDrawColumnCell. That should do what you want.
-
GUIs are just the majority of the applications build with Delphi. But you can easily build console programs with it, too. The File -> New dialog also offers a template for that.
-
In this case just override the Loaded method of the frame and link the event handler in code there, after calling the inherited method first. That will fix the issue even if you cannot figure out why it happens in the first place. Not really satisfactory, of course, but the only reason I can think of would be if somebody cleared the Name property of the dataset in question or moved the handler method from published to public scope by accident.
-
Is there a keystroke that re invokes Delphi keymapping versus add on?
PeterBelow replied to rudy999's topic in Delphi IDE and APIs
The IDE configuration is stored in the registry and the HKEY_CURRENT_USER hive is of course specific for the user account the IDE is running under. Compare the content of the HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\23.0\Editor\Options\Known Editor Enhancements and HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\23.0\Experts keys under the two accounts (adjust the 23.0 if you use a different Delphi version than 12.2). -
Is there a keystroke that re invokes Delphi keymapping versus add on?
PeterBelow replied to rudy999's topic in Delphi IDE and APIs
If you run into this problem and then call up the Tools -> Options dialog, what does it show as active key mapping on the Editor -> Key mapping page? -
If you put a breakpoint on the first GetDeviceCaps line, do you reach it when running under the debugger? If so, does Printer.Handle have a reasonable value? Are you dealing with a network printer here that may be offline? So many questions, so little data...
-
Type inference in assignment but not comparison??
PeterBelow replied to PiedSoftware's topic in RTL and Delphi Object Pascal
But you can state it explicitely, just use an appropriate type cast, e.q. Smallint(1) instead of just 1. -
Enum modules return ONLY the application, no other packages
PeterBelow replied to alogrep's topic in VCL
Have you enabled "Build with run-time packages" in the project options? If not all code from the units in question will be compiled into a monolithic exe and there will be no other modules other than DLLs used from the OS or statically linked by units used in the application. -
You need file system level authentification to access files on the LAN via file system API functions, see WNetAddConnection3 if this is for Windows. For web folders you have to use something like ftp if the server supports it.
-
TDBGrid does not support that. If you have fields with long text a grid is not the best way to show it, better use a TDBMemo in addition to the grid and tie it to the field in question. It will them show the field content of the record active in the grid as the user scrolls through the records.
-
How do I create/generate unique ID texts?
PeterBelow replied to JohnLM's topic in Algorithms, Data Structures and Class Design
Look at the System.Hash unit, this kind of problem is usually the domain of hashing. -
Yes, apart from the licence restriction re yearly revenue.
-
Take a look at TVirtualImagelist and TVirtualimageCollection, these allow you to supply different versions (sizes) of bitmaps optimized for the DPI settings your app may encounter in the wild. This tends to look better than getting the images scaled at runtime from a single sized version.
-
You do not have the source (pas) for the unit and you should never set up a project to have the source files for Delphi RTL etc. units on its search path. You should have the precompiled FireDAC.Phys.SQLiteWrapper.dcu, though, and the path to its folder should be on the IDE library path for the target platform in question.
-
You need a 64-bit obj file for that. Is this for a C++-Builder or a Delphi project?