delphi

Delphi Win32: Speed up dynamically created controls (Parent property)

We have a GUI of several frames that build their contents dynamically. Each frame creates panels, labels, edits, comboboxes etc to be used as input fields. This is working very well and we are also planning to let each frame build its content in separate threads. However there is one big problem: it is rather slow! Creating the control...

Temporary table resource limit

Hi, i have two applications (server and client), that uses TQuery connected with TClientDataSet through TDCOMConnection, and in some cases clientdataset opens about 300000 records and than application throws exception "Temporary table resource limit". Is there any workaround how to fix this? (except "do not open such huge dataset"?) up...

What language do I use for my project?

hi all! I'm going to advise a company on a project soon, and I'm not too sure about what programming language I should advise. It's a fairly straightforward (desktop based) application with a central datasource on the network, for storing and editing parts that make up a machine. The machine needs to be configured in the application, a...

ASP.net Delphi dynamic imagebutton onclick event

I'm having a bit of trouble with an old delphi.net application. I need to show some thumbnail images on a specific location on the page, and when the user clicks the image show the image. The images are rather small so I havn't bothered with thumbnail generation. The problem is that I can't get the onclick event working. Here is m...

"SMTP incoming data timeout" when sending email with inline images using Indy 10 in Windows XP

I'm getting the error "SMTP incoming data timeout" when I try to send an email with inline images in Windows XP, I'm using the tiburon branch of Indy 10 with the following code to send emails with inline images: MB := TIdMessageBuilderHtml.Create; try MB.PlainText.Assign(Text); MB.Html.Assign(FHTML); MB.HtmlFile...

how can i hide TRibbon pages?

i'm using delphi 2009's TRibbon component. certain pages are not relevant depending on the application state. how can i hide a TRibbon page? RibbonPage1.Visible:=false doesn't really hide the page... is this maybe not allowed by the spec from microsoft? thank you for you help! mp ...

Dynamic resizing of frames and forms in Delphi

I have a TFrame descendent that has on it a sizable panel which is a third-party component (TLMDSimplePanel)). The sizing on that panel works great, but I want the frame it is contained in to resize dynamically when the user changes the size of the panel. (The panel has a little sizing thumb grip on it that the user can just click and ...

Visually containing another app inside your own app

I have four small single-form utility applications that I have written in Delphi (Win32), that every once in awhile I want to use in a way that makes them "feel" as if they are all one application, mostly to make switching back and forth between them super-easy. It would be great, for instance, to be able to insert them as containers ...

TMonthCalendar of delphi - disable the buttons

Hi my name is carlos Im from Brasil. Is it possible to disable the buttons that change the date on the TMonthCalendar(vcl native)? thanks a lot carlos ...

Disable ECO In Delphi

How i can disable ECO in delphi .Net? ...

Turbo Power systools stExport event in Delphi

Hello I am using turbopower's stExport from the systools' package. Using it to export a dataset. That works great. The Class makes available FOnExportProgress. This class does not have a visual component and so no object inspector to simply double click and have delphi create the event for me. Can anyone provide a simple example of how ...

In Delphi, how can you check if an IInterface reference implements a derived but not explicitly-supported interface?

If I have the following interfaces and a class that implements them - IBase = Interface ['{82F1F81A-A408-448B-A194-DCED9A7E4FF7}'] End; IDerived = Interface(IBase) ['{A0313EBE-C50D-4857-B324-8C0670C8252A}'] End; TImplementation = Class(TInterfacedObject, IDerived) End; The following code prints 'Bad!' - Procedure Test; Var A : ...

Rave Reports exporting to excel

Hi Guys, i have a rave report with 5 pages inside it, we need to export to excel two page from those 5 report pages, each page is a report itself... we use gnostice v2.5 to do the exporting. currently using Rave 6.5 with BDS2006. Hi, maybe i was not clear enough, i have 1 Report which consists of 5 pages, Page1, Page2, Page3, Pag...

How do you copy arbitrary data to the clipboard as a file?

We develop a database application. The user asks for a new feature, to copy blobs into the clipboard such that Windows Explorer can paste them as new files. One solution is to save the blobs into a temp folder and add these temp files to the clipboard. But I'm looking for a better solution. Is it possible to hook the paste action in Wi...

Are Delphi strings immutable?

As far as I know, strings are immutable in Delphi. I kind of understand that means if you do: string1 := 'Hello'; string1 := string1 + " World"; first string is destroyed and you get a reference to a new string "Hello World". But what happens if you have the same string in different places around your code? I have a string hash assi...

How can i create a new instance of a class?

i have a list of class instances of various kinds. i need to be able to create a new instance of a class without knowing for sure what to create. all the objects involved have the same ancestor. the actual copying of the object's member variables is easy...it's the creation of the new object where i have a problem. admittedly i could...

What is the fastest and most stable version of Delphi?

In your experience, is one version of Delphi significantly faster and more stable then the rest of the versions. Provide specific examples when possible. ...

How do you deal with IFDEFs in .dpr uses section

Whenever you add a new unit to the project Delphi rebuilds the .dpr file and all the IFDEFs in the uses section are gone. To work around this I typically use NotePad to create new .pas files, and add it to the .dpr manually. If I need a form I use File->New->Form and then revert the .dpr file to the previous version. Not very RAD if you...

Delphi - How do I fix this strange TGrid behaviour?

Delphi 2007. I have a TGrid with more rows than will fit on the screen, and the height of the grid is such that there is a partially drawn row at the bottom. When I click on this partial row, it jumps up to be fully visible (via a procedure called 'ClampInView' in Grids.pas). But it doesn't stop. Since the mouse is now over a new partia...

Make "private" members behave like "strict private"

What about a feature in an upcoming Delphi version enabling that? Maybe it could be a compiler switch promoting all privates to strict privates. ... or it could be a feature of the new non-legacy compiler font-end Nick Hodges was talking about. => private does always behave like strict private. EDIT: The reason why I want this is bec...