delphi

push button (stay "up" or "down")

hi all I need to put on a form 3 buttons and when I click on the button to display it as pushed and the others to be up, when I click another button it should be "down" and the others "up" ...

How do I make a Delphi control panel applet be non-'legacy'?

I have a Delphi .CPL currently written with Delphi 7 which needs to update settings in HKLM (to be used by a service application) and which must support Vista, Win7 and Server 2008. Currently this can be done by adding a RUNASADMIN value to AppCompatFlags/Layers, using the CPL file as the value name. This causes Windows to ask for elevat...

enable themes for applications

i have an old application (started in delphi 7 in Win XP), now i'm using delphi 2009 (win Vista). If i start a new project all buttons have a rouded edge, but in my old app all buttons have a "square"-shape look. is there any setting that i've missed? thanks ...

Can IntraWeb forms be synchronized on demand?

Scenario: I have a Delphi Intraweb application that has some edit components and buttons on a screen. In the TIWEdit.OnAsyncExit and TIWButton.OnClick a flag is set, and another thread in the application sets the enabled properties of the buttons depending on the flags and some other application data. By the time the TIWButton.Enabled ...

Delphi/GDI+: When is a Device Context created/destroyed?

Normally using GDI+ in Delphi you can use a TPaintBox, and paint during the OnPaint event: procedure TForm1.PaintBox1Paint(Sender: TObject); var g: TGPGraphics; begin g := TGPGraphics.Create(PaintBox1.Canvas.Handle); try g.DrawImage(FSomeImage, 0, 0); finally g.Free; end; end; The problem with this paradigm ...

How to debug .exe started by another .exe in Delphi

I want to debug App2.exe, which is started by App1.exe. If App2.exe were a dll I could specify a host application, but this doesn't seem to work with an .exe. I now use 'attach to process', but this is useless if App2.exe crashes before I do that. Is there a way to do this with having to attach to the process manually? ...

Reference or tutorial to clarify object reference confusion

Working with my ongoing TFrames-based component set project, I'm coming across various instances where I am wanting to replace one of the TFrame's components (usually non-visual) at runtime with one that is generated dynamically at runtime. I think I've probably found the answer to my immediate problem here, but in my own digging arou...

copying file from a server to a local drive - what could slow the access to get file ?

I have an application which accesses files on the intranet. The users can copy the files from the server located on the network to their local PCs. I have encoutered a problem with initial connection. i.e. when the application is started. The user searches for the file in the database. When he finds a file he wants to download he clicks ...

Adding Delphi 6 third party component to Delphi 2010?

Hi, I have a few Delphi 6 third party components which I need to add to Delphi 2010 to begin my migration. Is it possible? The interface seem a lot different and I can't seem to find a way to do this? This help... My components: DBGridEasy, TSerial, Varian Async32. Thanks a lot. ...

Enumerate the VCL controls in a external application

Hello, is possible via the Windows API's to enumerate and iterate the VCL controls on a form (TForm) belonging to a external Win32 application written in C ++ Builder or Delphi. Bye. ...

What Is The Best Database For Delphi Desktop Applications That Supports Stored Procedures?

I started with Turbo Pascal 3, went to TP5, Bought TP6 called Borland the next day and downgraded to TP5.5. Bought Delphi 3, and now have Delphi 5 Enterprise. I sort of lost interest in writing code about 4-5 years ago for two reasons; Spent all day writing ASP & SQL for someone else. PC Techniques magazine went away. I've got a few ...

Select row after refreshing DBGrid

Well, some kind of n00b question from me. I've surfed the net and similar questions here but haven't found any right answers for such simple (as I thought) problem. I have a DBGrid. I select one row and make some actions with another data linked to this row. After I finished, my DBGrid being refreshed and selected row resets to first. I...

Trouble with detecting mouse movements in a TcxGrid when dragging files from Windows Explorer

I recently added a feature to a large application written in Delphi (version 2009) that allows the user to drag files from Windows explorer and drop them on a TcxGrid control. I achieved this via the common method of attaching my own window proc to the grid and intercepting the WM_DROPFILES message: originalGridWindowProc := cxGrid.Win...

Get Correct Relative Path in Delphi

Hi, I am writing with Delphi 2009 a little app to edit HTML files. With HypRef := '../../photos/myjpg.jpg' If FileExists(ExpandFileName(HypRef)) then ... I can find out, whether the file exists or not. Is there a function to find out the correct relative path, if FileExists gives a negative answer? ...

How to add new project template to Delphi

I remember doing this in Delphi 7, but I don't remember how, or it is different in the new Delphi IDE. But how do I add a new template to the items gallery? So then it will show up under the File / New menu. ...

Resuming suspended thread in Delphi 2010?

TThread's resume method is deprecated in D2010. So, I thought it should now work like this: TMyThread = class (TThread) protected Execute; override; public constructor Create; end; ... TMyThread.Create; begin inherited Create (True); ... Start; end; Unfortunately I get an exception "Cannot call start on a running or supsen...

.NET component in DELPHI 2009

Hi, Could you please tell me if .NET component can be used with Delphi 2009 and, if so, could you please send me some example code. Thanks in advance. ...

How to generate a winform application with delphi and .Net respectively?

I need to make a choice between the two languages,both of which are new to me. I want to choose the simpler one. Also,please mention about the setups needed to run the programme. ...

Overloading array insertion?

I'm processing a XML with minOccurs and maxOccurs set frequently to either 0, 1, or unbounded. I have a schema describing this cardinality, together with the specific data type. I'd like to construct a (Delphi) class which keeps track of the cardinality, together with an array whose dimensions are to be validated based on the minOccurs a...

How to add a Web Service to a Delphi 2006 app?

Hi, I have an application developed with Delphi 2006 using Indy 10. Does anyone know how to add the executable file a WebService feature so users can interact with it via SOAP? I've seen that the examples provided by Delphi need to have Indy 9, and since our application depends on Indy 10, going back to 9 is not an option, and unfortunat...