delphi-2010

IDE Plugin for XMLDoc

谁说我不能喝 提交于 2019-12-19 02:33:19
问题 there is an IDE Plugin out there (I think it was not free) which assists in writing XMLDocumention inside the IDE. I tried to search for it, but I cannot find it anymore. Anybody knows it? 回答1: Try using Documentation Insight from DevJet 来源: https://stackoverflow.com/questions/4713349/ide-plugin-for-xmldoc

How to disable the Formatter in Delphi 2010

南楼画角 提交于 2019-12-19 02:27:15
问题 The formatter in Delphi 2010 is really an annoying thing to me. I prefer formatting my code manually. I believe I do it better. How can I disable it? NOTE: Answers on why I don't use it in the first place will not be accepted. I need it switched OFF. Nothing more, nothing less. 回答1: Install DDevExtensions from Andreas Hausladen. In its last version: Version 2.0 (2009-09-13) Added: Embarcadero RAD Studio 2010 support Added: Editor tab double click action (zoom, super-zoom) Added: Source

Developing Apps with Administrator Rights in Delphi

隐身守侯 提交于 2019-12-19 02:27:13
问题 I'm using D2010 under Windows 7 to write an app that seems to require admin rights (I think because it uses COM to communicate with a third party .exe, which also requires admin rights). I've added the manifest resource as required, but when I try to debug the app from the IDE, it reports "Unable to create process. The requested operation requires elevation" ...and it won't run. If I run Delphi as administrator, then my app runs correctly, but this feels like a dangerous brute force approach,

Efficient data structure for GUIDs

元气小坏坏 提交于 2019-12-18 13:01:42
问题 I am in search of a data structure which enables me to quickly (prefarably O(1)-quickly) determine if a given GUID is a member of a Collection of GUIDs or not. My current approach is to use a TDictionary with 0 as values. While this works quickly, it seems to be a waste to use a Hashmap to rehash a GUID, which is by defintion considered to be unique, and to have the Dictionary handle values which are unneeded. There must be a better solution for this, but I can't find one. Can you? 回答1: I

Delphi: Store data in somekind of structure

若如初见. 提交于 2019-12-18 11:13:55
问题 For a simulation program I'm working in Delphi 2010. The simulation isn't a problem but I need to use large collection of data which gives a problem. The data is available in excel sheets, so there is no need to edit this data in Delphi, but collecting this data from the excel sheets takes around 10min. This isn't a problem as long as you don't need to collect the data every time the program runs. So I made a program which collects all the data makes it visible, not problems here,and then

Why does my program crash when I destroy a button in its own OnClick handler?

霸气de小男生 提交于 2019-12-18 08:34:46
问题 I tried a script from a web site I run http://www.delphi-central.com/runtime.aspx and succeed. private { Private declarations } procedure CustomButtonClick(Sender: TObject); procedure TForm1.AddNewButtonClick(Sender: TObject); var NewButton : TButton; begin NewButton := TButton.create(self); with NewButton do begin Top := 30; Width := 60; Left := Width * (self.ControlCount-2); Parent := self; OnClick := CustomButtonClick; Caption := 'Button '+ inttostr (self.ControlCount-2); end; //With end;

Why does my program crash when I destroy a button in its own OnClick handler?

半世苍凉 提交于 2019-12-18 08:32:31
问题 I tried a script from a web site I run http://www.delphi-central.com/runtime.aspx and succeed. private { Private declarations } procedure CustomButtonClick(Sender: TObject); procedure TForm1.AddNewButtonClick(Sender: TObject); var NewButton : TButton; begin NewButton := TButton.create(self); with NewButton do begin Top := 30; Width := 60; Left := Width * (self.ControlCount-2); Parent := self; OnClick := CustomButtonClick; Caption := 'Button '+ inttostr (self.ControlCount-2); end; //With end;

Why does my program crash when I destroy a button in its own OnClick handler?

旧时模样 提交于 2019-12-18 08:32:20
问题 I tried a script from a web site I run http://www.delphi-central.com/runtime.aspx and succeed. private { Private declarations } procedure CustomButtonClick(Sender: TObject); procedure TForm1.AddNewButtonClick(Sender: TObject); var NewButton : TButton; begin NewButton := TButton.create(self); with NewButton do begin Top := 30; Width := 60; Left := Width * (self.ControlCount-2); Parent := self; OnClick := CustomButtonClick; Caption := 'Button '+ inttostr (self.ControlCount-2); end; //With end;

How to allow Delphi secondary forms behind the main form

只谈情不闲聊 提交于 2019-12-18 05:06:08
问题 If in Delphi 2010 or XE Application.MainFormOnTaskbar is set to true then all secondary forms are always in front of the main window. It does not matter what the Popupmode or PopupParent properties are set to. However I have secondary windows that I want to be able to show behind the the main form. If I set MainFormOnTaskbar to false it works, but then the Windows 7 features are broken (Alt-tab, Windows bar icon, etc). How can I keep the Windows 7 features working while still allowing

Best Lightweight HTML Parser for Delphi

妖精的绣舞 提交于 2019-12-18 04:14:07
问题 I need to parse out the values from some data from select boxes. Example: <option value="1">Apple</option><option value="2">Chicken</option> Usage: If option = apple then get value. Any suggestions? 回答1: DIHtmlParser? I'm not sure how "lightweight" it is, but Ralf's components always seemed to be well put together. He's also normally active and response on Embarcadero's Forums. If it's a one-off and not too complex, you could probably split on symbols manually. 回答2: Another option would be