delphi-2007

AsyncCall with Delphi 2007

牧云@^-^@ 提交于 2019-12-03 11:26:34
What I basically want is to start AsyncCall and proceed with my code loading. I have Interface section that consumes lots of time (600+ms) and I want to load this code in independent thread. I've tried to use AsyncCall to make something like this: procedure Load; begin ... end; initialization AsyncCall(@Load, []); // or LocalAsyncCall(@Load) However, this Load procedure actually starts in Main thread and not in the new created thread. How can I force the Load procedure to be loaded in any thread other than MainThread ? I can create TThread and Execute this but I want to force AsyncCall or

How do you line up a TPopupMenu so that it accurately positions itself above a button?

纵饮孤独 提交于 2019-12-03 07:33:36
I want a popup menu above a button: Delphi wraps the Win32 menu system in a way that seems to preclude every mode or flag that the underlying Win32 API provides that was not in the VCL author's brain on that day. One such example appears to be the TPM_BOTTOMALIGN which can be passed into TrackPopupMenu but, the Delphi wrapper appears to render this not only impossible in the stock VCL, but by injudicious use of private and protected methods, is impossible (at least seems to me to be impossible) to do either accurately at runtime, or by overrides. The VCL component TPopupMenu is not very well

Increasing testability, when coding with Bold for Delphi framework

我的未来我决定 提交于 2019-12-03 04:59:32
问题 Background I work in a team of 7 developers and 2 testers that work on a logistics system. We use Delphi 2007 and modeldriven development with Bold for Delphi as framework. The system has been in production about 7 years now and has about 1,7 millions lines of code. We release to production after 4-5 weeks and after almost every release we have to do some patches for bugs we don’t found. This is of course irritating both for us and the customers. Current testing The solution is of course more

Is there a `ProgressButton`?

孤街醉人 提交于 2019-12-03 04:19:33
问题 I could like to have a button that does double duty as a progress bar. + = ........ E.g. a button that fills up with a green background as the task progresses. I know I can create my own, but if there's something ready made I'd love to use that. Does anyone know of a free or commercial component that fits the bill? I would prefer it to work in Delphi-2007, but if it's only available in XE2 that would be OK as well. Update TMS has a glassbutton that allows transparency. If you put a Shape

Tools which can parse Delphi XMLDoc format and build online help

爱⌒轻易说出口 提交于 2019-12-03 04:04:39
The XMLDoc tool for API documentation is explained here: http://edn.embarcadero.com/article/32770 Are there any free or commercial tools which can be used to create documentation based on Delphi's XML doc format? Is there a newer version of the 'getting started' documentation? This page refers to Delphi 2005 and third party tools, some of them seem to have moved. The XMLDoc for Delphi 2005 required Python (tested with Python 2.3) Instant Saxon (tested with Instant Saxon 6.5.3) The Java SDK (tested with J2SE v 1.4.2_05 SDK) and also the Visual Studio Help Integration Kit Check out: Help and

How can I detect a debugger or other tool that might be analysing my software?

浪子不回头ぞ 提交于 2019-12-03 03:38:15
A very simple situation. I'm working on an application in Delphi 2007 which is often compiled as 'Release' but still runs under a debugger. And occasionally it will run under SilkTest too, for regression testing. While this is quite fun I want to do something special... I want to detect if my application is running within a debugger/regression-tester and if that's the case, I want the application to know which tool is used! (Thus, when the application crashes, I could report this information in it's error report.) Any suggestions, solutions? pani You can check the parent process that started

OLE Control window handle error with WebBrowser and Delphi 2007

梦想与她 提交于 2019-12-02 19:34:44
问题 I have run into an issue a couple of weeks ago that appear to have no logical explanation. I'm building an application with Delphi 2007 using AlphaControls and a WebBrowser component placed on a form. The TWebBrowser fetches a banner from the web and displays it into the UI. bad thing is that as soon as the form with the banner is displayed, I get the " Could not obtain OLE Control window handle ", while the browser is being displayed outside of the form, in the top left corner of the desktop

Is there a `ProgressButton`?

£可爱£侵袭症+ 提交于 2019-12-02 17:36:38
I could like to have a button that does double duty as a progress bar. + = ........ E.g. a button that fills up with a green background as the task progresses. I know I can create my own, but if there's something ready made I'd love to use that. Does anyone know of a free or commercial component that fits the bill? I would prefer it to work in Delphi-2007, but if it's only available in XE2 that would be OK as well. Update TMS has a glassbutton that allows transparency. If you put a Shape (with rounded corners) in a dark green color underneigh, it looks just like the effect that I want. Just

OLE Control window handle error with WebBrowser and Delphi 2007

a 夏天 提交于 2019-12-02 08:18:05
I have run into an issue a couple of weeks ago that appear to have no logical explanation. I'm building an application with Delphi 2007 using AlphaControls and a WebBrowser component placed on a form. The TWebBrowser fetches a banner from the web and displays it into the UI. bad thing is that as soon as the form with the banner is displayed, I get the " Could not obtain OLE Control window handle ", while the browser is being displayed outside of the form, in the top left corner of the desktop. I've been trying basically anything to figure it out, but the debugger does not provide too much

Creating a UDF for MySQL in Delphi

天大地大妈咪最大 提交于 2019-12-01 21:20:36
How do I create a UDF for MySQL using Delphi? Does anyone have any code templates? I want the code template to be integrated in Delphi versions(2007 and upper), so I need these templates to be usable with and without Unicode support. For starters, Google reveals: documentation a forum thread an example You need to create a DLL with a few exported functions, as documented. 来源: https://stackoverflow.com/questions/5894258/creating-a-udf-for-mysql-in-delphi