I'd like to set RadioButton properties in runtime in procedure InitRadioGroup().
It fails because RadioGroup.ControlCount is 0, although there are 3 RadioButtons in RadioGroup.
What is wrong in D2010 RadioGroup?
Same code works fine in Delphi 2007.
procedure InitRadioGroup(RadioGroup: TRadioGroup);
var
i: integer;
RadioButton: T...
I have rebuilt my Delphi service that uses SvCom on a 64 bit machine. I have debugged the service and it all seems to work fine. However, when I install the service it works fine but on stopping, the service does stop but I get an error : "Error 1061 : service cannot accept control messages at this time".
Any ideas?
JD
...
What's the best way to parse the google search results with Delphi (The API will not work, only allows 10 results)? (I would prefer free options.)
...
I have a set of enumeration values that I need to convert to text and then back to a set.
I believe that GetSetProp and SetSetProp from TypInfo unit would allow to do this but I have no idea on to get it to work. Any idea on how I can use GetSetProp and SetSetProp to accomplish this?
type
TSomething = (sOne, sTwo, sThree, sFour, s Fi...
I'm working with a team for a bigger application with Delphi 2007. It use a bigger lecacy framework to access the data. Both the app and framework use String as datatype for strings. I have started to modify the code in framework to support Delphi 2009 strings, see my previous questions about this.
I see 2 alternatives now:
Alt 1 - Con...
http://forums.alliedmods.net/showthread.php?t=64767
The source acts like its missing a ton of stuff I can't find like uh TBX and some other things
I don't really know the language, but I have hoping I could get it to compile with delphi 2009/2010.net and then see about porting its IL. (to C# I guess)
The reasoning behind this is becau...
I'm running windows 7 ultimate (32bit) and have a very anoying problem with my installation of delphi.
The problem is with the feature "Code Insight" and with "Code template completion", it is very anoying when it every time i write something and it wants to complete some piece of code for me (for example i hate it when he completes the...
Hi, anyone know how to modify ShellCtrls.pas? Actually I want to add some items in the top of explorer tree.
For example :
-myitem
-miitemtoo
-mycomputer
-c:
-d:
Or maybe modifying this enhanced treeview : http://delphi.about.com/library/weekly/code/gtrocheckshelltreeview.zip
But I think ShellCtrls is the main file to be modifie...
when i am trying to hit save or open button from menu in delphi 7 my Delphi exe get closed ,
so i am not able to open or save any file. it is useless please suggest me an answer.
i use windows 7 Home Premium x64
...
These days you see a lot of software displaying message windows in the right bottom corner of the active screen for a few seconds or until a close button is clicked (f.i. Norton does this after it has checked a download).
I would like to do this using Delphi 7 (and if possible Delphi 2010, since I am slowly migrating my code to the late...
I am using Delphi 7 to try to use a .DLL created by VB.net. When I run TDUMP.EXE on the .DLL, it reports no exported data available. The VB.Net .DLL uses "RaiseEvent" to return data.
Any help would be usefull.
Thanks
...
Hi,
I have the following scenario and would be grateful for any advice how to resolve this issue.
We have a database application which contains a field which is a DateTime field. We have never used this field in the past but now after a few 100 installs we need to use this field but have found that it is should not have been a DateTime...
Hi,
Considering such an enumeration :
type
TTypeOfData = (
[XmlName('ABC')] todABC,
[XmlName('DEF')] todDEF,
[XmlName('GHI')] todGHI
);
Where XmlName is a custom attribute used to define the serialization string for members of this enumeration.
How can I explore the attributes attached to each member of this enumer...
I have been completely unable to get forward class declarations in Delphi 2010. I have read the docs, read up on the web, and maybe I'm an idiot but I just cannot get anything to compile. Any help would be massively appreciated!
I have knocked up these two mickey mouse classes. Sure I know they need constructors etc to actually work, it...
I'm looking for a way to control all business objects I create in my applications written in Delphi.
As an article on Embarcadero's EDN (http://edn.embarcadero.com/article/28217) states, there are basically three ways to do this. I'm mostly interested in the last one, using interfaces. That way, when the business object is no longer bei...
I had some code before I moved to Unicode and Delphi 2009 that appended some text to a log file a line at a time:
procedure AppendToLogFile(S: string);
// this function adds our log line to our shared log file
// Doing it this way allows Wordpad to open it at the same time.
var F, C1 : dword;
begin
if LogFileName <> '' then begin
...
Hi,
AFAIK the compiler does not generate RTTI if the type is not named.
eg: T = array[0..1,0..1] of Integer;
In this case it is possible to know the total size of the array, but it is impossible to know the size of each dimension.
It works only if I use a type explicitly named:
T01 = 0..1;
T = array[T01,T01] of Integer;
I missed somet...
Hi,
How can I store generics in a generics TList holded by a non generic object ?
type
TXmlBuilder = class
type
TXmlAttribute<T>= class
Name: String;
Value: T;
end;
TXmlNode = class
Name: String;
Attributes: TList<TXmlAttribute<T>>;
Nodes: TList<TXmlNode>;
end;
...
end;
The compi...
I'm using a TPageControl, where certain pages are not visible.
This breaks the normal 1:1 mapping of the TabIndex and ActivePageIndex properties.
In most places I can use ActivePageIndex (or ActivePage itself) to get the current page, but I want a dynamic tooltip hint which requires me to determine which page is associated with a speci...
Hi,
I would like to be able to use TValue to store Data in a TList<>. Like in :
type
TXmlBuilder = class
type
TXmlAttribute = class
Name: String;
Value: TValue; // TValue comes from Rtti
end;
TXmlNode = class
Name: String;
Parent: TXmlNode;
Value: TXmlNode;
Attributes: TList<TXmlAttr...