logo
down
shadow

DELPHI QUESTIONS

Resize PNG image
Resize PNG image
this one helps. The original author of the PNGImage component (the basis of the Delphi native component) had a forum where he, and others, posted code snippets on how to do things using the PNGImage component.Before the forum was taken down I grabbed
TAG : delphi
Date : November 27 2020, 07:01 PM , By : Henry Pietszak
create a wav file from multiple wav files in delphi
create a wav file from multiple wav files in delphi
I wish this helpful for you You can use Wave Audio Package for this.And here is the implementation of a function to make a wave audio stream by merging several wave audio streams.
TAG : delphi
Date : November 26 2020, 07:01 PM , By : ManelR
Can Delphi dragging be "promoted" to docking?
Can Delphi dragging be "promoted" to docking?
wish help you to fix your issue I have a solution now which works for me, so I'll answer myself - maybe somebody has a use for this too.Let's start with a small sample application that creates a TPageControl with 8 docked forms, with code to allow fo
TAG : delphi
Date : November 25 2020, 07:01 PM , By : user3863226
Using Delphi's ShellExecute() with the process inheriting the original console?
Using Delphi's ShellExecute() with the process inheriting the original console?
This might help you Using ShellExecute() you won't be able to make the spawned application use the same console. The HWND element in the ShellExecute() call is documented:
TAG : delphi
Date : November 25 2020, 07:01 PM , By : Deborah Alaine Sando
Where to download Delphi BDE 5.01
Where to download Delphi BDE 5.01
I wish did fix the issue. Yes, google knows some places like here.
TAG : delphi
Date : November 24 2020, 07:00 PM , By : fafa
How can create a color progressbar in delphi?
How can create a color progressbar in delphi?
around this issue With themes enabled you cannot change the color of the progressbar. With themes disabled you can change the color by sending a PBM_SETBARCOLOR message to the control.Since you want a to change the color of your themed progressbar, y
TAG : delphi
Date : November 23 2020, 07:00 PM , By : vicarioustitan
Is there a Delphi dropdown notification component?
Is there a Delphi dropdown notification component?
I think the issue was by ths following , I have made one using a TPanel and few lines of code. But you can try something like TMS Adv Panel http://www.tmssoftware.com/site/advpanel.asp.
TAG : delphi
Date : November 22 2020, 07:01 PM , By : Giordan83
How make DBLookupcombobox has a Windows 7 Look with RAD 2010?
How make DBLookupcombobox has a Windows 7 Look with RAD 2010?
will be helpful for those in need I have discovered that the reason for this behavior it that TDBLookupComboBox is a descendant of TCustomControl. Most similar controls are descendants of TCustomEdit, TCustomComboBox or TCustomListBox, which all call
TAG : delphi
Date : November 22 2020, 07:01 PM , By : taikamatto1
How to change the pixelformat of a TWICImage in Delphi 2010
How to change the pixelformat of a TWICImage in Delphi 2010
it helps some times Bummi and Warren P asked that I post the answer that I had added sometime ago. Here is the answer:For those that may want to know I tried this and it seems to work (it uses TcxImage by Developer Express, but I suspect TImage will
TAG : delphi
Date : November 20 2020, 07:00 PM , By : tatamas
Improve speed of own debug visualizer for Delphi 2010
Improve speed of own debug visualizer for Delphi 2010
wish help you to fix your issue That Evaluate needs to do a surprising amount of work. The compiler needs to compile it, resolving symbols to memory addresses, while evaluating properties may cause functions to be called, which needs the debugger to
TAG : delphi
Date : November 18 2020, 07:00 PM , By : Barak Yur
I have the Process ID and need to close the associate process programmatically with Delphi 5
I have the Process ID and need to close the associate process programmatically with Delphi 5
this will help If you have a process id and want to force that process to terminate, you can use this code:
TAG : delphi
Date : November 17 2020, 07:01 PM , By : akshata
How test a Delphi app with Application Verifier 4.0?
How test a Delphi app with Application Verifier 4.0?
wish helps you Application Verifier is a GUI wrapper around a bunch of registry settings. When you add your application to Application Verifier, it tells Windows to do more checking when your application is running.
TAG : delphi
Date : November 17 2020, 07:01 PM , By : MarioProgrammer529
DataSetProvider - DataSet to ClientDataSet
DataSetProvider - DataSet to ClientDataSet
it should still fix some issue You're looking for the TDataSetProvider.BeforeUpdateRecord event. Write an event handler for this event and you can take manual control of how the data is applied back to the data base. Something like this
TAG : delphi
Date : November 17 2020, 07:01 PM , By : user3860411
Creating Delphi Objects at runtime based on class type
Creating Delphi Objects at runtime based on class type
Hope that helps There is insufficient information in the question.Where does the "type" of the form objects (in the question) come from? Is it simply a type name? How does CreateObjects() discover the type that is required for each object?
TAG : delphi
Date : November 14 2020, 07:01 PM , By : Rajesh
installing Delphi5 pro in windows 64b
installing Delphi5 pro in windows 64b
To fix the issue you can do I don't know if this helps, but I run Delphi 7 on 64 bit Windows 7 with no problem.There are some special steps to installing it, but after that, it works fine.
TAG : delphi
Date : November 14 2020, 07:01 PM , By : sugi1119
Which is more appropriate for pbx events, TIdTCPServer or TIdTCPClient?
Which is more appropriate for pbx events, TIdTCPServer or TIdTCPClient?
With these it helps The difference between a TCP server and client is who initiates the connection. The client connects to the server. So I'm guessing you should use the TIdTCPClient.
TAG : delphi
Date : November 13 2020, 07:01 PM , By : Radha Krishna N
Why "menus" unit is finalized too early?
Why "menus" unit is finalized too early?
Does that help That situation can happens when a unit finalize after another unit it indirectly depends on.For exemple, take the following unit:
TAG : delphi
Date : November 13 2020, 07:01 PM , By : user3859259
Small Command line scripter (like Autocad commands) one line editor
Small Command line scripter (like Autocad commands) one line editor
it fixes the issue Maybe you will like this, maybe not. But it sounds actually like you would like to get some basic understanding, too. You might like what I think is a classic first reading on how to build a compiler by Jack Crenshaw. You can find
TAG : delphi
Date : November 10 2020, 07:00 PM , By : I3_I3_C
Delphi: How to set the default project in a project group?
Delphi: How to set the default project in a project group?
it fixes the issue Far from ideal but the only way I know is like in the Delphi IDE, right click your default project in the Project Manager and select Build Later. or Switch the lines for Project A and Project B in the .bpg file.
TAG : delphi
Date : November 10 2020, 07:00 PM , By : user3858378
Delphi exe, will it run with just BDE configuration?
Delphi exe, will it run with just BDE configuration?
To fix this issue If the application uses the BDE then the BDE has to be installed before the exe can run. The BDE files are not linked into the exe.A Delphi installation normally also installs the BDE. This might give the impression that Delphi has
TAG : delphi
Date : November 08 2020, 07:01 PM , By : capitainabloc
Looking for Delphi 4 professional/Quickreport
Looking for Delphi 4 professional/Quickreport
should help you out Delphi 4 was mostly abandoned when Delphi 5 came out. You can still find Delphi 5 on Ebay. If you're not using any components, the code is compatible between versions.
TAG : delphi
Date : November 08 2020, 07:01 PM , By : user3857715
AcroPDF in Delphi - How do I scroll?
AcroPDF in Delphi - How do I scroll?
I hope this helps you . If you are up for rolling your own viewer, take a look at the QuickPDF Library. They have a RenderPageToStream function that will create a reliable image of your document in one of several different formats including BMP, JPG
TAG : delphi
Date : November 08 2020, 07:01 PM , By : user3857561
How retrive full path with file name or folder name from ShellTreeView/ShellListView
How retrive full path with file name or folder name from ShellTreeView/ShellListView
it should still fix some issue you can use the TShellListView.SelectedFolder and TShellTreeView.Path properties to retrieve the path and filename selected.this sample uses the onchange event and assign the path into an EditText.
TAG : delphi
Date : November 07 2020, 07:01 PM , By : Dakmalí
Difference between then and then begin?
Difference between then and then begin?
this will help Delphi needs begin and end to form blocks. It does not keep blocks of code together by indentation, like e.g. Python does, it uses begin end to delineate these blocks. Languages like C, C++, C, Java and JavaScript use { and } instead,
TAG : delphi
Date : November 06 2020, 07:00 PM , By : Ruslan Iskov
Sending a file from my application (Indy/Delphi) to an ASP page and then onto another server (Amazon S3)
Sending a file from my application (Indy/Delphi) to an ASP page and then onto another server (Amazon S3)
will be helpful for those in need A HTTP PUT will store the file at the given location in the HTTP header - it "requests that the enclosed entity be stored under the supplied Request-URI".The disadvantage with the PUT method is that if you are on a s
TAG : delphi
Date : November 06 2020, 07:00 PM , By : Anupam Shahi
Need to send a pasting command from one program to another?
Need to send a pasting command from one program to another?
This might help you It's possible, but this is very poor design. The clipboard is provided for the benefit and use of the user, not the programmer. You will end up trashing pre-existing clipboard data. It is not possible to 100% faithfully and reliab
TAG : delphi
Date : November 05 2020, 07:01 PM , By : Rodolfo Valentim
Delphi, read data from 3rd party data field
Delphi, read data from 3rd party data field
I hope this helps you . I'm assuming that you are trying to "screen scrape" a text field from another app. You can use FindWindow to get a handle that that window, then dig through the child windows to find the control that you're looking for (WinDow
TAG : delphi
Date : November 05 2020, 07:01 PM , By : Sam Ouachek
Looking for a good Delphi unicode string library
Looking for a good Delphi unicode string library
will help you What about SysUtils and StrUtils? They contain many String manipulation functions. And if those functions aren't enough you could try the JclStrings unit from the JCL - JEDI Code Library (not to be confused with the JVCL - JEDI Visual C
TAG : delphi
Date : November 03 2020, 07:01 PM , By : Abdo Casa
How can I create a context menu for a Delphi component?
How can I create a context menu for a Delphi component?
Hope this helps Place a TPopupMenu onto your form and design your menu with it. Then select the component the popupmenu is meant for (DbGrid, TreeView, ...) and set it's PopupMenu property to the PopupMenu you just designed.You can have different Pop
TAG : delphi
Date : November 02 2020, 07:01 PM , By : Marliano Ryan
How to access a Cassandra distributed database from Delphi
How to access a Cassandra distributed database from Delphi
I hope this helps you . One suggestion elsewhere on SO is to write your own Delphi generator for the Thrift framework.
TAG : delphi
Date : November 02 2020, 07:01 PM , By : Damir
How to avoid the focus on Delphi application?
How to avoid the focus on Delphi application?
wish helps you In your project DPR set Application.MainFormOnTaskBar := False. Override the form's OnShow and OnActivate events and add this to both of them: ShowWindow(Application.Handle, SW_HIDE); Override your form's CreateParams procedure and add
TAG : delphi
Date : November 01 2020, 07:01 PM , By : zynga
Emulate terminal services
Emulate terminal services
wish help you to fix your issue Starting from 2008 Terminal Services (which has been rebranded to Remote Desktop Services) offers RemoteApps which do exactly what you describe. Citrix (XenApp) can do this on all windows (server) versions. So you migh
TAG : delphi
Date : November 01 2020, 07:01 PM , By : user3855381
A better way of converting Codepage-1251 in RTF to Unicode
A better way of converting Codepage-1251 in RTF to Unicode
help you fix your problem The Charset to codepage table is small enough, and static enough, that I doubt the system provides a function to do it.To do the actual character translations you can use the SysUtils.TEncoding class or the System.SetCodePag
TAG : delphi
Date : October 31 2020, 08:00 PM , By : dasha
How to pass multiple different records (not class due to delphi limitations) to a function?
How to pass multiple different records (not class due to delphi limitations) to a function?
To fix this issue I don't think you can pass different records to a single function, but you can make several overloaded functions. Like so:
TAG : delphi
Date : October 30 2020, 08:01 PM , By : Lakshmi Satyanarayan
How to get TableName of a DataSet?
How to get TableName of a DataSet?
should help you out Using RTTI it is possible to get the value for any property. The example below returns the value of the TableName property, provided there is one. I have verified that the code works in a small project.The main benefit would be th
TAG : delphi
Date : October 29 2020, 08:01 PM , By : Micah Mitchell
Easiest way to find previous instance of an application
Easiest way to find previous instance of an application
may help you . I have rewritten a VB6 application in Delphi. It should have only one instance running. How can I do this with minimum of code? , I have some code along the lines of:
TAG : delphi
Date : October 29 2020, 08:01 PM , By : vicente
Difference between GetPixel and Canvas.Pixels in Delphi
Difference between GetPixel and Canvas.Pixels in Delphi
wish of those help Is the Api Function "GetPixel" faster than Canvas.Pixels ? , It should be the same:
TAG : delphi
Date : October 29 2020, 08:01 PM , By : user3854401
How to use .Ini Files in FMX/Delphi
How to use .Ini Files in FMX/Delphi
To fix the issue you can do You can use the IniFiles unit. I have used it on android, windows and linux and it seems to work fine. For the file path on android you would use something like: System.IOUtils.TPath.GetDocumentsPath + System.SysUtils.Path
TAG : delphi
Date : October 28 2020, 08:00 PM , By : user5961584
Get Current Pixel value using Scanline in Delphi
Get Current Pixel value using Scanline in Delphi
I wish this help you ScanLine returns a pointer to a packed array of pixels that constitutes one line of a bitmap. Using this pointer you can access these pixels fast.ScanLine can't help if you need only one pixel.
TAG : delphi
Date : October 28 2020, 08:00 PM , By : user3854051
How to send both command line switches and paramstring with TShellExecuteInfo
How to send both command line switches and paramstring with TShellExecuteInfo
help you fix your problem You should not be using ShellExecuteEx() for this at all. That function is meant for executing document files, not running applications. You should be using CreateProcess() instead. Simply past the whole command to its lpCom
TAG : delphi
Date : October 23 2020, 06:10 AM , By : G. Cay
Selection contains a component introduced in an ancestor
Selection contains a component introduced in an ancestor
this one helps. Ancestor, in this context, means a class in the chain of classes from wich the object under discussion inherits. For example look at TButton in help. At the top of the help page, all ancestors of TButton are shown as a chain of classe
TAG : delphi
Date : October 17 2020, 06:10 AM , By : Wan Xin
The process won't wait?
The process won't wait?
To fix this issue You are not checking the return value of the 2nd CreateProcess() to see if it failed, but more importantly you are completely misusing MsgWaitForMultipleObjects():
TAG : delphi
Date : October 13 2020, 07:00 PM , By : Dorian
TADODataset catch Post method error code in Delphi
TADODataset catch Post method error code in Delphi
should help you out You may be able to catch the error via your AdoConnection object.The TAdoConnection has an Errors object (see definition in AdoInt.Pas). To investigate it, I used a stored proc on the server defined as
TAG : delphi
Date : October 13 2020, 07:00 AM , By : issam bouail
Direct show capture pin configure run time live gamer portable 2 plus
Direct show capture pin configure run time live gamer portable 2 plus
Hope that helps This is a bit complicated because some cameras might support rates flexibly from within certain range and other might have fixed set of supported rates. Generally speaking you should be able to build a media type with desired frame ra
TAG : delphi
Date : October 12 2020, 08:00 PM , By : esther448
Connection timeout with TNetHTTPClient and Delphi 10.3
Connection timeout with TNetHTTPClient and Delphi 10.3
Hope this helps You haven't provided the target platform for your sample code. According to the documentation ConnectionTimeout property is not supported under OS X and iOS. Setting ConnectionTimeout under those platforms has no effect.Other than tha
TAG : delphi
Date : October 12 2020, 01:00 PM , By : Priya
How to horizontally center text in a TMemo component?
How to horizontally center text in a TMemo component?
seems to work fine Simply set the memo's Alignment property to taCenter.
TAG : delphi
Date : October 12 2020, 12:00 PM , By : DanBanan
Delphi listview change header text
Delphi listview change header text
will help you Headers and footers are regular instances of TListViewItem except they have their Purpose property set to TListItemPurpose.Header or TListItemPurpose.Footer. This property instructs the component to render those items using special appe
TAG : delphi
Date : October 12 2020, 12:00 PM , By : Tatsuto Maetsu
Why MoveFile is missing operator?
Why MoveFile is missing operator?
With these it helps Based on the name of the event handler (moveFileClick) and the way the IDE names things, you have a button named moveFile on your form that is conflicting with the function name. The compiler thinks MoveFile refers to the button,
TAG : delphi
Date : October 10 2020, 04:00 PM , By : vijayshankar subrama
Invalid types in Delphi XE4 generic wrapper
Invalid types in Delphi XE4 generic wrapper
I hope this helps you . If X is of type TDictionary, then the enumerated items will be of type TPair, not B.
TAG : delphi
Date : October 10 2020, 07:00 AM , By : user6035618
Variable required error (Delphi) - How to take the address of a procedure?
Variable required error (Delphi) - How to take the address of a procedure?
I hope this helps . You don't need PTProcedureCallback at all, as TProcedureCallback is already a pointer type.
TAG : delphi
Date : October 10 2020, 03:00 AM , By : corina
How to convert MySQL Blob field to string for insert statement
How to convert MySQL Blob field to string for insert statement
hope this fix your issue This should give you a good start. The encoding is not base64, but simply converting the bytes to a hex string.
TAG : delphi
Date : October 09 2020, 08:00 PM , By : Ramos Samuel Batu Ba
Correct way to add Items to Verticle List?
Correct way to add Items to Verticle List?
With these it helps I want to create PreviewList in VerticleScrollBar. The preview item will have an TRectangle an TImage and an TLabel.
TAG : delphi
Date : October 08 2020, 05:00 PM , By : WhiteDragon
Disable close icons on editor tabs?
Disable close icons on editor tabs?
should help you out After upgrading from Delphi Tokyo 10.2.x to Rio 10.3.1, the tabs for the files in the editor now have close icons: , Can these close icons be disabled in the IDE?
TAG : delphi
Date : October 08 2020, 09:00 AM , By : John Self
Filter similar records in a table using Dblookupcombobox
Filter similar records in a table using Dblookupcombobox
should help you out The listsource and listfield should really come from another table, even if it's constructed table such as
TAG : delphi
Date : October 08 2020, 05:00 AM , By : 邹其乐
Continuing the 'for' where you left off
Continuing the 'for' where you left off
I think the issue was by ths following , Declare a variable in your form class named FCurrentLine of type Integer Change your loop to read for i := FCurrentLine to ... When you exit the loop set FCurrentLine := i + 1
TAG : delphi
Date : October 07 2020, 12:00 PM , By : Abiman
Is there a way to temporarily suspend VCL styles when redrawing a form?
Is there a way to temporarily suspend VCL styles when redrawing a form?
it fixes the issue Use Vcl.Themes.TStyleManager to toggle the style to use, either Windows (meaning normal style) or the Vcl style you have chosen as in following testcode:
TAG : delphi
Date : October 07 2020, 07:00 AM , By : Rayan Bitar
How to add a row to a DBGrid?
How to add a row to a DBGrid?
I wish this helpful for you One doesn't add a row to a DBGrid: one adds the data to the underlying dataset. Maybe you meant to use TGrid.
TAG : delphi
Date : October 06 2020, 05:00 PM , By : Sumant Manda
Thread count increasing when clients connect to TIdTCPServer
Thread count increasing when clients connect to TIdTCPServer
seems to work fine Don't swallow exceptions! Indy uses exceptions to report things like socket disconnects/errors (EIdConnClosedGracefully, EIdSocketError, etc). TIdTCPServer internally handles uncaught exceptions raised by its event handlers to know
TAG : delphi
Date : October 06 2020, 07:00 AM , By : Ganesh Sonawane
Division confusion in Delphi
Division confusion in Delphi
wish helps you The div operator performs integer division (5 div 2 = 2, throwing away the decimal .5), whereas the / operator performs floating point division (5 / 2 = 2.5).In VCL, a control's Left, Top, Width, and Height values are expressed using w
TAG : delphi
Date : October 05 2020, 10:00 PM , By : JohnMayer
Why can't I call CheckTerminated on an externally created thread?
Why can't I call CheckTerminated on an externally created thread?
Does that help If you look at the implementation of CheckTerminated, you will notice it's not a method but a static class method.CheckTerminated indicates if the currently executing thread has its Terminated flag set to TRUE. When you call FMyThread.
TAG : delphi
Date : October 05 2020, 09:00 PM , By : Zhaokai Huang

shadow
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk