I'm creating a custom control that contains other controls, including two scroll bars, one horizontal, one vertical. There's a property to set one or both scroll bars invisible, which works fine at runtime, but at design-time it doesn't disappear from the form designer when I set the property.
Now, I can understand how this could be a ...
I have a system-wide keyboard hook DLL that I have created that has been working successfully for years in Windows XP.
However, it appears that in certain later versions of Windows (Vista Home Premium, and Windows 7, to name a couple), the hook either does not work at all, or it simply works only locally within the application that inst...
Hi everyone !
I've got a few questions about the architecture of a software that I'm working on !
So basically, this software allow the user to access to some popular sites :
Social networks (Facebook, MySpace, ...),
Common services (RSS, Mails, Twitter...),
Social bookmarkings (Digg, Delicious...),
Chats (MSN, AOL...),
...
Cur...
Hi
I have the following code in the OnExecute of a TIdTCPServer (Delphi 2009 and Indy 10 that came with the installation) which is very similar to other examples on this site;
Socket := AContext.Connection.Socket;
if Socket.CheckForDataOnSource(10) then
begin
if not Socket.InputBufferIsEmpty then
begin
So...
I just upgraded my BDS2006 Prof to D2010 Prof. I usually use Interbase component (TIBDatabase, etc) to connect with the database. I am thinking about other alternative components. Sadly, Zeos component (6.X) currently still not working with D2009/D2010. DBExpress support FB connection but not in Prof. Version (only in Enterprise/Architec...
What is the best solution to allow an object to execute methods on a thread? The object is the owner of the TThread and the thread contains only a TidHTTP (blocking socket) to post request and parse the response.
Example :
Object > Execute Request on the Thread
Thread > Send request via idHTTP, wait for response, send the result to th...
Hi,
Good morning!
Is there any pattern (software design pattern) for loading images or message strings from resource files?
-Pavan.
...
I've been asked to re-open a project I wrote in 1998/99 in Delphi 3 and which has been running stably since then. I have the Delphi 3 code base on an aging Windows 98 machine which exists only to keep this project alive. Obviously, I'd like to bring the source code base into the 21st century before undertaking any major revisions.
I n...
i get an Access Violation if i try to change the ribbon style using a TRibbonCombobox.
then, i modified the delphi ribbon demo to provide a combobox method to set the style:
added a TRibbonCombobox on the ribbon bar
added an event handler
here is the event code:
procedure TfrmRibbonDemo.RibbonComboBox1Change(Sender: TObject);
begi...
Hi quick question. I want to implement a function in a dll that accepts a record as a parameter and this record as a few fields that hold pointers to callback routines. Would this be safe?
...
I need to Escape a reserved word to use it as an identifier in Delphi. I thought that was accomplished by using the ampersand "&", but that doesn't seem to be working right. Any other suggestions?
...
I have a listbox that lists windows processes by their handle title, e.g. "Untitled - Notepad". What I would like to do is regularly check (using a timer?) if those processes are still open. I have stumbled across some code below, but that only takes one argument "string". I assume it would have to be an array of all items in the listbox...
Is there any way of installing TWebBrowser in Delphi 2010 directly without having to install the Web Development Controls?
If I select the Web Development Controls option on the Delphi 2010 setup, TWebBrowser is installed. But this "package" is over 200 MB and I only need TWebBrowser.
Any way of installing TWebBrowser directly on Delph...
I have a custom sorted TStringList...
Items.CustomSort(@CompareWords);
... with this comparison function:
function CompareWords(List: TStringList; Index1, Index2: Integer): Integer;
begin
Result := StrIComp(PWideChar(List[Index1]), PWideChar(List[Index2]));
end;
But after noticing some problems with my code, which expects the lis...
Although the question seems simple, I couldn't find the answer to it.
I have a DBGrid component with lots of columns, and as a result they don't fit into the page and scrollbar appears. I also have column-autofix mechanism, which makes each column have width of the longest element in the table. When I scroll DBGrid to the right-end the...
The below code is in OnTimer event. If items from 2 list boxes are not matching - ShowMessage. I need to show the message only once, but because the timer is running, the message keeps popping up at the timer's set interval. I tried disabling the timer after ShowMessage line but then the message would even show.
for i := 0 to ListBox2.I...
I'll shortly be making a purchase decision regarding Delphi 2010. I've always been a "Professional" level developer (meaning I've owned the "Professional" SKU of the product before), but I'm considering buying the Enterprise edition this time. I pay for my own tools, and the $1150 difference in price (for the RAD studio product) is no...
I need a class similar to TStringList that could manage name & value pairs, but the value part is variant. Or perhaps it has a property like TStringList.Object but holds variants instead of objects.
Could anyone please point me to a free or open source implementation? I use Delphi 7.
Thank you.
...
Hi there.
I'm learning Delphi Prism, and i don't find how to write the following code with it :
type
TRapportItem = record
Label : String;
Value : Int16;
AnomalieComment : String;
end;
type
TRapportCategorie = record
Label : String;
CategoriesItems : Array of TRapportItem;
end;
type
TRapportContent = reco...
I'm getting issues drawing using OnAfterItemPaint event when horizontal scrolling is performed.
Basically what I want to achieve is the merging of selected cells effect, say for example 1 text for column 1 & 2, another text for column 3 & 4, etc... So far VT doesn't have any support for column merging, so I have to manually draw it.
Is...