Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Delphi Programming


How to make an invisible Form ignore the TAB key  

I have a form that is made invisible to user (self.invisible := true) and must stay that way. However, when the user press the TAB key the form eventually 'try' to show on desktop with the following error message: "Cannot ... Continue Reading
Views : 84
Tuesday 27th of November 2012

See if a string is a substring for another - AnsiContainsStr but for strings  

I'm looking for a funciton that will tell me if a certian string I have is the substring of another. Is there any way to do this besides AnsiContainsStr? - Dan... Continue Reading
Views : 53
Tuesday 27th of November 2012

D 2007: hints of filenametabs  

Hello, I am using Delphi 2007 (RAD Sudio Enterprise) with update december 2007 on Windows XP pro. If I move the mouse over the filename tabs of the IDE the hints showing the complete filenames do not disappear. They stay ... Continue Reading
Views : 111
Tuesday 27th of November 2012

TStringStream  

Hi, I am trying to use a TStringStream with the Indy HTTP Socket but having some issues. From my code below I am assuming that 'MyStream' is getting the content of the loaded url? Var MyStream: TStringStream; begin MyStream := ... Continue Reading
Views : 82
Tuesday 27th of November 2012

Delphi 7 and XP 64-bit  

I just got a new computer with XP x64 on it. D7 installs and the IDE will compile my projects correctly, but when I run in the IDE I get a bunch of weird exceptions. Do I need a newer ... Continue Reading
Views : 56
Tuesday 27th of November 2012

What list control to use  

I need an advise on what control from delphi7 control palete could be the best for displaying a list with colons and headers like TListView but with checkboxes so that the user could select items from the list?... Continue Reading
Views : 46
Tuesday 27th of November 2012

WideString and Unicode  

I'm upgrading a expression evaluation component that I wrote in D1 12 years ago. It still works well, but I want to change it so that it uses interfaces for operands to allow a larger range of datatypes as I/O ... Continue Reading
Views : 39
Tuesday 27th of November 2012

Delphi 2007 Update 3  

I'm sitting there coding in an existing project. I added a new tabsheet, a few labels then ran the program. Nothing happened. When compiled it's like 100 lines of code - I have several thousand. Next, I notice in the ... Continue Reading
Views : 39
Tuesday 27th of November 2012

dll or component for rar multipart archiving  

are there any component or dll for rar multipart operations?... Continue Reading
Views : 405
Tuesday 27th of November 2012

$10 - what is this number  

Hi, Any idea what this number will be or any character ?... Continue Reading
Views : 55
Tuesday 27th of November 2012

Basic question - Assigned and nil  

Back to basic: var myObj: TObject; If I freed an object: myObj.Free; but have not set the object variable to nil, then myObj = nil will return FALSE Assigned(myObj) will also return FALSE?... Continue Reading
Views : 38
Tuesday 27th of November 2012

exceptions in factory methods  

I have a factory method and I want it to return nil in case an exception occurs (ignoring the exception at all, I know, bad practice, but I have my reasons). Is following overcomplicated? function CreateSomething: TSomething; begin try Result ... Continue Reading
Views : 45
Tuesday 27th of November 2012

Why the "Cannot Initialize Local Variables"   

Hi Why isn't it possible to initialize variables during the declaration? Just wondering, as this annoys me a bit. I'd much prefer to write this: procedure fortytwo; var s : string = '42'; begin showmessage(s); end; To this: procedure fortytwo; ... Continue Reading
Views : 86
Tuesday 27th of November 2012

Adding PopUp-ITems at runtime  

How can I add menuItems at runtime to a Tpopup ?... Continue Reading
Views : 59
Tuesday 27th of November 2012

How to handle an exception in a constructor  

Hi, I've been programming for years now and this thought has never really occurred to me before. How do you deal with an exception thrown in a constructor ? This happened when I added a filename parameter to the constructor ... Continue Reading
Views : 29
Tuesday 27th of November 2012

Editor Window Epidemic - How to prevent  

D2007 on MS Vista Ultimate 32-bit w/4 GB memory. I have defined a desktop with 3 Editor windows side by side. There are also the usual IDE windows P. Mgr, Obj. Inspector, Tool Palette, and Structure,all undocked and neaty laid ... Continue Reading
Views : 95
Tuesday 27th of November 2012

Compilation error - Duplicate Resources  

I have a datamodule in my application and then I save this datamodule as another name, eg. Datamodule1 to Datamodule2. Replace the original components with another type. Then recompile the applicaiton and got the compilation error: Warning. Duplicate resource(s). Any ... Continue Reading
Views : 52
Tuesday 27th of November 2012

dual packages, output directories, and frustration  

Hi Experts, I have my own Delphi/Win32 package created in RAD Studio 2007. Since I'd like to be able to use the same package from within the C++ Builder 2007, I have checked the option in the IDE to generate ... Continue Reading
Views : 110
Tuesday 27th of November 2012

rlink32 out of memory  

Hi Using D7e Get rlink32 error Out of memory! when including version info No error when uncheck include version info. Any ideas why? Regds q... Continue Reading
Views : 97
Tuesday 27th of November 2012

avoiding actionlist shortcut  

Hi, I have a few frames on a form. One contains a RichEdit type control. Another frame contains an action associated with "Shift-Enter" shortcut. If I type "Shift-Enter" then this Action is triggered (even when RichEdit has focus), but I ... Continue Reading
Views : 48
Tuesday 27th of November 2012

Create a new e-mail in Outlook Express with attachments (without sending it)  

Hi guys! I ran into the following problem: My program should be able to take a file (or some files), create a new e-mail in Outlook express, then attach the file to the e-mail - but without sending it, since ... Continue Reading
Views : 114
Tuesday 27th of November 2012

Does anyone use datamodules  

Hi All, I've been using Delphi since version 1, and using datamodules since they've been available (Ver 3?). I've recently 'updated' from 2006 to 2007 and now when I execute an application from the IDE (F9), the names on the ... Continue Reading
Views : 121
Tuesday 27th of November 2012

D2007 IDE - Choked by Edit Windows  

D2007 on MS Vista Ultimate 32-bit w/4 GB memory. I have defined a desktop with 3 Editor windows side by side. There are also the usual IDE windows P. Mgr, Obj. Inspector, Tool Palette, and Structure,all undocked and neaty laid ... Continue Reading
Views : 56
Tuesday 27th of November 2012

D2007 editor hanging  

Has anyone else been experiencing this with the IDE editor? This is what I get if I look at the Problem Details under Vista. It happens fairly often. I am not a speed typist so it can't be me pressuring ... Continue Reading
Views : 56
Tuesday 27th of November 2012

Keyboard Hook Troubles  

I am trying to implement my first system-wide keyboard hook, and it is going far from smoothly. I have assembled a short example to demonstrate the basic structure of my hook and also to demonstrate my problem (see below). What ... Continue Reading
Views : 40
Tuesday 27th of November 2012

modify OnClick event of a TTreeView  

Hi all, I derived a custom component from TTreeView, I would like to modify OnClick event so that it has the original functionality of TTreeView and some custom piece of code. I was thinking about defining new message procedure, e.g.: ... Continue Reading
Views : 108
Tuesday 27th of November 2012

parent main form - no focus on text box  

fmform.parent := fmain.panel1; fmform.align := alclient; fmform.show; It places the form on the panel on the main form but I cannot focus on text boxes etc. How can I fix this please.... Continue Reading
Views : 102
Tuesday 27th of November 2012

Get sorted files from windows explorer in drag and drop  

Hi everyone, how to get sorted files from windows explorer in drag and drop process ? Suppose,files in explorer are sorted by date then list of files that we're accepted are sorted by date too. I notice those files aren't ... Continue Reading
Views : 85
Tuesday 27th of November 2012

need interaction with programm made in C/C++  

Hello, another company that make software in C/C++ need to be able to move some 3D objects in my soft made with delphi and do some action. so the main part would be to move the mouse of my application. ... Continue Reading
Views : 59
Tuesday 27th of November 2012

Align of Controls   

Hello May i align many Controls (CheckBoxes) automatic. i need to specify spacing in vertical and horizontal way marking all with shift left mouse then right mouse -$PHXGREAT align -$PHXGREAT spacing equally doesnt give me a chance to set space ... Continue Reading
Views : 46
Tuesday 27th of November 2012