Re: [DUG] D2007 - Disabling packages
I have never really nailed this one down, but I think that it works if you save a normal project after altering the package options. I usually load a project, change the package options and then hit save all. Like I said, I haven't nailed it down, but it seems to work for me. Stacey -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Paul Lowman Sent: Thursday, 23 April 2009 12:23 To: Delphi List Subject: [DUG] D2007 - Disabling packages Folks Has anyone have a fix for the problem with unchecking packages where having unchecked unneeded packages they are checked again after restarting the IDE. Apparently the unchecked packages should appear under the Disabled Packages key in the registry and, indeed, if they are manually added to that key the check box reflects that fact but they don't get put there by the IDE. It is aggravating ... TIA Paul Lowman ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe
Re: [DUG] [OFF TOPIC] Internet connection is not stable
Are you sure that you really have ADSL2+. The ADSL2+ modems are backwards compatible so they'll work with a standard ADSL connection. Stacey -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Alister Christie Sent: Tuesday, 7 April 2009 13:29 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] [OFF TOPIC] Internet connection is not stable With regards to ADSL2, when I looked on the Telecom website, it said we would not get it (here at work) until 2011. However when our router failed, we replaced it with an ADSL2 router - and in fact we had ADSL2 available (for who knows how long). I'm not complaining, but it would have been nice to know sooner - actually I am complaining. We've been using xtra for awhile and have few complaints (see above). Surprising their tech support is quite helpful (on the two or three times I've had to ring them). We were without internet for a couple of days after a power cut - we'll not totally without internet, we all ran of a single mobile jetstream card until it was up and running again. Alister Christie Computers for People Ph: 04 471 1849 Fax: 04 471 1266 http://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington John Bird wrote: xtra fine here - had slingshot for a couple of years, on a slow adsl with a high cap (25GB) which was fine - switched to telecom, std package is quite fast broadband (around 2mbs), have been able to live within a 3GB cap, but its not enough any more...no problems with reliability with either Slingshot or xtra. Slingshots accounts dept were fast asleep tho, thats the only reason I switched. No telstra cable here. No ADSL2 until Apr 2011. Disadvantages of all the lines being underground here I suspect. Oh and no Telstra cable to compete against. John ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe
Re: [DUG] Layers with draw or paint
Take a look at Graphics32 (http://graphics32.org/wiki/) which is a nice graphics library that includes support for layering, including bitmaps, selection layers and user draw layers. Stacey From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Marshland Engineering Sent: Monday, 5 January 2009 23:45 To: delphi@delphi.org.nz Subject: [DUG] Layers with draw or paint I'm trying to simulate a CNC machine. I have the graphics derived from my CNC code working but would now like to add a tool shape. How do I float a shape over a canvas. What I think I need is layers where image on the top layer floats over the bottom image. The other option is record the screen image before the tool, move the tool over the recorded area and then replace when moved passed. Any suggestions ? ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe
Re: [DUG] Call C# code from Delphi 7
We currently do this using the Com method, but it is a pain managing different versions of the dll. I looked into Unregistered COM but I couldn't get it to work for .Net assemblies. Do you know if it is possible to use Unregistered COM with .Net Assemblies from Delphi Win32 (Delphi 6). I am taking a look at Manager VCL. Thanks Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Myles Penlington Sent: Wednesday, 15 October 2008 14:51 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Call C# code from Delphi 7 There are two methods in your case. 1. Have the C# objects declare itself as a COM object. You then register them using regasm. 2. http://www.managed-vcl.com/ You are supposed to be able to host a .NET object directly in D2006. Does not appear to work in D2007. But that will not work in D7. Myles. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leigh Wanstead Sent: Wednesday, 15 October 2008 2:41 p.m. To: NZ Borland Developers Group - Delphi List Subject: [DUG] Call C# code from Delphi 7 Good afternoon, May I ask how to write Delphi code in Delphi 7 to call C# dot net assembly code i.e. dll/exe? TIA Regards Leigh ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe Attention: This communication is confidential and may be legally privileged. If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
Re: [DUG] Adding button to form
A few questions: - Are you absolutely sure that you are editing the right form? o Could it be a different copy of the form that isn't the one being compiled? ยง I have found myself editing a form from a different branch, and getting frustrated that the changes aren't getting into the application. o Could it be an ancestor, or an entirely different form but very similar looking form ? - If you quit Delphi, and the reload the project are the changes there or have they gone? - Are you successfully compiling the application, and running the new version? Stacey From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Colin/Mina Sent: Tuesday, 14 October 2008 15:19 To: DUG, - Delphi Subject: [DUG] Adding button to form Hi, I'm modifying an old application that was written in D5. I have a form amongst others on which there is a Panel on which there is a TButton. All works fine. I need to add another button on the same Panel but having done so it doesn't show up at Run Time. It is enabled and its 'Visible' property = TRUE. In fact I can't seem to add anything i.e.: labels, edit boxes etc.. The mind boggles at having to unravel a whole form and then start from scratch adding 90 odd components and re-stitching it all together. Any suggestions? Thanks Colin ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
Re: [DUG] TMap
TMap is probably refereeing to the MapInfo MapX Active X control. You need to have MapX installed and you will need to find MapXLib_TLB.pas (and possibly other similarly named files) and add them to a design time package such as DCLUser. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Pawley Sent: Wednesday, 1 October 2008 10:59 To: DUG Subject: [DUG] TMap Hi I am running Borland Studio 2006 on WinXP. I can't find the TMap component. My Delphi 3 version has it installed under ActiveX. There is no reference to TMap in the help file. Can someone point me to instructions on how to install this component? Bob ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
Re: [DUG] OO Programming
Same as most of the others on the list. A bit of both. RAD, Data Bound stuff for simple edit screens and reports, but OO structure for more complex screens and processes. Even the simple edit screens are based on top of a few useful base classes that do most of the grunt work. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alister Christie Sent: Tuesday, 29 July 2008 17:08 To: NZ Borland Developers Group - Delphi List Subject: [DUG] OO Programming Do people on this list put in the effort to write proper object oriented code, or write mostly RAD style code, using datasets with data-aware controls and stuff - operating on a customer dataset, rather than the somewhat more abstract instances of TCustomer for example? (does this question make sense?) -- Alister Christie Computers for People Ph: 04 471 1849 Fax: 04 471 1266 http://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
Re: [DUG] delphi 7 Enterprise on Vista
We are using Delphi 6 Enterprise on Vista so I assume that Delphi 7 would be fine too. It works fairly well. We do get a few internal compiler errors here and there, but we had them under XP too. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leigh Wanstead Sent: Tuesday, 15 July 2008 09:43 To: NZ Borland Developers Group - Delphi List Subject: [DUG] delphi 7 Enterprise on Vista Good morning, May I ask if I can run delphi 7 Enterprise edition on Vista to debug an application I wrote in Delphi 7? TIA Have a nice day Regards Leigh ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] D6 breaks with CPU Window
Just did a little digging on Google and found a solution at http://www.delphiturkiye.com/offline/19/11275.html. It patches a running application to avoid the breakpoint. I have tested this in Delphi 6 and it does work, but I can't vouch for its safety. I think that we'll put it into our testing build and see if it effects anything. You'll need create a new unit that uses SysUtils and Windows and then paste in the code. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neven MacEwan Sent: Tuesday, 4 December 2007 16:26 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] D6 breaks with CPU Window Stacey Yes thats the point, well not being alone makes me feel a little better.. thanks N We also get this in a few places when using Delphi 6. Quick report preview always shows it. Seems to break in just after ntdll.DbgBreakPoint, whatever that is. Unfortunately we haven't found a solution. If I am doing something where it comes up all of the time I turn off debugging. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neven MacEwan Sent: Tuesday, 4 December 2007 14:44 To: DUG Subject: [DUG] D6 breaks with CPU Window Hi I have a project that stopped when begin debugged and shows the cpu window (no breakpoint shows) I assume its something corrupted in the debug setup does anyone know how to get rid of it Thanks Neven ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] D6 breaks with CPU Window
We also get this in a few places when using Delphi 6. Quick report preview always shows it. Seems to break in just after ntdll.DbgBreakPoint, whatever that is. Unfortunately we haven't found a solution. If I am doing something where it comes up all of the time I turn off debugging. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neven MacEwan Sent: Tuesday, 4 December 2007 14:44 To: DUG Subject: [DUG] D6 breaks with CPU Window Hi I have a project that stopped when begin debugged and shows the cpu window (no breakpoint shows) I assume its something corrupted in the debug setup does anyone know how to get rid of it Thanks Neven ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] Quick report not printing image
We have had problems with images intermittently not printing. One of my colleagues found some Info on a fix involving memory allocation problems here: http://www.fast-report.com/en/forum/index.php?showtopic=113 Its Post #3. Stacey From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, 23 November 2007 10:28 To: [EMAIL PROTECTED]; delphi@delphi.org.nz Subject: RE: [DUG] Quick report not printing image Thanks John, tried that, but still no image printing... From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Sent: 20 November 2007 9:44PM To: 'NZ Borland Developers Group - Delphi List' Subject: RE: [DUG] Quick report not printing image Hi You have to change your environment settings as QR can't handle long directory names. Go to MyComputer / Change Settings / Advanced / Environment Variables The environment path TMP (not TEMP) should point to e.g. c:\temp, a directory you may need to create. Cheers John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Bisman Sent: Tuesday, 20 November 2007 9:30 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Quick report not printing image I suppose it is in a QRImage and not just a form Image control? Laurie.. - Original Message - From: [EMAIL PROTECTED] To: delphi@delphi.org.nz Sent: Tuesday, November 20, 2007 3:43 PM Subject: [DUG] Quick report not printing image Hi, Using Delphi6 and quickreports. I have a signature as an image which I am trying to print on a letter, but it will not print. I have been using QR for years now and haven't seen this before. I have tried the image as Gif, Jpeg and bmp, but it still will not print. I am exporting it to pdf using pragnaan filters. Everything prints to PDF except the signature image. Al The information contained in this email message is confidential and may be legally privileged. If you are not the intended recipient, please note that any use, dissemination, distribution, or reproduction of this message in any form whatsoever, is strictly prohibited. If you received this email in error, please notify me by return email, delete your copy, and accept my apologies for any inconvenience caused. Please note that your receipt of this email from TOWER's email address does not constitute TOWER's consent for you to send any other electronic information to TOWER by return, unless specifically stated otherwise. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe !DSPAM:47429bdc753621811632609! The information contained in this email message is confidential and may be legally privileged. If you are not the intended recipient, please note that any use, dissemination, distribution, or reproduction of this message in any form whatsoever, is strictly prohibited. If you received this email in error, please notify me by return email, delete your copy, and accept my apologies for any inconvenience caused. Please note that your receipt of this email from TOWER's email address does not constitute TOWER's consent for you to send any other electronic information to TOWER by return, unless specifically stated otherwise. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] Delphi in a mac :-)
I run Delphi 6 and Delphi 2006 on Parallels on a iMac and it works well. The virtual machine is much faster than my old 2GHZ laptop was. I only have 1 gig of RAMM on my machine and it does slow down at times, but I think it wouldn't do this if I had 2 gig or more, which I have read you can do fairly cheaply if you don't get Apple RAM. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Sent: Thursday, 22 November 2007 13:53 To: NZ Borland Developers Group - Delphi List Subject: [DUG] Delphi in a mac :-) Just read this thread http://dev.newswhat.com/amsg/borland.public.delphi.non-technical/4744702 [EMAIL PROTECTED] Anyone here using a delphi in a mac (not basecamp) but via osx as if 'native'? ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] Expression Parser/Evaluator
DelphiForPython allows you to execute python scripts, and even reference delphi variables and objects from within those scripts. All you need to deploy is pythonXX.dll. Stacey From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Brennan Sent: Wednesday, 24 October 2007 16:19 To: DUG Subject: [DUG] Expression Parser/Evaluator Hi, Another question in the popular family of what is the best component suite for X?... Can anyone recommend a good expression parser/evaluator? Ideally a bit more than just mathematical expressions, we would like it to handle logical evaluation (ie Booleans), IF statements and ideally strings (primarily for comparison within boolean IF conditions but if the parser/evaluator could handle strings as results then all the better). We don't need any loop constructs or more advanced program control constructs. We would probably like to be able to define our own expression functions but the user probably doesn't need to be able to. Quality (ie reliability), functionality and availability of source code are our main criteria here. Price isn't going to be so much of an issue unless they are hideously expensive or there are multiple good options to choose between. Any recommendations? Warnings on what to avoid? Thanks, David. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] Parser/Evaluator
Python scripts are compiled to byte code and the byte code is interpreted. It won't reparse code it has already byte compiled. I haven't looked into the Python For Delphi implementation but I would be surprised if you couldn't get it to import and compile your script and then call the already compiled methods. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Scadden Sent: Thursday, 25 October 2007 10:21 To: NZ Borland Developers Group - Delphi List Subject: [DUG] Parser/Evaluator Looking at delphi/Python, I dont think it cuts it. Suppose you want to graph a user-entered function for a 1000 points. While you can pass variables etc, it looks to me like the python function is being parsed with every call? That is slow compared to parsing once and storing execution tree, then just evaluating with new data in the allocated variables. There are a no. of components round that do this (jcl has one) but they lack conditionals. Maybe I do need to modernise formulabuilder. -- Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232 ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] Source Control - Sharing files between projects
We use Araxis Merge for two way diff's and Tortoise Merge for 3 way merges. We found that Tortoise Merge automatically handles the merges much better than Araxis Merge, but Tortoise Merge is annoying when editing conflicts. You can't edit the text. You can only pick which lines you want to keep. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Mueller Sent: Thursday, 11 October 2007 19:40 To: 'NZ Borland Developers Group - Delphi List' Subject: RE: [DUG] Source Control - Sharing files between projects Never liked the clunky BeyondCompare - Araxis Merge is pricy but wins hands down. Here is one of my own take on making a diff-compare tool. Never really finished it into a full commercial standalone product, hesitant seeing that there are already heaps of free or cheap diff-tools out on the market: http://www.stefansblog.com/diffman/diffman.zip So how many of you guys are actually using any form of Diff-utility for your work? What are your favorite compare tools (Araxis, BeyondCompare, CompareIt,etc)? Regards, Stefan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy North Sent: Thursday, October 11, 2007 1:15 PM To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Source Control - Sharing files between projects I've blogged about it before but I really like BeyondCompare. The upcoming version 3 sounds very promising on the merge front and 3 way compares. I expect both have trials. cheers, Jeremy ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] png buttons, actionbars
The latest TBX (based on Toolbar 2000) works well. It comes with an image list that supports PNG's with alpha channel. It supports the system theme so it will look good on XP and Vista, and it also supports custom themes, although there aren't too many nice ones around. There is an extra component that allows you to customise it at runtime. Stacey From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Barker Sent: Wednesday, 3 October 2007 00:38 To: NZ Borland Developers Group - Delphi List Subject: [DUG] png buttons, actionbars I know this has been discussed here before, but are there any more recent opinions on the merits of 1. using TActionManager, TActionMainMenuBar, TActionToolBar. It seems to be a better framework than the original TMainMenu and TActionList etc. 2. decent PNG handling in conjunction with the above. 3. any other preferred alternatives? My first tests show that when using the freeware TPNGComponents, specifically the TPngImageList, along with the standard action bars, the glyphs are highlighted during mouse-over with an ugly rectangular background. There are 2 style options: XP, and Standard. Standard looks ok, but I'd like to get the more modern XP style working without the background/shadow drawing. The box around the whole control is ok, but not the extra rectangular shadow behind the glyph part. Using RS2007, or whatever it is called now. Another related question: By setting the TActionManager's FileName property, the user can customise the actionbars and have these changes persisted. But if you distribute an updated exe with say a new menu item it is not shown, as the user's saved settings take priority over your design-time changes. How do you handle this? By erasing their settings file if a new update is run for the first time, or what? Regards, Steve Barker Webdata Ltd ph +64 9 4103074 ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] Midas.dll
I don't think you should expect midas.dll to be present on a clients machine. It's a Borland dll and would only be present if they already have a midas (DataSnap) based application installed. Your installer should install it, but not overwrite a newer version. Stacey From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Knight Sent: Tuesday, 2 October 2007 14:09 To: NZ Borland Developers Group - Delphi List Subject: RE: [DUG] Midas.dll A recently created application of mine failed to work on 2 XP machines due to midas.dll not being present on the users machine. I put a copy in the same directory as the application to get over the problem but havn't figured out why it happened yet. Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rohit Gupta Sent: Tuesday, 2 October 2007 12:43 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Midas.dll Cant find it I guess XP is playing silly buggers again. I will use a DOS tool. :-) Jeremy North wrote: It still exists. On 10/2/07, Rohit Gupta [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Does Midas.dll no longer exits ? -- Rohit Gupta B.E. Elec. M.E. Mem IEEEAssociate IEE Technical Manager Computer Fanatics Limited Tel +64 9 4892280 Fax+64 9 4892290 Email [EMAIL PROTECTED] Webwww.cfl.co.nz This email and any attachments contain information, which is confidential and may be subject to legal privilege and copyright. If you are not the intended recipient, you must not use, distribute or copy this email or attachments. If you have received this in error, please notify us immediately by return email and then delete this email and any attachments. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe -- Rohit Gupta B.E. Elec. M.E. Mem IEEEAssociate IEE Technical Manager Computer Fanatics Limited Tel +64 9 4892280 Fax+64 9 4892290 Email [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Webwww.cfl.co.nz http://www.cfl.co.nz/ This email and any attachments contain information, which is confidential and may be subject to legal privilege and copyright. If you are not the intended recipient, you must not use, distribute or copy this email or attachments. If you have received this in error, please notify us immediately by return email and then delete this email and any attachments. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.ecan.govt.nz ** ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] Source Control - Sharing files between projects
We are using subversion and it has the same problem. We re-arranged our project structure so that there is a folder that contains all of the common code which is well organised into sub folders. Each projects folder actually contains a minimal set of files that are currently, and always going to be, completely unique to that project. Sometimes this is just the main form. The rest of the files are under Common. The project uses clause contains a list of every file in the project with relative paths. Files for components are'nt listed in the project because they are in folders that are in our Library path. You mentioned that it may be a problem for all projects to share the same copy of a file, but I think it works better this way. In this case you can make the changes to your file, and then make sure it works with other project before checking things in. When the files were shared it was pretty common for someone to check is a change that worked with one project, but not with another. The only thing that this doesn't handle is files that are shared between each project that are not compiled into the exe, such as help files. In subversion you can share folders (using svn-externals), so we have a common folder that contains these files and share this folder with each project that needs them. Again this has actually improved things because these files are nicely organised into sub folders rather than all being in the same folder as the exe. Stacey From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Brennan Sent: Wednesday, 26 September 2007 10:12 To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] Source Control - Sharing files between projects Hi, I'm interested in hearing how people use their source control. We currently use Visual SourceSafe (VSS) which it turns out (after some comparison with other options) is quite nice in terms of core feature set. However is isn't a true database with atomic commits so there is that constant risk of database corruption if a network connection dies. We've been pretty luck so far but we have had one fairly minor scare. It also lacks strong support for branching and changeset type changes. So I can certainly see benefits in moving to a more powerful tool. The problem is that the alternatives all seem to be missing one or more VSS features. For example I don't like Subversion/CVS because their lack of explicit checkouts means you can't tell which developers are working on a particular file (unless you use Subversion locks but then only one developer can edit the file at once, unlike VSS's multiple checkouts). So the current favourite is probably Perforce. I know several companies on DUG (most notably Accredo) use and love Perforce. It looks great. Costs a bit but we can probably handle that. The one feature it appears to be missing is Shared Files. To explain, VSS allows you to share a file between multiple folders. We have maybe a dozen Delphi projects and most of our source files are used by more than one project. That's fine, we put each project into a different VSS folder and share the files to the projects which require them. Unfortunately this appears to be a VSS specific ability. So the questions: 1. Does anyone know how to reliably achieve similar shared file between folders functionality in Perforce? 2. Most development companies must have similar shared source files. How do you structure your projects and source files? (Note: I am talking about source files used by projects here, not files which are compiled into VCL packages) Some thoughts on question 2: One option is to just put all files into a single directory. No need to share now! However this means that projects could easily end up compiling in files you don't think they are (or should be) using because Delphi will always find the file. With our current separate folders scheme there is some control and you can be fairly sure whether a project is or is not using a source file. Another option would be to put the projects in one directory, the source files in one or more other directories, and then get the projects to reference each source file by relative path. This way each project will only be able to compile in files which are specifically referenced in the project file so you can easily check which files are being used. The downside of this (and the previous option too) is that each project is directly sharing the files with the others. So if you are making multiple changes in one project over the period of a week or so then it quite probable that none of your other projects will compile until you are finished because they will be trying to compile in your changed files. This is particularly frustrating if you need to make a small unrelated change to another project midway through the week. So... what's a developer to do!? Cheers, David. ___ NZ
RE: [DUG] tMemo, Stop updating
Yep. Memo.Lines.BeginUpdate; // Do stuff Memo.Lines.EndUpdate; This works with anything that is based on TStrings. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neven MacEwan Sent: Wednesday, 1 August 2007 16:13 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] tMemo, Stop updating Steve Memo1.lines.Beginupdate? or something like that Bloody stupid question I know, but I spent all day traversing 3 tons of spaghetti code and my mind is mush. Is there a way that I can tell a tMemo component not to keep updating when I process all the lines. I have a tMemo component with, lets say 5-10,000 lines. I want to process through each of those lines updating certain ones where necessary. for i := 0 to Memo1.lines.Count - 1 do If (Memo1.lines[i] = 'I can use this line') then DoThingsToTheLine; The problems is that I want to have the tMemo remain on the form, but I don't want it to keep updating to try to keep up with the current line that I'm processing. I've already tried Memo1.Enabled := false, but the frigging thing still keeps updating. I don't want to make it invisible as it looks really horrible. Any suggestions? Steve ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] Graphical User Interface Design
TBX (A themes extension of Toolbar 2000) supports alpha transparency in PNG's and includes an image list component that works as well. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alister Christie Sent: Friday, 29 June 2007 10:38 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Graphical User Interface Design I'd avoid using BMPs for images on buttons and use PNGs instead. You wont be able to use the standard TBitBtn or TSpeedButton however. You could try http://www.thany.org/article/32/PngComponents which are free buttons that support PNGs is you don't already have a set (and are small of wallet). Alister Christie Computers for People Ph: 04 471 1849 Fax: 04 471 1266 http://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington Sean Cross wrote: Step 1: Get high quality bitmaps for your buttons etc. Don't use old or nasty images. Step 2: Big buttons with big images AND text. Le the users remove the text once they are experienced. Step 3: Profit Regards Sean Cross IT Systems Development Manager Catalyst Risk Management PO Box 230 50 Dalton St Napier 4140 DDI: 06-8340362 mobile: 021 270 3466 Visit us at http://www.catalystrisk.co.nz/ Offices in Auckland, Napier, Wellington Christchurch Disclaimer: The information contained in this document is confidential to the addressee(s) and may be legally privileged. Any view or opinions expressed are those of the author and may not be those of Catalyst Risk Management. No guarantee or representation is made that this communication is free of errors, viruses or interference. If you have received this e-mail message in error please delete it and notify me. Thank you. -Original Message- From: [EMAIL PROTECTED] [mailto:delphi- [EMAIL PROTECTED] On Behalf Of Nick Sent: Thursday, 28 June 2007 10:07 a.m. To: NZ Borland Developers Group - Delphi List Subject: [DUG] Graphical User Interface Design Hey guys, Just about to update one of our main apps and thinking about just rebuilding it from the ground up, especially the gui side of it. The original one wasn't to bad, but looking at other programs there is some very nice looking applications out there. Now I have the TMS component set and there are some very nice graphical components in there - but I don't want the program to be overwhelming (picture someone that finds the transitions in a slide show app for the first time!) but also don't want it to look like something from windows 3.1 End of the day it comes down to the usability for the user and making everything as easy and logical for them to use, but also want it to look appealing. So what steps, guidelines, approach do you take when designing an application. :-) Cheers Nick ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] D2007 - Property TextHeight does not exist.
Could be something to do with your uses clause. Whatever class is supposed to have these properties may be declared twice (different version, or completely different classes with the same name) in different units, and in this case it is using the wrong one and therefore stuffing up. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Cross Sent: Sunday, 20 May 2007 19:18 To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] D2007 - Property TextHeight does not exist. I have a D7 project that I have upgraded to D2007. When I run it, it gives the following error: --- Application Error --- Exception EReadError in module PPrint4.exe at 00460737. Error reading frmBase.TextHeight: Property TextHeight does not exist. --- OK --- If I alter the dfm to remove the TextHeight property, or if I create things in a different order, I get other similar errors. Ed datamodule property height does not exist, DesignSize etc. This doesn't happen with other projects, just with this one. Any ideas where to start looking? Regards Sean --- Sean Cross mailto:[EMAIL PROTECTED] Pics Print - The photo printing solution for Windows. http://www.picsprint.com Rental Property Manager - Rental management made easy http://www.sourceitsoftware.com ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG] Test
Why can't I reply? :) Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Cross Sent: Thursday, 12 April 2007 09:07 To: NZ Borland Developers Group - Delphi List Subject: [DUG] Test Why can't I post? Regards Sean Cross IT Systems Development Manager Catalyst Risk Management PO Box 230 50 Dalton St Napier 4140 DDI: 06-8340362 mobile: 021 270 3466 Visit us at http://www.catalystrisk.co.nz/ Offices in Auckland, Napier, Wellington Christchurch Disclaimer: The information contained in this document is confidential to the addressee(s) and may be legally privileged. Any view or opinions expressed are those of the author and may not be those of Catalyst Risk Management. No guarantee or representation is made that this communication is free of errors, viruses or interference. If you have received this e-mail message in error please delete it and notify me. Thank you. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
RE: [DUG]: Basic question on custom components
Title: Message Add a property to each of the components which you set to the other component at design time. Thay way they will know about each other. Stacey -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 11 November 2003 21:47To: Multiple recipients of list delphiSubject: [DUG]: Basic question on custom components Hi, I'm trying to write my first custom component and have come across a problem I'm positive it's common and easy to solve - but I'm not familiar with how. I have a form with an existing custom component on it (written in the past by someone else). The form resides in MainUnit.pas and the existing custom component resides in UVObject.pas. I've created a new component with the class residing in TableObject.pas. From an instance of my new component (TUVTable, dropped on the form), I need to call methods of the instance of the TUVObject component on my form. In TUVTable.pas I could add a uses clause, MainUnit, and then call MainUnit.UVObject1.method - so allowing communication between the 2 component instances. This is silly as if the user of my component has named their unit something other than MainUnit, then it won't work. How do I enable intercommunication between 2 component instances on my form? Thanks for the help. Cheers, Dave Dave Jollie Developer, TOWER NZ IT (: 09 368 4259 : 09 306 6801 *: [EMAIL PROTECTED] .: 46 Parnell Rd, Parnell, Auckland
RE: [DUG]: Delphi 7 - Designeditors
From Delphi 6 up they enforced the license condition that none of the design time code could be included in applications. The designer needs to be in its own unit which is NOT included in your application project. The package then includes the component unit and the designer unit. If you use runtime packages you need to have a runtime package without the designer uint and a designtime package with it. Stacey -Original Message- From: Rohit Gupta [mailto:[EMAIL PROTECTED] Sent: Friday, 31 October 2003 12:04 To: Multiple recipients of list delphi Subject: [DUG]: Delphi 7 - Designeditors I am converting from D5 to D7... In a component it uses the designeditors which halts compiling at uses Proxies Any idea how I can fix this ?Regards Rohit == CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH(649) 489-2280 FX(649) 489-2290 email [EMAIL PROTECTED] or [EMAIL PROTECTED] == -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: Re: [DUG]: Just wondering...
What about if Option.ItemIndex = 1 then begin Label1.Enabled := True; Label2.Enabled := True; end else begin Label1.Enabled := False; Label2.Enabled := False; end; Stacey --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Associate file type with D7
Did you check the 'Always use the selected program to open this kind of file' option? Stacey -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 11:20 To: Multiple recipients of list delphi Subject: [DUG]: Associate file type with D7 Hi I have just installed D7 alongside D5 in my XP environment. I like to open the IDE with a particular project loaded by double clicking the .dpr file, but when I do that it loads D5. I have gone into Folder optionsFile types and selected DPR and it tells me that it is set to open with the Delphi (D5 icon) development environment. I clicked Change and it tells me that D5 and Notepad are recommended and D7 is not in the list of Other Programs. I clicked Browse and select the D7 Delphi32.exe and click Open When I get back to the File Types window the Opens With entry has not been updated and when I test things the projects still open with D5. Can someone help me here, please? What am I missing? TIA Mark -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: RE: [DUG]: Associate file type with D7
I am on Windows XP pro and can do the following: Right Click on the file (.dpr) and select Open With (there may be a sub menu - click Choose Program...) Browse for the exe (I don't have a different version of Delphi but I just picked a random exe). Check the 'Always use the selected program to open this kind of file' option which is enabled for me. If its not enabled you could try picking something like notepad, check the box and then browse for Delphi 7 with the box already checked. Otherwise start Regedit and edit HKEY_CLASSES_ROOT/DelphiPackage Stacey -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 11:31 To: Multiple recipients of list delphi Subject: RE: [DUG]: Associate file type with D7 That option is disabled Mark On 29 Oct 2003 at 11:25, Stacey Verner wrote: Did you check the 'Always use the selected program to open this kind of file' option? Stacey -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 11:20 To: Multiple recipients of list delphi Subject: [DUG]: Associate file type with D7 Hi I have just installed D7 alongside D5 in my XP environment. I like to open the IDE with a particular project loaded by double clicking the .dpr file, but when I do that it loads D5. I have gone into Folder optionsFile types and selected DPR and it tells me that it is set to open with the Delphi (D5 icon) development environment. I clicked Change and it tells me that D5 and Notepad are recommended and D7 is not in the list of Other Programs. I clicked Browse and select the D7 Delphi32.exe and click Open When I get back to the File Types window the Opens With entry has not been updated and when I test things the projects still open with D5. Can someone help me here, please? What am I missing? TIA Mark -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi% 40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Single , double mouse click
I used a timer to handle this. The onclick starts a timer. If the timer fires the code you want to run is done and stops the timer. The ondblclick stops the timer and does what it wants. Stacey -Original Message- From: Paul Lowman [mailto:[EMAIL PROTECTED] Sent: Tuesday, 21 October 2003 12:44 To: Multiple recipients of list delphi Subject: [DUG]: Single , double mouse click Hi all This is one I thought I knew but cannot for the life of me remember. How do I handle a single and double mouse click in different ways. If I use OnClick and OnDblClick the OnClick always fires as well as the OnDblClick when I double click the mouse. How to differentiate them ? Regards Paul Lowman Lowman Consulting Ltd. [EMAIL PROTECTED] -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Threads again
Title: Message Can you create the indy component at runtime? Stacey -Original Message-From: Ross Levis [mailto:[EMAIL PROTECTED] Sent: Thursday, 16 October 2003 13:14To: Multiple recipients of list delphiSubject: [DUG]: Threads again (D5) I currently have a thread which is updating a text file. I'm wanting to alterit to optionallysend the file toan ftp server once it's created. I'vewritten to ftp servers before using Indy. I need to put the Indy component on a form, so if I put it on the mainform, can I use it in the thread without using Synchronize?. Or is Indy quite responsive and would not slow down themain thread by using Synchronize? Any ideas? Regards, Ross Levis.
RE: [DUG]: Using DBNavigator without Datasource
Take a look at Toolbar97. It has auto repeating buttons. http://www.jrsoftware.org/tb97info.php Note. Toolbar 2000 does not havbe autorepeating buttons. Stacey -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 October 2003 9:05 To: Multiple recipients of list delphi Subject: [DUG]: Using DBNavigator without Datasource Hi I need to have left and right arrow buttons that auto-repeat (like a spin edit) . I thought that I could use the DBNavigator but have found that it has to be connected to a datasource and dataset and also that one or other of the buttons will be disabled if at the start or end of a dummy dataset. Is there a way I can use this control without it being DB connected? or Does someone have an example of providing auto-repeat to a button? TIA Mark -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: RE: RE: [DUG]: Delphi Apps in a Seamless Citrix Environment
Title: Message In our system we see the application form every now and then, but most of the time it stays hidden. I haven't managed to track down when it appears and not. The piece of code I gave you could be improved by removing the app form borders and making it 1 pixel by 1 pixel, but I haven't tried this. If you do have a play one thing you need to know it that at least 1 pixel of the application form must be within the bounds of the screen. Stacey -Original Message-From: Vaughan, Benjamin Carl [mailto:[EMAIL PROTECTED] Sent: Monday, 6 October 2003 15:47To: Multiple recipients of list delphiSubject: RE: RE: [DUG]: Delphi Apps in a Seamless Citrix Environment Thanks Stacey, It works fine on Citrix like this, except it seems that the application form reappears after restoring from a minimize. Still, a small price to pay. Cheers Ben -Original Message-From: Stacey Verner [mailto:[EMAIL PROTECTED] Sent: Monday, 6 October 2003 2:20 p.m.To: Multiple recipients of list delphiSubject: RE: [DUG]: Delphi Apps in a Seamless Citrix Environment There is a problem with Delphi and Citrix Metaframe, where delphiapplications don't show on the task bar.I have found that you can make a change to forms.pas to fix this.In TApplication.CreateHandle find the CreateWindowEx call and replaceit with the following. //Change -19/07/2001// Updated to create the application form as visible (by removing WS_POPUP)// but it is created transparent with 1 transparent pixel in the top// left corner of the screen;FHandle := CreateWindowEx(WS_EX_APPWINDOW or WS_EX_TRANSPARENT , WindowClass.lpszClassName, PChar(FTitle) , WS_CAPTION or WS_CLIPSIBLINGS or WS_SYSMENU or WS_MINIMIZEBOX // or WS_POPUP //, GetSystemMetrics(SM_CXSCREEN) div 2 //, GetSystemMetrics(SM_CYSCREEN) div 2, 0, 0 , -199, -19, 200, 20 , 0, 0 , HInstance , nil);// -Change -Original Message-From: Vaughan, Benjamin Carl [mailto:[EMAIL PROTECTED] Sent: Monday, 6 October 2003 14:01To: Multiple recipients of list delphiSubject: [DUG]: Delphi Apps in a Seamless Citrix Environment Hi All, Currently our applications are published through a Citrix environment in which most of our users are set up to use the Seamless Window option. The problem that I have is that the application does not appear in the users taskbar unless the application is Minimised. I have experimented with other applications and it does seem to only be applications that are created in Delphi that exhibit this problem. (For example publishing Notepad or Office behaves normally showing up in the taskbar at all times). Anyone have any ideas on this? Regards Ben Vaughan
RE: [DUG]: Delphi Apps in a Seamless Citrix Environment
Title: Message There is a problem with Delphi and Citrix Metaframe, where delphiapplications don't show on the task bar.I have found that you can make a change to forms.pas to fix this.In TApplication.CreateHandle find the CreateWindowEx call and replaceit with the following. //Change -19/07/2001// Updated to create the application form as visible (by removing WS_POPUP)// but it is created transparent with 1 transparent pixel in the top// left corner of the screen;FHandle := CreateWindowEx(WS_EX_APPWINDOW or WS_EX_TRANSPARENT , WindowClass.lpszClassName, PChar(FTitle) , WS_CAPTION or WS_CLIPSIBLINGS or WS_SYSMENU or WS_MINIMIZEBOX // or WS_POPUP //, GetSystemMetrics(SM_CXSCREEN) div 2 //, GetSystemMetrics(SM_CYSCREEN) div 2, 0, 0 , -199, -19, 200, 20 , 0, 0 , HInstance , nil);// -Change -Original Message-From: Vaughan, Benjamin Carl [mailto:[EMAIL PROTECTED] Sent: Monday, 6 October 2003 14:01To: Multiple recipients of list delphiSubject: [DUG]: Delphi Apps in a Seamless Citrix Environment Hi All, Currently our applications are published through a Citrix environment in which most of our users are set up to use the Seamless Window option. The problem that I have is that the application does not appear in the users taskbar unless the application is Minimised. I have experimented with other applications and it does seem to only be applications that are created in Delphi that exhibit this problem. (For example publishing Notepad or Office behaves normally showing up in the taskbar at all times). Anyone have any ideas on this? Regards Ben Vaughan
RE: [DUG]: Debugging Console programme
Go Run - Parameters in the menu and set up the parameters you need. Stacey -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 10 September 2003 14:26 To: Multiple recipients of list delphi Subject: [DUG]: Debugging Console programme Hi If you have a console programme that requires a command line parameter, how do you get to start that programme from the IDE in order to debug it? Mark -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Can anyone recomend a more capable DBCtrlGrid control?
We use the Express Quantumn Grid by Developer Express. Stacey -Original Message- From: Steven Knight [mailto:[EMAIL PROTECTED] Sent: Thursday, 7 August 2003 9:13 To: Multiple recipients of list delphi Subject: [DUG]: Can anyone recomend a more capable DBCtrlGrid control? I am trying to find a control like DBCtrlGrid which can contain memo fields and display formatted Rich text. It would be nice if it had rich text editing controls but I can do that in a separate TXText Control window. It appears there are a lot out on the web but which ones are worth looking at? Thank you Steven Knight Analyst / Programmer Environment Canterbury P.O. Box 345, Christchurch phone: (03) 365-3828 email: [EMAIL PROTECTED] Visit us online at http://www.ecan.govt.nz ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. The contents of this email and any attachments are not formal policy of Environment Canterbury, unless otherwise stated. ** -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Impending madness -- Interbase SUM
I can't be sure but I imagine the distinct clause is causing trouble here. Have you tried removing it? Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, 21 July 2003 16:34 To: Multiple recipients of list delphi Subject: [DUG]: Impending madness -- Interbase SUM Hi folks, Can anyone spot why this dirt-simple Interbase SQL is rejected with an invalid column reference UNLESS I remove all of the SUM, GROUP and ORDER clauses: select distinct O.INVNO, SUM(D.QTY) as Total from ORDER O, DETAIL D where O.INVNO=D.INVNO group by O.INVNO order by Total All I'm trying to do is return a result set which contains relevant fields from a master table, plus a Total field obtained by summing matching rows of a detail table. Bread and butter SQL, but today I'm missing something very obvious. NB: This is cut down and edited from a far more complex and less readable query (originally using join as it should properly do, but I've been all over the park since then without success). I can get one just like it to working for me against, say, Paradox but Interbase just won't buy it. TIA! cheers, peter === Peter Hyde, Development Director, SPIS Ltd, Christchurch, New Zealand * TCompress/TCompLHA component sets for Delphi/Kylix/C++ * TurboNote+: http://TurboNote.com -- top-rated onscreen sticky notes Find all the above and MORE at http://spis.co.nz -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: RE: [DUG]: QuickReports code needed
Our quick report code seems to be able to do what you want. Download our stand alone viewier to check that it works for you, and get back to mi if it does. http://www.cjntech.co.nz/Downloads/CJNVIEWER_80_0012.EXE Stacey -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Friday, 20 June 2003 8:08 To: Multiple recipients of list delphi Subject: RE: [DUG]: QuickReports code needed John Nope. Have definitely NOT solved the problem. I found a QRPreview app on the internet that I thought would do the trick but it comes up with Invalid metafile format which suggests that it only handles QRP files created by an older version of QR. (This caused great excitement when I first tested it..on old QRP files!) But thanks for the post - I was thinking that I was the only one who had ever wanted to do this! Mark On 20 Jun 2003 at 7:41, John wrote: Hi Mark, I understand from your email that you have solved the problem: full path name of the .QRP file ? Can you tell me how to solve this problem please? John. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mark Howard Sent: Thursday, 19 June 2003 10:41 To: Multiple recipients of list delphi Subject: [DUG]: QuickReports code needed Hi all Following on from my problem last week, previewing a QR metafile, I would like request a solution for the problem. I need some code that will: * accept the full path name of a .QRP file * bring up that report in a fully functional preview screen that allows: * navigating pages * sizing display (eg full screen etc) * AND (here's the rub) selecting a sub-set of pages to be printed * Close tidily (without AV's) (D5, QR3.0.5) The only aspect that I (and a colleague) have been unable to crack is being able to select pages for printing. Getting a solution to this has a commercial value to me and (while I guess it may not be in the normal spirit of this list) I am perfectly happy to pay for some code that does the trick. If anyone has already done this, or is confident that they can, could they please contact me off-list. I hope that members don't think that this request is a mis-use of the list. If they do think that this sort of request is inappropriate, what about the idea of a separate list for the trading of expertise. I know I would use it. Mark -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi% 40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Resizing for XP title bars
Title: Message We handle this by using a bottom aligned panel. Stacey -Original Message-From: David O'Brien [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 June 2003 9:47To: Multiple recipients of list delphiSubject: [DUG]: Resizing for XP title bars Any easy way of dealing with XP's title bar size change? Apart from leaving a gap at the bottom of the form? Dave.
RE: RE: RE: [DUG]: Resizing for XP title bars
Title: Message No. Thebottom aligned panel contains the controls that would have been anchored to the bottom (usually buttons but not always). We have a client alignedpanel for the rest of the controls. In general we design all of our forms to be resizeable so all of the controls are anchored or aligned correctly. If we don't have a control that resizes with the form we leave a little extra space so that it looks correct on XP and older systems. I have never managed to isolate it but anchors don't always work. The resize code doesn't always get called when things are shown or hidden, and in the case of XP when the title bar is not the expected size. Stacey -Original Message-From: David O'Brien [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 June 2003 8:57To: Multiple recipients of list delphiSubject: RE: RE: [DUG]: Resizing for XP title bars Is that with nothing on the panel with a client aligned panel above for controls? Dave. -Original Message-From: Stacey Verner [mailto:[EMAIL PROTECTED]Sent: Wednesday, 4 June 2003 8:37 a.m.To: Multiple recipients of list delphiSubject: RE: [DUG]: Resizing for XP title bars We handle this by using a bottom aligned panel. Stacey -Original Message-From: David O'Brien [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 June 2003 9:47To: Multiple recipients of list delphiSubject: [DUG]: Resizing for XP title bars Any easy way of dealing with XP's title bar size change? Apart from leaving a gap at the bottom of the form? Dave.
RE: [DUG]: Offtopic list not working
No problem. Stacey -Original Message- From: Stephen Barker [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 June 2003 13:07 To: Multiple recipients of list delphi Subject: [DUG]: Offtopic list not working Hi all, Somehow the Offtopic list has lost many of you - it seems there are only 89 members vs. 216 on the Delphi list. I seem to recall something like this happening a while back with the Delphi list and Gary restored from backup. Quickest fix would be for me to copy the Delphi list members over to the Offtopic list, then anyone not wanting to remain can remove themselves - any objections? regards, Steve -Original Message- From: Paul Mckenzie [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 June 2003 8:00 a.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: hiding a file The Off-Topic list does not seem work any more :-( Regards Paul McKenzie Analyst Programmer SMSS Ltd. - Original Message - From: Paul Lowman [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:07 AM Subject: [DUG]: hiding a file Hi all I am planning to use OnGuard to provide rudimentary protection of some software but am trying to figure out where to put an opaquely named registration file. I thought maybe put in amongst the System32 files but am concerned about whether that is possible if the user is doe not have admin rights. Has anybody any suggestions - all welcomed ... Paul Lowman (I posted this offtopic but got bounced - anyone know why that might be ?) -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi% 40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.487 / Virus Database: 286 - Release Date: 1/06/2003 -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Tab across TabSheets
Title: Message You need to handle the CMDialogKey message to handle the TAB. procedure CMDialogKey(var Message: TCMDialogKey); message CM_DialogKey; ... procedure TfWhatever.CMDialogKey(var Message: TCMDialogKey);begin if (Message.CharCode = VK_TAB) and (ActiveControl =eLastEditoronFirstTab) then begin pcPageControl.ActivePage := tsPage2; end;inherited;end; -Original Message-From: Allan, Samuel [mailto:[EMAIL PROTECTED] Sent: Wednesday, 28 May 2003 15:45To: Multiple recipients of list delphiSubject: [DUG]: Tab across TabSheets I have two tabsheets. When user presses tab in the last control on the first tabsheet I want to go to the first control of the second tabsheet.
RE: [DUG]: OffTopic Batch file question
I'm a little rusty here, but I think that Call runs another process and waits for it. e.g. Call NewPatch.exe. Stacey -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 28 May 2003 16:20 To: Multiple recipients of list delphi Subject: [DUG]: OffTopic Batch file question Hi All Sorry for posting this on the main group - but it seems OffTopic is not behaving. This is what I posted there a couple of days ago. Hi I have a batch file that goes something like: NewPatch.exe //this is a Windows GUI application ATTRIB +R D:\PSLogV2\DBData\*.* This works fine on my Win2K machine - in that it waits for NewPatch to complete before running the ATTRIB line. On a client's Win95 machine, however it doesn't wait for NewPatch.exe to complete (in fact the ATTRIB line runs before the GUI app has even opened its window). Has anyone encountered this problem before? and is there a work around? TIA Mark -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Timer
When I need to restart the timer intarval to call: Timer1.Enabled := False; Timer1.Enabled := True; Stacey -Original Message- From: Alistair George [mailto:[EMAIL PROTECTED] Sent: Thursday, 3 April 2003 14:22 To: Multiple recipients of list delphi Subject: [DUG]: Timer Hi all. I thought ( the help seems to indicate) that Timer1.enabled:=true; //Default time is 5000 Desired scenario. timer completes timeout for 5 seconds if nothing happens. But if something happens then timer interval is reset to 5000 timer1.interval:=5000; and the count restarts But it does not seem like that is happening. Any comments? Thanks, Alistair+ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Getting breakpoints working properly
Title: Message Tools - Debugger Options Integrated Debugging must be checked. Also make sure the debugging stuff is selected under Compiler in the project options. Stacey -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 March 2003 10:23To: Multiple recipients of list delphiSubject: [DUG]: Getting breakpoints working properly Hi, just moved to a new machine with XP (was on NT). Re-installed Delphi 6 and now breakpoints don't work! If I breakpoint a line (red dot), and then run the project, it's as though it runs a different version, as the "blue balls" don't appear in the source margin and the breakpoints never execute. (Breakpoints don't go the disabled colour either). the breakpoints are on obvious places that have to execute, like form create I've re-built the project a number of times, blue balls appear, but go when I run the project and don't return. I've deleted all files except .pas, .dpr and .dfm, and rebuilt project - still no luck I've checked that the dll is being created in the directory I expect and that it definitely runs that dll (not another one created elsewhere) I've loaded another project and re-built, to see if all projects are effected - breakpoints didn't work on this one either Are there some compiler, linker or debugger options, that must be on, in order for breakpoints to work? (they are at their default install settings at present) Any ideas? Thanks. Dave
RE: [DUG]: uses
You can only use 'in' if it is the uses clause of a project (program or library). Stacey -Original Message- From: Alistair George [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 February 2003 16:06 To: Multiple recipients of list delphi Subject: [DUG]: uses Hi all. What could be wrong here in the Uses: dfsStatusBar, mb in '../back4winxp/mb.pas'; mb throws an error: ',' or ';' expected, but 'IN' found. thanks, Al+ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Tabsheet
Call PageControl.Invalidate. Stacey -Original Message- From: Alistair George [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 8:09 To: Multiple recipients of list delphi Subject: [DUG]: Tabsheet Hi very weird, I can turn the tabsheet tab on and off, but I cannot turn the highlight on and off: Tabsheet5.tabvisible:= not Tabsheet5.tabvisible; works ok but not below //Tabsheet5.Highlighted:= not Tabsheet5.Highlighted; -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Adding Icons to the Menu bar....
Title: Message UseToolbar 2000 (http://www.jrsoftware.org/) (or something like it) which will give you a nice toolbar style menu, and allow you to put whatever you like (TImage?) onto the end. Stacey -Original Message-From: Paul Mckenzie [mailto:[EMAIL PROTECTED]] Sent: Friday, 10 January 2003 14:30To: Multiple recipients of list delphiSubject: [DUG]: Adding Icons to the Menu bar G'day Does anyone know if icons can be added (preferably easily) to the menu bar - but not as a menu item... What i need to do is add 4 icons to the menu bar, just after the last menu item. I acn sort-of do this by adding blank menu items and setting a BMP for each item. The problem is that they are still clickable or loook clickable even if disabled - when the mouse goes over the bevel edge appears to indicate they are menu items. I could live with just turning off the bevel edge thing - but the menu is inherited and it is only the last 4 items I want to turn it off for. Any help, ideas, suggestions much appreciated. RegardsPaul McKenzieAnalyst ProgrammerSMSS ltd.
RE: [DUG]: Suppressing exception popups in certain parts of code.
Not exactactly what you want but should help. Go to Tools - Debugger Options On the Language Exceptions tab add and check the excpetion type you want to ignore. Stacey -Original Message- From: Andrew Thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 11 December 2002 3:39 p.m. To: Multiple recipients of list delphi Subject: [DUG]: Suppressing exception popups in certain parts of code. I know its probably bad programming but is there a way to stop an exsception coming up in the debugger in a certain part of the code? For instance say you had something like this: try //error often occurs except //unhandled for a reason end; And I just want that one unhandled exception to not keep coming up each time. Any Ideas? Cheers Andrew -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: anyone had any experience with delphi and LDAP connectivity? recomment any components if I need any?
I have been using LDAP without any components. I importe the Active Direectory (resulting in ActiveDs_TLB) interface and from ther I was fine. Take a look at http://www.agnisoft.com/adsi/Conf2000/3132.htm. Stacey -Original Message- From: Chris Veale [mailto:cveale;hortresearch.co.nz] Sent: Tuesday, 12 November 2002 5:13 p.m. To: Multiple recipients of list delphi Subject: [DUG]: anyone had any experience with delphi and LDAP connectivity? recomment any components if I need any? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.417 / Virus Database: 233 - Release Date: 8/11/02 __ The contents of this e-mail are privileged and/or confidential to the named recipient and are not to be used by any other person and/or organisation. If you have received this e-mail in error, please notify the sender and delete all material pertaining to this e-mail. __ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
[DUG]: Delphi Warning Expert to remove Warnings
Title: Message For Delphi 6 there is an IDE expert by Borland called delphiwarnexpert60.bpl which adds an item to the Project Menu. The one on the Delphi6 Registered users site doesn't work for D6 update 2. There is one on the community site that works though. Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: TPagecontrol ... disabling a particular page
TabSheet.Enabled := False is much like Panel.Enabled := False. You can't touch any of the controls, bot otherwise all else is the same. To Tab to look disabled you have to do owner draw stuff, or look at third party controls. To make it so that the user can see, but can't get to the disabled page is another story entirely. You prabably have to look at third party controls to do that. Stacey -Original Message- From: James Low [mailto:James.Low;bopdhb.govt.nz] Sent: Friday, 1 November 2002 3:13 p.m. To: Multiple recipients of list delphi Subject: [DUG]: TPagecontrol ... disabling a particular page D5, Win 2000 Pro ... I have a form with a TPageControl (named TS). This has 6 pages. For some reason ts.Pages[4].Enabled := false appears to do absolutely nothing. ts.Pages[4].Tabvisible, by contrast does as expected and hides the troublesome page. I expect ts.Pages[4].Enabled := false to dim the page and prevent it becoming the activepage but perhaps I expect too much?? Any thoughts before I dig a little deeper. Thanks James Notice of Legal Status and Confidential Information: This electronic mail message and any accompanying attachments may contain information that is privileged and CONFIDENTIAL. If you are not the intended recipient you are advised that any use, review, dissemination, distribution or reproduction of the information is strictly prohibited and may be unlawful. If you have received this document in error, please notify the sender immediately and destroy the message. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: Re: [DUG]: TPagecontrol ... disabling a particular page
How do you tell which page you are changing to? Stacey -Original Message- From: Robert Martin [mailto:rob;wildsoft.co.nz] Sent: Friday, 1 November 2002 3:17 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: TPagecontrol ... disabling a particular page By adding code to the OnChanging event you should be able to stop the user selecting a particular page. Rob Software engineer Wild Software Ltd Ph 03 338-1407 - Original Message - From: Stacey Verner [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Friday, November 01, 2002 3:16 PM Subject: RE: [DUG]: TPagecontrol ... disabling a particular page TabSheet.Enabled := False is much like Panel.Enabled := False. You can't touch any of the controls, bot otherwise all else is the same. To Tab to look disabled you have to do owner draw stuff, or look at third party controls. To make it so that the user can see, but can't get to the disabled page is another story entirely. You prabably have to look at third party controls to do that. Stacey -Original Message- From: James Low [mailto:James.Low;bopdhb.govt.nz] Sent: Friday, 1 November 2002 3:13 p.m. To: Multiple recipients of list delphi Subject: [DUG]: TPagecontrol ... disabling a particular page D5, Win 2000 Pro ... I have a form with a TPageControl (named TS). This has 6 pages. For some reason ts.Pages[4].Enabled := false appears to do absolutely nothing. ts.Pages[4].Tabvisible, by contrast does as expected and hides the troublesome page. I expect ts.Pages[4].Enabled := false to dim the page and prevent it becoming the activepage but perhaps I expect too much?? Any thoughts before I dig a little deeper. Thanks James Notice of Legal Status and Confidential Information: This electronic mail message and any accompanying attachments may contain information that is privileged and CONFIDENTIAL. If you are not the intended recipient you are advised that any use, review, dissemination, distribution or reproduction of the information is strictly prohibited and may be unlawful. If you have received this document in error, please notify the sender immediately and destroy the message. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
[DUG]: Custom Component
Title: Message I am developing a custom component which is currently descended from TGraphicControl, however I now want it to be able toget focus, and recieve keyboard input. Ihave tried TCustomControl, but it doesn't get the focus.\ Where should I start? Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: Re: Re: [DUG]: TPagecontrol ... disabling a particular page
Thanks. I think I will find that very useful. Stacey -Original Message- From: Robert Martin [mailto:rob;wildsoft.co.nz] Sent: Friday, 1 November 2002 3:56 p.m. To: Multiple recipients of list delphi Subject: Re: Re: [DUG]: TPagecontrol ... disabling a particular page The following does it, I think there is a better way but cant remember what it was. //Stops selection of page 2 var pt : TPoint; begin pt := ScreenToClient(Mouse.CursorPos); if (PageControl.IndexOfTabAt(pt.X, pt.Y) = 2) then begin AllowChange := False; end; Rob Software engineer Wild Software Ltd Ph 03 338-1407 - Original Message - From: Stacey Verner [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Friday, November 01, 2002 3:28 PM Subject: RE: Re: [DUG]: TPagecontrol ... disabling a particular page How do you tell which page you are changing to? Stacey -Original Message- From: Robert Martin [mailto:rob;wildsoft.co.nz] Sent: Friday, 1 November 2002 3:17 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: TPagecontrol ... disabling a particular page By adding code to the OnChanging event you should be able to stop the user selecting a particular page. Rob Software engineer Wild Software Ltd Ph 03 338-1407 - Original Message - From: Stacey Verner [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Friday, November 01, 2002 3:16 PM Subject: RE: [DUG]: TPagecontrol ... disabling a particular page TabSheet.Enabled := False is much like Panel.Enabled := False. You can't touch any of the controls, bot otherwise all else is the same. To Tab to look disabled you have to do owner draw stuff, or look at third party controls. To make it so that the user can see, but can't get to the disabled page is another story entirely. You prabably have to look at third party controls to do that. Stacey -Original Message- From: James Low [mailto:James.Low;bopdhb.govt.nz] Sent: Friday, 1 November 2002 3:13 p.m. To: Multiple recipients of list delphi Subject: [DUG]: TPagecontrol ... disabling a particular page D5, Win 2000 Pro ... I have a form with a TPageControl (named TS). This has 6 pages. For some reason ts.Pages[4].Enabled := false appears to do absolutely nothing. ts.Pages[4].Tabvisible, by contrast does as expected and hides the troublesome page. I expect ts.Pages[4].Enabled := false to dim the page and prevent it becoming the activepage but perhaps I expect too much?? Any thoughts before I dig a little deeper. Thanks James Notice of Legal Status and Confidential Information: This electronic mail message and any accompanying attachments may contain information that is privileged and CONFIDENTIAL. If you are not the intended recipient you are advised that any use, review, dissemination, distribution or reproduction of the information is strictly prohibited and may be unlawful. If you have received this document in error, please notify the sender immediately and destroy the message. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi% 40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi
RE: RE: [DUG]: Custom Component
Title: Message TCustomControl is a descedant of TWinControl, and the Delphi help recommend that we should usethis but I still don't seem to have it quite right. Stacey -Original Message-From: Kyley Harris [mailto:[EMAIL PROTECTED]] Sent: Friday, 1 November 2002 4:07 p.m.To: Multiple recipients of list delphiSubject: RE: [DUG]: Custom Component TWinControl is the base decendant that can have window focus, unless you really want to build your own, in which case you should refer to TWinControl for examples -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Stacey VernerSent: Friday, 1 November 2002 4:05 p.m.To: Multiple recipients of list delphiSubject: [DUG]: Custom Component I am developing a custom component which is currently descended from TGraphicControl, however I now want it to be able toget focus, and recieve keyboard input. Ihave tried TCustomControl, but it doesn't get the focus.\ Where should I start? Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: Why don't group boxes dim when disabled?
It seems to be a limitation of all of these types of controls. We have a slightly different situation where we don't use the Enabled property unless we really have to. Instead we set ReadOnly to true and change the background color or font colour of the control. This makes it possible for users to copy the contents of a disabled edit control. To do this we have two procedures, EnableControl and DisableControl which take a control as a parameter and sets all of the properties that we want to set when disableing a particular component. If you want to draw the title as disables (like labels do) you would probably have to write some sort of owner draw procedure. Stacey -Original Message- From: Chris Milham [mailto:cmilham;medtech-software.com] Sent: Wednesday, 23 October 2002 4:31 p.m. To: Multiple recipients of list delphi Subject: [DUG]: Why don't group boxes dim when disabled? Hi all, I'm using D5 and have just discovered that TGroupBox controls don't dim or gray out when they are disabled. I want the captions of my group boxes to be dimmed when they're disabled rather than just staying black. Is this a bug or a limitation? Any ideas? I'd rather not use a 3rd party control that does this. A hack for stdctrls might be OK :). Thanks, Chris --- Chris Milham Software Developer MedTech Software Ltd. Level M, 48 Market Place, Viaduct Basin, Auckland Ph. +649 3559666 Extn. 714, Fax +649 3774231 Email: [EMAIL PROTECTED] Web: http://www.medtech.co.nz This email and any attachments are intended only for the person to whom it is addressed and may contain privileged, proprietary, or other data protected from disclosure under applicable law. If you are not the addressee or the person responsible for delivering this to the addressee you are hereby notified that reading, copying or distributing this transmission is prohibited. If you have received this email in error, please telephone us immediately and remove all copies of it from your system. Thank you for your co-operation. Chris Milham.vcf --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: What's an elegant way to migrate s/w updates?
We have our software hosted on a Windows 2000 Terminal Server with Citrix Metaframe XP. When we install new software we put in a new folder (suffixed with the application build number), and then change the Published Applications (basically shortcuts) to point to the new location. Currnt sessions are fine and new sessions wil use the new software. You should be able to do this with any other system. Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 8 October 2002 2:02 p.m. To: Multiple recipients of list delphi Subject: [DUG]: What's an elegant way to migrate s/w updates? We have about 70 users, running from a menu (exe), various apps (dlls). If during the day, we have an urgent fix to an app, it's almost impossible to get everyone out in order to update it. Is there a way to implement some procedure where I can migrate a change to app xyz, with the name xyz_ver2? When a user leaves app xyz and goes back in, they automatically end up running app xyz_ver2. In this way the users painlessly move on to the new version. Are there products out there for this? Could I code a simple do-it-yourself version? My initial thoughts - in the menu program, when a selection is made, e.g. Client Maintenance, I read a text file called ClientMaintenanceVer.txt. In the text file is the current dll version to run e.g. ClientMaintenanceV1_1. If I want users to move on to V1_2, then I prepare the dll, then change the text file to point to the new dll. Sound o.k.? Any improvement on that? Any ideas would be great. Thanks. Dave Jollie Software Developer BOA IT 09 368 4259 ext 6231 The information contained in this mail message is confidential and may also be legally privileged. If you are not the intended recipient, please note that any use, dissemination, further distribution, or reproduction of this message in any form what so ever, is strictly prohibited. If the mail is in error, please notify me by return E-mail, delete your copy of the message, and accept my apologies for any inconvenience caused. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Please help
In Java everything is an object, however in Delphi this is not so. Simple types like String, Integer and Extended are not objects and don't have methods, but there are procedure about to do most of what you want. eg. MyInteger.asString is IntToStr(MyInteger) in Delphi Stacey -Original Message- From: Vince Jones [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 2 October 2002 2:55 p.m. To: Multiple recipients of list delphi Subject: [DUG]: Please help I'm a Java programmer, in the process of changing to Delphi. I'm trying to write some simple programs, but I'm running into a raft of problems. My first problem is, I can't seem to get Strings to work. eg. myString.toUpperCase produces a compiler error, and I can't find a list of available methods. I can't believe strings wouldn't be available in Delphi Personal edition! Can anyone help? Thanks, Vince. http://mobile.yahoo.com.au - Yahoo! Messenger for SMS - Always be connected to your Messenger Friends --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Column Names
Title: Message Just alias the columns and you will have no trouble. Otherwise look at TField.Origin. It sound contain DatabaseName.TableName.FieldName. I would alias it though. eg. select Store.StoreID as StoreStoreID, StoreCriteria.StoreID as CriteriaStoreID ... Stacey -Original Message-From: Neven MacEwan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 October 2002 1:42 p.m.To: Multiple recipients of list delphiSubject: [DUG]: Column Names Hi all TADOQuerygiven a query of "select Store.StoreID, StoreCriteria.StoreID from Store JOIN StoreCriteria on Store.StoreID = StoreCriteria.StoreID" ie 2 columns with the same 'name' but notwill cause a fieldname of 'StoreID' and StoreID_1 is there any way to determine which is which ie is 'StoreID' Store.StoreID or StoreCriteria.StoreID (without parsing the SQL) or is this an problem with TDataSet Regards NevenN.K. MacEwan B.E. EEPh 649 621 0001Fax 649 621 0400[EMAIL PROTECTED]
RE: [DUG]: Highlighting text in a ListBox
Try ItemIndex := 1; Stacey -Original Message- From: Kevin Parker [mailto:[EMAIL PROTECTED]] Sent: Monday, 23 September 2002 12:20 a.m. To: Multiple recipients of list delphi Subject: [DUG]: Highlighting text in a ListBox OK I give up. How do you HighLight a line of text in a ListBox? Kevin -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Disappearing Components
I used to get this with Delphi 4 once in a while. Take a look at HKCU\Software\Borland\[Whatever App]\[Whatever Version]\Disabled Packages. Otherwise try removeing it and then addint it again. Stacey -Original Message- From: James Sugrue [mailto:[EMAIL PROTECTED]] Sent: Thursday, 29 August 2002 1:03 p.m. To: Multiple recipients of list delphi Subject: [DUG]: Disappearing Components I recently installed BCBuilder 6.0. I read the readme and it suggested to run Delphi with Update Pack 2, which is sweet because I already was. Problem is everytime I load a project, the QuickReport Components Disappear. I Go into Component | Install Packages and recheck the Quick Reports Components Option. All works, project compiles OK. If I close Delphi down though and bring it back up, the Quick Report components are gone again. Was working before I installed BCB 6.0 -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
[DUG]: Finding the controls bound to a datasource
Title: Message Is there any way of enumerating the edit controls bound to a particular datasource or dataset? I can go throughthe list of controls owned by the form and find those that have a datasource property set to the datasource I care about, but I would like a cleaner method. Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: TThread to TObject conversion
You could use a class procedure that creates the object, does stuff and free's it. Stacey -Original Message- From: Robert Martin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 20 August 2002 12:09 p.m. To: Multiple recipients of list delphi Subject: [DUG]: TThread to TObject conversion Juts moving an app. from using a Thread to a Std object. Is there a good way to have an object that frees itself after doing its work. i.e current code Tmythread.Create(Params, Params, Params, Params); //Thread runs and frees i.e desired code TMyWasThread.Create(SameParams,SameParams,SameParams,SameParams,); //TObject runs and frees itself The advantage of this would be that I could just change the Class and not all the code that uses it. Rob Software engineer Wild Software Ltd Ph 03 338-1407 -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Flat Tabs
If you have a look on torry there are heaps of them! http://www.torry.net/pagecontrols.htm Stacey -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Monday, 19 August 2002 4:31 p.m. To: Multiple recipients of list delphi Subject: [DUG]: Flat Tabs Hi all. anyone know of any Flat Tab controls? I know that the standard page control can have flat tabs, but they are just flat butttons, and not quite wha tI am looking for. If any of you have seen the .Net interface for C# etc. you will know the type I mean. THanks, Jeremy -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Menu appears white on XP
Title: Message The first one is using the xp theme for the menu. The second one isnt. If you change the Menu Color (Display Properties - Appearance - Advanced) to grey they will both look the same. Stacey
RE: [DUG]: SynEdit
T have used TSynEdit. Whats the problem? -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 14 August 2002 9:54 a.m. To: Multiple recipients of list delphi Subject: [DUG]: SynEdit Hi all. Has anyone used SynEdit or TDCMemo (Dream Controls Memo)? I have a problem common to both of them , and I dont get in TSyntaxMemo. Cheers, Jeremy -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: RE: [DUG]: SynEdit
I haven't played with the highlighters, only used the existing ones. Surely the Pascal Highlighter would be able to highlight hex? Stacey -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 14 August 2002 10:43 a.m. To: Multiple recipients of list delphi Subject: RE: [DUG]: SynEdit Hi Stacy. Well, the problem I have IS, that I need to highlight the text 16f84 (no quotes) I am creating a new highlighter based on the document that comes with the controls, and used SynGen to create the new component for the highlighter etc, and have declared it as a Key, but it does not highlight it at all. I am guessing its because its Alpha and Numeric. Thanks, jeremy -Original Message- From: Stacey Verner [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Date: Wed, 14 Aug 2002 10:40:54 +1200 Subject: RE: [DUG]: SynEdit T have used TSynEdit. Whats the problem? -Original Message- From: vss [mailto:[EMAIL PROTECTED]]=20 Sent: Wednesday, 14 August 2002 9:54 a.m. To: Multiple recipients of list delphi Subject: [DUG]: SynEdit =20 =20 Hi all. Has anyone used SynEdit or TDCMemo (Dream Controls Memo)? =20 I have a problem common to both of them , and I dont get in=20 TSyntaxMemo. =20 Cheers, Jeremy =20 -- - New Zealand Delphi Users group - Delphi List -=20 [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED]=20 with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi% 40delphi.org.nz/ =20 -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: RE: [DUG]: File Export Speed
Title: Message I did this and we got a marginal speed improvement of about 10 seconds (out of 180). Doing further testing I found that the .AsString takes the majority of the time. Stacey -Original Message-From: Paul Heinz [mailto:[EMAIL PROTECTED]] Sent: Thursday, 8 August 2002 6:15 p.m.To: Multiple recipients of list delphiSubject: RE: [DUG]: File Export Speed Corey wrote: - Original Message - From: Myles Penlington To: Multiple recipients of list delphi Sent: Wednesday, August 07, 2002 10:20 AM Subject: RE: [DUG]: File Export Speed LRow := ''; for i := 0 to PQuery.FieldCount - 1 do begin LRow := LRow + PQuery.Fields[i].AsString + '|'; end; LRow := LRow + #13#10; This string concatenation will be very slow - it is a N squared algorithm for the number of bytes copied ie bad news. Not quite that bad.AFAIK Strings allocate memory a block at a time... but it's still pretty bad. I wrote a program that passed Strings down a recursive tree search, then rewrote it using PChars and got a major speed increase...run time went from an average of 2 minutes to a little over 18 seconds. Definitely worth the extra coding effort. Yes, it is an O(N squared) algorithm since each string concatenation will require an extension which means allocating a new bigger string and copying the result over. Copying the string will take an amount of time proportional to the current length (a function of N) and this will be done a number of times that is a function of N. Hence, overall O(N squared) where N isRows * Fields. Also, the Delphi memory manager does not handle the continual expansion access pattern very welland gets heavily fragmented which means even the allocation step may well start taking time proportional to some log of N. So it might even get up toO(N squared log N). Nasty! Change the code to write each string field independently (i.e. avoid concatenations) and the algorithm will run much faster and still offer text output. Some buffering on the TFileStream may help as well to avoid many small writes but the OS should do a fair job of that for you. TTFN, Paul.
RE: [DUG]: IDE Question....
Go View - New Edit Window and you get two tabbed editors that you can layout however you like. You can't get a nice split like emacs or word does. Stacey -Original Message-From: Donovan J. Edye [mailto:[EMAIL PROTECTED]]Sent: Friday, 16 November 2001 10:35 a.m.To: Multiple recipients of list delphiSubject: [DUG]: IDE QuestionG'Day,Does anyone know if it is possible to split the current editor window so that you can have 2 units visible at once? ieUnit1Unit 2GExperts does not appear to support this feature and nor does the IDE. Having to switch between tabs all the time is a nuisance if you just want to refer back to something that would be much better if it were just "on screen".TIA -- Donovan -- Donovan J. Edye [www.edye.wattle.id.au] Namadgi Systems [www.namsys.com.au] Voice: +61 2 6285-3460 Fax: +61 2 6285-3459 TVisualBasic = Class(None); Heard just before the 'Big Bang': "...Uh Oh" -- GXExplorer [http://www.gxexplorer.org] Freeware Windows Explorer replacement. Also includes freeware delphi windows explorer components. --
RE: [DUG]: ADSI and Delphi
We use ADSI with delphi and don't have the problems you mentioned. It works with Delphi 4 and Delphi 6. We have created a DLL (in Delphi) that is used by Delphi, Access and VB and it uses ADSI. We use some ADSI helper routines (http://www.agnisoft.com/adsi/Conf2000/3132.htm) which may help. Stacey -Original Message- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 13 November 2001 3:51 p.m. To: Multiple recipients of list delphi Subject: [DUG]: ADSI and Delphi Hi All, Has anyone had any experience with using ADSI from Delphi. We are successfully creating a user but then a EAccessViolation\EPrivilege exception is raised. The exception does not correspond to any line of code and comes up in the CPU debugger. We have tried all sorts of things but have had no luck. We are calling the ADSI interface from a dll as it's going to form part of an install. Will be quite happy to send over code examples if anyone is interested. Thanks, David. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Const
Just a guess, but the second one probably uses shortstring, rather than string. Stacey -Original Message- From: John Christenhusz [mailto:[EMAIL PROTECTED]] Sent: Monday, 12 November 2001 12:30 p.m. To: Multiple recipients of list delphi Subject: [DUG]: Const Hi all, Can anybody tell me the difference between the following two declarations and why you want to use the first one. The second one seems to use less memory! const sName : string = 'This is a test'; and const sName = 'This is a test'; TIA John. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
[DUG]: TPicture and its stored data.
I just found out that a TPicture always stores its data as a bmp. I create an Image and save it as a nice small JPG (80 K), and then load it into a TPicture on a Delphi form (lets say, a Splash screen) and suddenly the DFM is 1.3 meg, and the resulting exe is 1.7 meg. Is there any way to get a TPicture to store its data in the raw imported format? Is there any other way of doing this (resources?)? I know that I could load the JPG at run time but that means another file to deliver which could easilty be deleted (especially if the user is anything like me...). Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: Export to Excel
Try something like this. LExcel := CreateOleObject('Excel.Application'); try //LExcel.Visible := True; LExcel.Interactive := False; LExcel.IgnoreRemoteRequests := True; ... LExcel.ActiveWorkbook.SaveAs(FileName); LExcel.ActiveWorkbook.Close(False); finally LExcel.Interactive := True; LExcel.IgnoreRemoteRequests := False; if LExcel.WorkBooks.Count = 0 then begin if not VarIsEmpty(LExcel) then LExcel.Quit; end; LExcel := Unassigned; end; Stacey. -Original Message- From: Chrissy R [mailto:[EMAIL PROTECTED]] Sent: Thursday, 25 October 2001 2:12 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Export to Excel Hi I have a method for opening a new Excel spreadsheet and populating it from within my app. This leaves the spreadsheet open and the user then is responsible for saving it. Does anyone know of a component (cheapware) that will write a dataset straight out to an Excel format file, without opening Excel. I know there are filters you can get for QR that allow you to export a report to Excel, but I want to write the pure data without any formatting. I am sure you can get the Excel file format and write it directly but you could always have a macro in Excel that you called from your app and that saved and closed the spreadsheet. Chrissy. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
[DUG]: Multiple Socket Servers
I have had a look at the code for the Socket Server in D6, and I can change the Registry path that it uses so it can have a different port list to the D4 socket server, but I have twomore question. Firstly. The code (as follows) contains a comment which says "Do not localize" (which I have seen throughout the VCL code), Is there a good reason for this, or should everything work fine when I change it? I have tested it and its certainly seems fine in the short term, but it seems to take time for these things to fail. ... const //Do not localize KEY_SOCKETSERVER = '\SOFTWARE\Borland\Socket Server'; KEY_IE = 'SOFTWARE\Microsoft\Internet Explorer'; ... Secondly. The D6 Socket Server has an option "Registered Objects Only". When this is checked my AppServers are not available, and if it is not checked my AppServers are available. How do I register an AppServer to be visible to Socket Server when this is checked, and does it make a difference.? Thanks Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: Form Maximizing
I have seen this, and the way I handled it was by doing something like the following. if LMaximize then begin pMainPanel.Aligned := alNone; Self.WindowState := wsMaximized; Application.ProcessMessages; // Probably not necessary pMainPanel.Aligned := alClient; end; Stacey -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 24 October 2001 10:12 a.m. To: Multiple recipients of list delphi Subject: [DUG]: Form Maximizing Hi all. Just a weired problem I cant figure out. I havea form. I am saving its window state to teh registry when it closes, so that when it reopens the form will me maximized if that was its last state. This is fin, BUT when the form opens it IS maximized, BUT its like 2-3 millimeters from the top of the screen. Anyone know why this is and how to make it maximize properly ? Thanks,Jeremy Coulter -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: equiv in Delphi
The delphi equivalent of GetObject is GetOleObject. Stacey -Original Message- From: Neven MacEwan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 24 October 2001 12:12 p.m. To: Multiple recipients of list delphi Subject: [DUG]: equiv in Delphi Hi guys Can anyone xlate this particularly ugly VBS code (main the getobject call) dim domain as variant Set domain = GetObject(WinNT://AIRNZ-NZ) domain.Filter = Array(User) For Each user in domain wscript.echo user.LastLogin Next Regards Neven N.K. MacEwan B.E. EE Ph 649 574 0027 Fax 649 570 2706 [EMAIL PROTECTED] -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
[DUG]: Midas 2 and Midas 3 on the same machine.
We had a system that was in Delphi 4 (Midas 2) App1 App2 - Socket Server (D4) - Appserver1 App3 We have now upgraded to Delphi 6 (Midas 3) so any new software we write is inDelphi 6, but untilthe next version of our main piece of software isfinishedwe are still running some Delphi 4 Apps. So what we now have is App1 App2 - - Appserver1 (D4) Socket Server (D6) App3 - - AppServer2 (D6) Current if only App1 and App2 (Midas 2) are used everything runs smoothly. If App3 (Midas 3) is used then it worke well most of the time, but sometimes AppServer2 hangs so that new connections just sit there waiting. No timeout. Also, but less often AppServer1 hangs as well. In this case once we fix up AppServer2 (kill all App3's and then Kill AppServer2) AppServer1 works again. AppServer1 and Appserver2 have different GUID's but that names of the RDM's, Methods and Providers are the same. AppServer2 is essentially AppServer1 ported to Midas 3. AppServer1 and 2 both use a TDatabase to connect to an informix database. They don't use an existing BDE alias but they do have the same DatabaseName. Is it OK to have Midas 2 and Midas 3 App servers on the same machine? Do I need to change more than the GUID's between versions of an AppServer? Anything else I should know? Thanks Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: Emailing Invoices
- We wrote a small app (less than 1mb) that shows a QR preview, and allows you to load files, which our clients are free to distribute. - Use the XL export filter? - Take a look at the QR HTML export filter (http://195.12.232.172/) - Wait for the QR PDF export filter. - Print to a PDF printer and distribute the PDF file. Stacey -Original Message-From: Mark Howard [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 2:18 p.m.To: Multiple recipients of list delphiSubject: [DUG]: Emailing Invoices Hi Currently using Quick Reports (still). Aclient site has decided that they want to email their invoices to customers? Currently if you just export the report to a text file from the preview screen and then load it into Word the result is ugly, even if you turn it to landscape to stop the line wrapping. What are the options? TIA Mark (Is this the final push to switch to Fast Report?)
RE: [DUG]: Emailing Invoices
Take a look at TExtraFilters at http://www.waler.com/. Stacey -Original Message-From: Mark Howard [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 2:18 p.m.To: Multiple recipients of list delphiSubject: [DUG]: Emailing Invoices Hi Currently using Quick Reports (still). Aclient site has decided that they want to email their invoices to customers? Currently if you just export the report to a text file from the preview screen and then load it into Word the result is ugly, even if you turn it to landscape to stop the line wrapping. What are the options? TIA Mark (Is this the final push to switch to Fast Report?)
[DUG]: Debugging Troubles
I have an application which is causing me trouble, but I am at a loss as to how to debug it. I need to describe the application and how it works, so that you can understans my problems so here goes: Its a data viewing/editing application for the roading industry. There is a list of roads from which the user can select 1 or many roads. The user canview any number of MDI forms which contain information on things like Signs, Street Lights and Footpaths. When a user selects a new road we fire a windows message off which the data forms recieve and update themselves. We have other messages flying about when different events happen, like one of the data forms scrolls. The problem is arising when I close one of these data forms. I get an access violation after the destructor has completed. The application is in the message loop when the access violation occurs, so I don't get much from the call stack. I assume (but I could be wrong) that the exception is occuring because there is still a message in the queue which is destined for the form that has been free'd. How do I go about debugging a problem like this? Thanks Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: Debugging Troubles
In the FormClose event I remove the form from our internal list of forms, and then callRelease. Stacey -Original Message-From: Paul Grimstrup [mailto:[EMAIL PROTECTED]]Sent: Friday, 19 October 2001 11:30 a.m.To: Multiple recipients of list delphiSubject: RE: [DUG]: Debugging Troubles Call TForm.Release(). This posts a message to the form's queue that will cause it to destroy itself. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bob OsbornSent: Friday, 19 October 2001 11:23 amTo: Multiple recipients of list delphiSubject: Re: [DUG]: Debugging Troubles Are you calling Free (rather than Destroy) to destroy the forms? Bob
RE: [DUG]: Debugging Troubles
I am calling Release in the OnClose. This was all working well in D4, but we have made major changes during the upgrade to D6. Stacey -Original Message-From: Bob Osborn [mailto:[EMAIL PROTECTED]]Sent: Friday, 19 October 2001 11:23 a.m.To: Multiple recipients of list delphiSubject: Re: [DUG]: Debugging Troubles Are you calling Free (rather than Destroy) to destroy the forms? Bob - Original Message - From: Stacey Verner To: Multiple recipients of list delphi Sent: Friday, October 19, 2001 10:39 AM Subject: [DUG]: Debugging Troubles I have an application which is causing me trouble, but I am at a loss as to how to debug it. I need to describe the application and how it works, so that you can understans my problems so here goes: Its a data viewing/editing application for the roading industry. There is a list of roads from which the user can select 1 or many roads. The user canview any number of MDI forms which contain information on things like Signs, Street Lights and Footpaths. When a user selects a new road we fire a windows message off which the data forms recieve and update themselves. We have other messages flying about when different events happen, like one of the data forms scrolls. The problem is arising when I close one of these data forms. I get an access violation after the destructor has completed. The application is in the message loop when the access violation occurs, so I don't get much from the call stack. I assume (but I could be wrong) that the exception is occuring because there is still a message in the queue which is destined for the form that has been free'd. How do I go about debugging a problem like this? Thanks Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: Debugging Troubles
This is an MDI app, and when a form closes in an MDI environment it simply minimizes to the bottom of the main form, and therefore doesn't release its memory, and looks damned ugly! Stacey -Original Message- From: Neven MacEwan [mailto:[EMAIL PROTECTED]] Sent: Friday, 19 October 2001 11:53 a.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Debugging Troubles Stacey Is this necesary? In the onclose I'd just remove the form from your internal list, I think you may be initiating another message to the form HTH Nevne - Original Message - From: Stacey Verner [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Friday, October 19, 2001 11:37 AM Subject: RE: [DUG]: Debugging Troubles I am calling Release in the OnClose. This was all working well in D4, but we have made major changes during the upgrade to D6. Stacey -Original Message- From: Bob Osborn [mailto:[EMAIL PROTECTED]] Sent: Friday, 19 October 2001 11:23 a.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Debugging Troubles Are you calling Free (rather than Destroy) to destroy the forms? Bob - Original Message - From: Stacey mailto:[EMAIL PROTECTED] Verner To: Multiple recipients of list delphi mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2001 10:39 AM Subject: [DUG]: Debugging Troubles I have an application which is causing me trouble, but I am at a loss as to how to debug it. I need to describe the application and how it works, so that you can understans my problems so here goes: Its a data viewing/editing application for the roading industry. There is a list of roads from which the user can select 1 or many roads. The user can view any number of MDI forms which contain information on things like Signs, Street Lights and Footpaths. When a user selects a new road we fire a windows message off which the data forms recieve and update themselves. We have other messages flying about when different events happen, like one of the data forms scrolls. The problem is arising when I close one of these data forms. I get an access violation after the destructor has completed. The application is in the message loop when the access violation occurs, so I don't get much from the call stack. I assume (but I could be wrong) that the exception is occuring because there is still a message in the queue which is destined for the form that has been free'd. How do I go about debugging a problem like this? Thanks Stacey Stacey Verner Ph: +64-9-4154790 Software DeveloperFax: +64-9-4154791 DDI: +64-9-4154797 CJN Technologies Ltd. Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] PO Box 302-278, North Harbour, Auckland 1330, New Zealand 12 Piermark Drive, North Harbour, Auckland, New Zealand Visit our website at http://www.cjntech.co.nz/ http://www.cjntech.co.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Debugging Troubles
I believe the approach is sound, and has worked well for 4 odd years. The problem will most likely be very simple, its just impossible to find out where its going wrong because the call stack doesn't show me much. Stacey -Original Message- From: Neven MacEwan [mailto:[EMAIL PROTECTED]] Sent: Friday, 19 October 2001 11:53 a.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Debugging Troubles Stacey Is this necesary? In the onclose I'd just remove the form from your internal list, I think you may be initiating another message to the form HTH Nevne - Original Message - From: Stacey Verner [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Friday, October 19, 2001 11:37 AM Subject: RE: [DUG]: Debugging Troubles I am calling Release in the OnClose. This was all working well in D4, but we have made major changes during the upgrade to D6. Stacey -Original Message- From: Bob Osborn [mailto:[EMAIL PROTECTED]] Sent: Friday, 19 October 2001 11:23 a.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Debugging Troubles Are you calling Free (rather than Destroy) to destroy the forms? Bob - Original Message - From: Stacey mailto:[EMAIL PROTECTED] Verner To: Multiple recipients of list delphi mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2001 10:39 AM Subject: [DUG]: Debugging Troubles I have an application which is causing me trouble, but I am at a loss as to how to debug it. I need to describe the application and how it works, so that you can understans my problems so here goes: Its a data viewing/editing application for the roading industry. There is a list of roads from which the user can select 1 or many roads. The user can view any number of MDI forms which contain information on things like Signs, Street Lights and Footpaths. When a user selects a new road we fire a windows message off which the data forms recieve and update themselves. We have other messages flying about when different events happen, like one of the data forms scrolls. The problem is arising when I close one of these data forms. I get an access violation after the destructor has completed. The application is in the message loop when the access violation occurs, so I don't get much from the call stack. I assume (but I could be wrong) that the exception is occuring because there is still a message in the queue which is destined for the form that has been free'd. How do I go about debugging a problem like this? Thanks Stacey Stacey Verner Ph: +64-9-4154790 Software DeveloperFax: +64-9-4154791 DDI: +64-9-4154797 CJN Technologies Ltd. Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] PO Box 302-278, North Harbour, Auckland 1330, New Zealand 12 Piermark Drive, North Harbour, Auckland, New Zealand Visit our website at http://www.cjntech.co.nz/ http://www.cjntech.co.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
[DUG]: Chart FX Problems
Anybody Using Chart FX 4.0 (98) or ChartFX 5.0 with Delphi 6? If I try to use either of these products with Delphi 6 I get an Invalid Variant Operation error. Both work fine in Delphi 4. I have installed Delphi 6 Update Pack 1. Thanks Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: Delphi 6 Command Line compiler.
I am compiling a dpr (in an automated build process) rather than a dpk, and the units that it can't find are not in list of project files, as they are units for components. This worked fine in Delphi 4. Stacey -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 October 2001 4:19 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Delphi 6 Command Line compiler. I had a similar problem when using commandline to compile a DPK I have. I found that I had to include the FULL path to the unit. i..e MyUnit in 'c:\units\myunit.pas'; Jeremy Coulter -Original Message- From: Stacey Verner [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Date: Fri, 12 Oct 2001 15:26:42 +1300 Subject: [DUG]: Delphi 6 Command Line compiler. I have a project that compiles fine from within the IDE but when I use the command lien compiler (dcc32.exe) it fails. We get the error wwQuery.dcu not found. Heres what I have: - In C:\Develop\D6Complib is our component library (contains - among other things - wwQuery.pas). - In C:\Develop\RAMM is our application. - C:\Develop\D6Complib is in the path. If I copy the files in C:\Develop\D6Complib to C:\Develop\RAMM all is fine. What am I missing? Thanks Stacey Stacey Verner Ph: +64-9-4154790 Software DeveloperFax: +64-9-4154791 DDI: +64-9-4154797 CJN Technologies Ltd. Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] PO Box 302-278, North Harbour, Auckland 1330, New Zealand 12 Piermark Drive, North Harbour, Auckland, New Zealand Visit our website at http://www.cjntech.co.nz/ http://www.cjntech.co.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Treeview with checkboxes
The Express Quantumn Tree List can do this, but only because it has two images. A state image (check box) and a data image. This works well. Stacey -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Thursday, 4 October 2001 9:55 a.m. To: Multiple recipients of list delphi Subject: [DUG]: Treeview with checkboxes Hi. Does anyone know of any treeview controls that can had checkboxes as well as images ? Thanks, Jeremy Coulter -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: help with search string
Can you post the original problem again? Thanks Stacey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 2 October 2001 1:36 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: help with search string On Mon, 1 Oct 2001 20:19:31 +1200, you wrote: I think I've spotted it! The syntax highlighting should have shown you what was going on The problem is that you are not terminating the strings correctly (as if you didn't already know that). inputbox( 'Name Search', // string is terminated correctly 'Enter the name you''re looking for', // that's not a double quote, it is 2 single quotes '' // and 2 single quotes again ); thanx but again no it doesn't the same line is highlighted i even changed the youre the your and it still doesn't work. ... Brendon Toogood E-Mail [EMAIL PROTECTED] -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Urgent!!!!!
Delphi freezing like this is usually due to problems with video drivers and Image lists. To test this turn off all hardware acceleration and try again. If it still fails then this is probably not the problem. Otherwise you need to look and your video drivers, an hardware acceleration options to get it to work without compromising too much. Stacey -Original Message- From: John Christenhusz [mailto:[EMAIL PROTECTED]] Sent: Monday, 1 October 2001 8:50 a.m. To: Multiple recipients of list delphi Subject: [DUG]: Urgent! Importance: High G'day folks, I bought a nice 17 monitor last week but I have the following nasty problem now. It doesn't boot Delphi 4 and 5 any more. It comes up with the splash window, starts loading stuff and after a few seconds it freezes the whole PC (incl Ctl-Alt-Del). Any other program like MS-Office apps run fine. Obviously I didn't have any problems before using the monitor and installing the Logix-monitor driver for the new monitor. I have removed the monitor driver, reinstalled Windows (98) and reinstalled Delphi 5, but no luck. Any ideas or suggestions? John. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: D6 patch
The site says that they found a nasty wee bug in the patch so they took it away. It also says a new patch should be up ASAP, but who knows when. I found it rather annoying that they put up a patch (that was available for how long before they removed it?) and yet I (a registered user, blah blah blah) did not recieve any information saying that there was a patch! Stacey -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Monday, 1 October 2001 11:40 a.m. To: Multiple recipients of list delphi Subject: [DUG]: D6 patch Hi. Nayone know when we can download the new D6 patch? I just went to the site to see if it was availible yet, but its still not there. Thanks, Jeremy Coulter -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Borland RAD Seminars - Ak, Wgtn, ChCh
I had trouble with this too, but it is all there. The email programm is just stuffing it up! Try copying the whole of (between the quotes) http://www.123.co.nz/docs/borland rad seminar.doc to you browser. Stacey -Original Message- From: Robert Martin [mailto:[EMAIL PROTECTED]] Sent: Monday, 1 October 2001 4:21 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Borland RAD Seminars - Ak, Wgtn, ChCh The web site you link to points nowhere. www.123.co.nz seems to be somesort of unfinished web site. Could you pot the correct address plse. Robert Martin Software Engineer Wild Software Ltd - Original Message - From: Gary Benner [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Monday, October 01, 2001 12:10 PM Subject: [DUG]: Borland RAD Seminars - Ak, Wgtn, ChCh Hi all, Its that time of year again, and these one day seminars are on the road. A steal at $99. Take a look at: http://www.123.co.nz/docs/borland rad seminar.doc and get hold of Olivia to sign up. (or go to http://register.borland.co.nz) Kind Regards Gary -- text version of document follows ... All Development Tools are not created equal - are you getting the most out of your investment? Or are you still doing everything the hard way? Can you afford not to invest one day of your time - this training seminar is only $99 - usually $499 (ex GST) Who Should attend: Software Developers, Architects, Software /Application Development Managers Material provided: Course Material and examples provided Right now, most developers are faced with the decision of choosing a development tool to move them forward into .Net, Linux and beyond. The adoption of Web Services is at a crossroads. Right now, individual and corporate developers need the right tools to make Web Services applications powerful, yet easy to design. With Delphi 6, Borland is responding to this critical industry need. -Evan Quinn, Director of Application Strategies, Hurwitz Group Can you afford to not fully understand Your Options? Whether you are independent or part of a large organization, all developers are challenged to increase revenue or decrease costs. Borland wants to show you how Delphi can be used to quickly provide a return on investment in terms of productivity gains, better software and a greater control over the software development process. While Sun, Oracle, IBM and Microsoft vie for supremacy on the battlefields of who will control the database and who will define the client, Borland will help developers refine and ship gold bars. - Peter Coffee, ZDNet Can you afford to ignore what your competitors may already be doing? Borland invites you to attend a one-day training seminar, which will show you how Delphi 6 delivers the capability to add value to every project you are working on. Borland will take real life situations, applicable to your business and show you how Boland has provided you with the ability to add key functionality to your applications so you can deliver to your target markets in a faster, more effective manner. WebSnap allowed our company to increase the speed of developing web applications by three times! It's ability to allow the graphic designers, web developers, and Delphi coders to work together gave us the ability to deliver to our customer on budget and on time. - Simon Blake, theblakereport.com Christchurch 16 October 2001, Rydges Christchurch, Cnr Oxford Tce Worcester St. Wellington 17 October 2001, The Duxton Hotel, 170 Wakefield St Auckland 18 October 2001, Sky City, Level 3, Conference Centre, Cnr Victoria St Federal St NB: Duration is one day, details of start times will be with your confirmation. To Register online visit: http://register.borland.co.nz -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of
RE: [DUG]: Unicode
What about using an image? Then you don't have to rely on the font being there. Stacey -Original Message- From: Robert Martin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 26 September 2001 2:25 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Unicode Thanks for your help. I decided that if I needed to modify my label component just for one character I would be better looking at alternatives. I found the same symbol in standard wingdings3 so Ive used that in another label beside the existing one. Not elegant but much less effort / time reqd. Robert Martin Software Engineer Wild Software Ltd - Original Message - From: Allan Vergara [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 1:38 PM Subject: Re: [DUG]: Unicode Standard Delphi 4 (i think 5 as well) don't support unicodes. If you want to dispaly unicode you have to create ur own TLabel component by overriding: procedure DoDrawText(var Rect: TRect; Flags: Longint); override; Then on the implementation you should do the following: procedure ...DoDrawText(var Rect: TRect; Flags: Longint); begin ... ExtTextOutW(Canvas.Handle, 1,1, ETO_CLIPPED, @Rect, pWideChar(#9660), Length(#9660), nil); ... end; Hope this help. - Original Message - From: Robert Martin [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 1:30 PM Subject: Re: [DUG]: Unicode It is supposed to be a solid downwards pointing arrow (as in the ones used in outlook express). The font may need to be set to arial to get the correct result. Although after testing your code on my machine I get a ? mas well. The character map shows the character as U+25BC which I assume means 25BC Hex and converts to 9660 decimal. Robert Martin Software Engineer Wild Software Ltd - Original Message - From: Nello Sestini [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 1:07 PM Subject: Re: [DUG]: Unicode I would like to display a unicode character in a TLabel. I tried Label.Caption := WideStrToString(#9660) but I get a '?' instead of the character I am after. Ideas? procedure TForm1.Button3Click(Sender: TObject); const w:widestring = #9660; begin label1.caption:='abc'+w+'def'; end; When I do this and display the caption using MSSansSerif I get a heavy dot below the baseline. What is #9660 supposed to convert to? (If I try this with #9662 or #9663 i get ?s - i.e. they don't have single byte equivalents) -ns -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Paradox SQL - Group totals as % of Grand total
We have just handled a similar problem here, and here is what we did. Perform your original SQL and put it onto a temporary table (T1). Write another SQL which which sums, totals, counts whatever you want from T1 at whatever grouping level you want and puts it into a new temporary (T2). Now write a final SQL that looks someting like: select T1.* , T2.* from T1 , T2 where T1.Val = T2.Val This is what you use when generating your report. This may seem like a fair amount of work, but as far as actual processing by the SQL server goes is houldn't be much different from just running the original query. Stacey -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 26 September 2001 4:06 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Paradox SQL - Group totals as % of Grand total Craig said I'm not an SQL expert, but couldn't you first get the grand total as a variable (unsure whether it would be best to do a preliminary query to retrieve the single total or sum the total of the column in of your current resultset - someone may be able to comment here). Yeah, Craig, it was that second option that I was really getting at. Since there have been no other posts on this, I'll assume its not possible (or that I have failed to adequately define the problem ;-) Mark -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: ModuleNavigation and ClassCompletion D6
I have seen this too. It did happen in D4 but it happens more in D6. This functionality doesn't work if there is a bug in your code (or possibly some strage syntax that the ide can't handle??). You should see a message in the message window telling you this. Stacey -Original Message- From: Ian Fear [mailto:[EMAIL PROTECTED]] Sent: Friday, 14 September 2001 9:43 a.m. To: Multiple recipients of list delphi Subject: [DUG]: ModuleNavigation and ClassCompletion D6 Hi using D6 module navigation using Ctrl+Shift+Up Arrow or Ctrl+Shift+Down Arrow to move between interface and implementation sections does not seem to work for me, Neither does Code Completion Ctrl+Shift+C does not seem to work for me. Works fine in D4 thought. what am I Missing or is this a bug? Regards Ian Ian Fear Fear Consulting Ltd 1427 Te Kopia Rd RD 1 Rotorua New Zealand Phone 64 7 333 2548 Fax 64 7 333 2548 mob 025 742 772 [EMAIL PROTECTED] GMT +1200 -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
[DUG]: Chart FX and Delphi 6
Whe I try to use Chart FX 4.X or 5.X with Delphi 6.0 I get an Invalid Variant operation. Is anyone using Chart FX with Delphi 6? I have contacted Chart FX and they verified that it happens but are adamand that its a Delphi problem. Thanks Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
[DUG]: Layout of Non-visual components
I have a component editor whichadds lookup columns to a dataset. to do this we must also createlookup datasets for the lookup columns. At the moment thedatasets are all created at 0, 0. TComponent does not have Left or Top property, however there is a Left and Top entry in the dfm for each non-visual component. Is there any way that I can set this? In some cases we may want theselookup datasetscreated on a form or dataset other than the one the parent dataset is on. For thisI need to get a list of available forms or data modules from the designer(do these need to be open?), and allow the user to pick the desired destination. How do I get the list? Thanks Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: Layout of Non-visual components
That works great :) How about a list of available forms or datamodules from within a TComponent Editor? Thanks Stacey. -Original Message-From: Myles Penlington [mailto:[EMAIL PROTECTED]]Sent: Monday, 10 September 2001 10:33 a.m.To: Multiple recipients of list delphiSubject: RE: [DUG]: Layout of Non-visual components It does - but not that obvious. In D6 the field TComponent.DesignInfo holds the top and left positions, by splitting the integer into two words - look in classes TComponent.WriteLeft and TComponent.WriteTop to see which word of DesignInfo is used for left and top. Myles -Original Message-From: Stacey Verner [mailto:[EMAIL PROTECTED]]Sent: Monday, 10 September 2001 10:20 a.m.To: Multiple recipients of list delphiSubject: [DUG]: Layout of Non-visual components I have a component editor whichadds lookup columns to a dataset. to do this we must also createlookup datasets for the lookup columns. At the moment thedatasets are all created at 0, 0. TComponent does not have Left or Top property, however there is a Left and Top entry in the dfm for each non-visual component. Is there any way that I can set this? In some cases we may want theselookup datasetscreated on a form or dataset other than the one the parent dataset is on. For thisI need to get a list of available forms or data modules from the designer(do these need to be open?), and allow the user to pick the desired destination. How do I get the list? Thanks Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
[DUG]: Property Editor for TQuery Descendant
I have a TQuery descendant and I want to put a Component editor on it (right click context menu option). To get the default behaviour I must inherit from TQueryEditor in BDEReg.pas. When I build my design time only package I get the error Cannot find BDEReg.dcu. I have found BDEReg.pas in C:\Program Files\Borland\Delphi6\Source\Property Editors and have added this to my Delphi Library Path and my System Path but nothing helps. I assume I need to an obscure dcp to my requires list but I can't find it. Any help would be greatly appreciated. Thanks Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland 1330, New Zealand12 Piermark Drive, North Harbour, Auckland, New ZealandVisit our website at http://www.cjntech.co.nz/
RE: [DUG]: if case else
If you ignore the case statements you are calling begin, without an end. if InputIsCDG then begin ... else ... end; What you need is either: if InputIsCDG then ... else ... or if InputIsCDG then begin ... end else ... end; Stacey --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi
RE: [DUG]: TCustomListBox. Multiselect
Everything available to TCustomlistBox is also available in TCheckListBox so the cast un unnecessary. By default you can't get at the protected properties of an object. Prptected properties are designed to be accessible from within decendants, of the class. You can also get at the protected parts of an object if you are in an object defined in the same unit as the object in question. Therefore if you put somethin like TCheatCLBox = class(TCheckListBox) in your units interface and then go (myCheckListbox as TCheatCLBox).Multiselect you will be fine. I believe that TCheckListBox is already in MultiSelect and ExtendedSelect mode. Think of it as a list box that uses check boxes to show what is selected rather than the standard blue line. When we want the functionality you want we either use a 3rd party component we have called TPickList (with some modifications) or we setup a TTreeView to display checks as its state images. Stacey -Original Message- From: James Low [mailto:[EMAIL PROTECTED]] Sent: Friday, 8 June 2001 8:25 a.m. To: Multiple recipients of list delphi Subject: [DUG]: TCustomListBox. Multiselect I am using a TCheckListBox and see its imediate ancestor is TCustomlistBox. TCustomlistBox has a protected property Multiselect. However, when I use my TCheckListBox so: (myCheckListbox as TCustomListbox).Multiselect := TRue I get told the property does not exist. The VCL code implements Multiselect. Why is this ... and how do I get by ListBox to Multiselect? I guess I am missing something fundamental. The problem is not the myCheckListbox as TCustomListbox bit as I can free the object etc ... In advance thanks. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi
[DUG]: Cached Updates?
I though I knew how CachedUpdates worked, and I though I know how to use it, but one of our users was experiencing a slowdown when editing a large number of records, soI developed a quick test to see what was going on. The following code simply runs through a dataset changing a field and posting the updatse using cached updates. procedure TfTest.bTestClick(Sender: TObject);var LTime, LDuration: TDateTime; LTotal, LAverage: Extended; LCount: Integer;begin LCount := 0; LTotal := 0; qTest.Close; qTest.Open; while not qTest.EOF do begin LTime := Now; qTest.Edit; qTest.FieldByName('lanes').AsInteger := 11; qTest.Post; qTest.ApplyUpdates; qTest.CommitUpdates; LDuration := (Now - LTime) * 24 * 60 * 60; Inc(LCount); LTotal := LTotal + LDuration; LAverage := LTotal / LCount; eCount.Text := Format('%d', [LCount]); eTotal.Text := Format('%17.16f', [LTotal]); eAverage.Text := Format('%17.16f', [LAverage]); qTest.Next; end;end; When this runs I get a fairly dramatic slowdown. ie. The first update takes about 1/100th of a second but, by the timeI reach the 200th update it takes nearly 1 second. I have tried the two following variations and got interesting results. ... qTest.ApplyUpdates; //qTest.CommitUpdates; ... This runs much faster but still has a noticeable slowdown. Previously I believed that this would run very slowly because it would post all changes in the cache each time (ie. The first time it posts 1 change. The second time it posts 2 changes...) because we aren't clearing the cache, but this doesn't appear to be the case. ... //qTest.ApplyUpdates; qTest.CommitUpdates; ... This runs about the same speed as the original, and it does apply the changes to the database, even though ApplyUpdates is never called. Any thoughts/suggestions? Thanks Stacey Stacey Verner Ph: +64-9-4154790Software Developer Fax: +64-9-4154791 DDI: +64-9-4154797CJN Technologies Ltd. Email: [EMAIL PROTECTED]PO Box 302-278, North Harbour, Auckland, New Zealand12 Piermark Drive, North Harbour Estate, Auckland, NZVisit our website at http://www.cjntech.co.nz/