While the following subrange enumeration declaration works:
type
TReceiptCode = 'A'..'F';
This does not:
type
TReceiptCode = ' ','A'..'F', 'R';
Nor does
type
TReceiptCode = ' ','A','B','C','D','E','F','R';
How can i declare a subrange type with non-contiguous values?
...
Is there any Delphi D2010 function like PosEx that finds a sub-string inside a string starting from the end of the string?
I'm removing all the calls to the FastStrings library and one of the functions I was using was FastPosBack:
function FastPosBack(const aSourceString, aFindString : AnsiString; const aSourceLen, aFindLen, StartPos :...
Can you name famous, successful applications, applications in development, future applications, that are developed with Delphi? The kind of applications that you use everyday is encouraged.
Some of I know:
Total Commander
TopStyle
Skype
PHP Designer
edit
I'm not very interested in listing of applications taken from Google. Just the...
Is there any comparable function like Pos that is not case-sensitive in D2010 (unicode)?
I know I can use Pos(AnsiUpperCase(FindString), AnsiUpperCase(SourceString)) but that adds a lot of processing time by converting the strings to uppercase every time the function is called.
For example, on a 1000000 loop, Pos takes 78ms while conve...
Hello,
I have an application that connects to a udp server, and I can't seem to get it going when I am behind a proxy.
Here is the code I have, which is working fine when Not behind a proxy.
function TfrmMain.SendCommand(ServerName, IP: String; Port: Integer; Command: String): String;
var
Udp : TIdUDPClient;
Count : Integer;
Res...
Hi,
Please have a look at this screenshot
I think these are the main features of such a 'tag panel':
1) Each tag on the panel is a standalone control and can be clicked
2) Auto line wrapping when there is not enough space to show the next tag in the current line.
3) Rounded corner rectangle border for each tag is a nice-to-have fe...
Best way to 'insert' a page in a TPageControl if i already have many pages full of controls? Let's say i want to insert a new page before TabSheet1.
Thanks.
UPDATE : At design time.
...
How can I reserve one edge of the desktop with Delphi? Something like the Vista Sidebar does.
...
Hi all, and sorry for my English. Consider the following:
TFieldType = class
fValue: string;
end;
TMainClass = class
private
Ffield: TFieldType;
public
function GetValue: string;
end;
In TMainClass.GetValue I'm tryin get values of TMainClass fields:
function TMainClass.GetValue;
begin
vCtx := TRTTIContext.Create;
vType := ...
How can I get all installed components in TStrings?
I think this code work only in packages:
uses TypInfo, ToolIntf, Exptintf;
procedure GetComponentNames(lst: TStrings);
var
i, k: Integer;
CRef: TClass;
strName: ShortString;
begin
lst.Clear;
for i := 0 to ToolServices.GetModuleCount-1 do
begin
for k := 0 to ToolSer...
hello all Friends..........
how to insert data Db Grid to TlistItem with Delphi?
thanks for help?????????
...
Hey Folks, I need to create a plug-in that updates an application.
Look, I have a host application, but probably I will update it with more functions. I am working in Windows with Delphi 7.
Basically, "my plugin" should add 2 or 3 new functions to the host application.
How can I program a plug-in that inserts new code (new functions) in...
This one’s a head scratcher. Here’s the deal.
While deploying a beta copy of an ASP.NET application built with Delphi 2007 for .NET to a test server I encountered an odd problem. The application was unable to start because it could not load the correct version of an ADO.NET data provider that I was using.
Only by including a version o...
At the top of the Delphi IDE is a toolbar with buttons grouped together on little movable trays. I'm trying to implement something like that, but not having much success. I've found TToolbar, but I can't figure out how to set up the movable trays. Does anyone know where I could find a simple demo app that shows how it's done?
...
Hi, Where Can find the full list of winners of Spirit of Delphi Award.
I found this , but is not complete.
1998: Robert M. Czerwinski (The Delphi Super Page) and Fedor Koshevnikov, Serge Korolev and Igor Pavluk (RX Library)
1999: Marco Cantù and Bob Swart
2000: Maxim Peresada (Torry’s Delphi Pages)
2001: Project JEDI (a collective awa...
I got an email a few days ago from someone who was having trouble building a Delphi project I have on Google Code. The project file and one of the DFM files were munged after he updated with some changes I had checked in. We talked back and forth a bit, and traced it down to what he said was SVN throwing in extra stuff. He deleted the...
So, I have a png file that uses transparency(is actually a circle with gradient effect from black, in the middle, to transparent on the margins). I am putting this on a form using TImage. I am setting TForm1.Color and the TForm1.TransparentColorValue to the same value and TForm1.TransparentColor:=true.
Now, when I run the program the gr...
We are using a TCppWebBrowser Component in our program as a kind of chatwindow, but since the TCppwebrowser is using the IExplorerengine all links that are clicked is opening in IExplorer.
One idea I have is to cancel the navigation in Onbeforenavigate2 an do a Shell.execute, but where hoping for a more elegant solution like a windowsmes...
Is there a Cross Platform ( Win32 / Win64 / Linux32 / Linux64 / MacOSX Snow Leopard ) Commercial Development Tool / IDE / Programming Language ?
( No Java / .Net , only NATIVE )
...
How to tweak old legacy delphi exe to work well in Win7, there are no source codes, but luckily just one small GUI issue:
The main window size is fixed to be too narrow and now the text in control does not fit to screen. adjusting compatibility settings do not help at all.
...