RE: [DUG]: Tip for sore eyes

2003-03-12 Thread Guy Brown
I have two 17 inch crts like Conor (actually I got mine first and he was jealous) and imho it is better than having one large monitor.  The benefit is that you can maximise two application and see them both at once.  With one large monitor it takes longer to arrange the application so that b

RE: Re: [DUG]: Hello all!

2003-03-12 Thread Guy Brown
Invensys Energy Systems - mainly embedded stuff, also doing some Java now TimeMaster/PayGlobal Sungard Treasury System - 98% VB6, yay :-( Guy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Who are the Delphi shops in Chch? The few I know of are (or were): Foodstuff

RE: [DUG]: Freeing Stringlists.

2003-03-02 Thread Guy Brown
like you are doing with Assigned(). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Guy Brown Nope, FreeAndNil() frees the object and then nil's the reference you passed to it so that any other clean up code that uses Assigned() to test the same refe

RE: [DUG]: Freeing Stringlists.

2003-03-02 Thread Guy Brown
Nope, FreeAndNil() frees the object and then nil's the reference you passed to it so that any other clean up code that uses Assigned() to test the same reference won't free the object a second time. Guy >From sysutils: procedure FreeAndNil(var Obj); var P: TObject; begin P := TO

RE: [DUG]: How to tell if a folder or drive is mapped?

2002-11-07 Thread Guy Brown
ExpandUNCFileName will give you the fully qualified filename in unc format (\\\>).  You could compare this to the original filename to see if it is mapped.   hth   Guy -Original Message-From: Jason Coley [mailto:[EMAIL PROTECTED]]Sent: Friday, 8 November 2002 1:09 p.m.To: Mul

RE: [DUG]: Copying an Object

2002-10-03 Thread Guy Brown
Don't forget to apply to ERMA for permission before releasing any cloned objects out of the development environment... http://www.ermanz.govt.nz/ Guy -Original Message- From: Conor Boyd [mailto:[EMAIL PROTECTED]] The term for this is "cloning" an object. -Original Message- Fro

RE: [DUG]: LockWindowUpdate

2002-08-15 Thread Guy Brown
My understanding was that LockWindowUpdate() locked that window and all it's child windows. This may fail if another window is currently locked. If you don't test the return value and the lock failed because another window was already locked then you will not be unlocking (LockWindowUpdate(0) to

RE: [DUG]: Painting to HWND....

2001-10-31 Thread Guy Brown
Not sure if this helps your particular situation but I have previously used this API call to stop unwanted form refreshing:   Guy   --   Platform SDK: Windows GDI   LockWindowUpdateThe LockWindowUpdate function disables or enables drawing in the specified window. Only on

RE: [DUG]: dbGrid

2001-10-14 Thread Guy Brown
What about an alternative approch. Create a calculated string field. Use the OnCalcFields event to fill that field with 'YES' or 'NO' depending on the value of field DateOut. Use the dbGrid to display the value in the new calculated field. Guy -Original Message- From: John Christenhu

RE: [DUG]: Borland RAD Seminars - Ak, Wgtn, ChCh

2001-09-30 Thread Guy Brown
Cut and paste the " rad seminar.doc" bit onto the end of the link. Guy -Original Message- From: Robert Martin [mailto:[EMAIL PROTECTED]] 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. - O

RE: [DUG]: TDataset - Recordcount

2001-08-23 Thread Guy Brown
There is a TDataSet.IsEmpty method.   Guy -Original Message-From: James Low [mailto:[EMAIL PROTECTED]]Sent: Friday, 24 August, 2001 8:45 a.m.To: Multiple recipients of list delphiSubject: [DUG]: TDataset - Recordcount If I have a TQuery with a select statement like 'Sel

RE: [DUG]: DB Grid - non bound Columns.

2001-08-15 Thread Guy Brown
Just an idea, can you create a couple of calculated on the dataset, point the grid columns at the calculated fields and deal with the data before you post?   Guy -Original Message-From: James Low [mailto:[EMAIL PROTECTED]]Sent: Thursday, 16 August, 2001 12:37 p.m.To: Multiple

RE: [DUG]: DB Grids

2001-08-15 Thread Guy Brown
Check out the grid components at http://www.devexpress.com   Guy -Original Message-From: Robert Martin [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 16 October, 2001 10:13 a.m.To: Multiple recipients of list delphiSubject: [DUG]: DB Grids Hi   We have an app where we want

RE: [DUG]: Procedure Problem

2000-11-28 Thread Guy Brown
That depends on if you use the Sender parameter inside the event. If you do make use of the Sender parameter then send it the appropriate object. If not just pass in Nil. Guy Brown TimeMaster Systems -Original Message- Joel van Velden wrote: Hi there all, Just 1 newbie question: How

RE: [DUG]: actions

2000-11-20 Thread Guy Brown
Can you test the Sender parameter? E.g. if Sender is TMenuItem then begin... or if Sender = btnOk then begin... Guy Brown TimeMaster Systems -Original Message- Mark Derricutt wrote: In a TAction.OnExecute event, is there anyway to find out which component caused the action to run? I

RE: [DUG]: Problems with TNMPop3

2000-11-14 Thread Guy Brown
I will second that. Stay away from TNM. You will just waste your time and annoy yourself. Been there, done that. For simple sending receiving e-mail I now use Internet Mail Suite 2.0 ( http://www.argosoft.com/delphi/ ). Guy Brown TimeMaster Systems -Original Message- [EMAIL

RE: [DUG]: Encrypting a Password in OnSetText, and OnGetText.

2000-11-12 Thread Guy Brown
that helps,   Guy Brown TimeMaster Systems   -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Stacey VernerSent: Sunday, 12 November 2000 9:16 a.m.To: Multiple recipients of list delphiSubject: [DUG]: Encrypting a Password in OnSetText, and OnGe

RE: [DUG]: INternal Errors

2000-11-09 Thread Guy Brown
Yes. It means: "Today is Friday. Your computer is tired, please go home early and come in late on Monday". :o) Guy Brown TimeMaster Systems -Original Message- Rohit Gupta Wrote: Subject: [DUG]: INternal Errors I am getting too many internal errors in D5... doe sanyone

RE: [DUG]: Re : Copying Files

2000-10-18 Thread Guy Brown
Make sure you test this on a early version of Win95.  It has caused me problems in the past (error messages saying can't find xxx.dll, application refuses to load).   Guy Brown TimeMaster Systems -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Beha

RE: [DUG]: Re:Copying Files

2000-10-17 Thread Guy Brown
Try this: CopyFile('A:\Program.exe', PChar(PathStg)); Guy Brown TimeMaster Systems Colin Dillicar wrote: >Hi all, > >Trouble is when I assign, for instance, 'C:\{directory}' to a string >variable 'PathStg' and call MkDir(PathStg) the directory is cre

RE: [DUG]: DevExpress Inspector...

2000-10-15 Thread Guy Brown
I haven't tested this but try getting the node you want to be focused and going Node.Focused := True; Thats how the DevExpress grids/tree lists work so I would assume it's the same. Guy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Derricutt Sent

RE: [DUG]: Upgrading to Delphi 5

2000-10-02 Thread Guy Brown
I have run Delphi 4 and Delphi 5 trial under Win2K and 98 with no problems. You can even take it a step further and compile Delphi 5 and 4 projects simultaneously without any problems. Guy Michael White Wrote: >Before I go ahead and install a Delphi 5 Trial version on the same machine >as our cu

RE: [DUG]: Processing Messages (Application.ProcessMessages)

2000-09-24 Thread Guy Brown
My C++ is a little bit rusty but the Delphi equivalent would be: while (eventCount < nbufferedEvents) and (PutMidiOut(hMidiOut, (lpMidiBuffer + eventCount)) = 0) do begin Inc(eventCount); end; What type is the lpMidiBuffer variable? What does the PutMidiOut function do? Guy Brown TimeMas

[DUG]: Date formats

2000-09-07 Thread Guy Brown
ead only. Does anyone know of a way to do this? TIA Guy Brown TimeMaster System --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send e

[DUG]: Stopping the creation of DFM components

2000-08-27 Thread Guy Brown
creating/destroying the tab sheet and the components on it. Does anyone know of something that I can override to stop a form creating certain components defined in a DFM? TIA, Guy Brown --- New Zealand Delphi Users

RE: [DUG]: Running D4 Professional on Win2000

2000-08-23 Thread Guy Brown
I am running Windoze 2000 and have no problems running Delphi 4. In fact I find it a lot more stable for development and if Delphi crashes badly you can just kill the process. My average number of reboots in a day fell from about 5 or 6 to none. Guy -Original Message- From: [EMAIL PROT

RE: [DUG]: Silly question?

2000-08-09 Thread Guy Brown
Drop a TActionList component on your form, add a TAction to the TActionList and set it's shortcut property F5, add you code to the OnExecute event. Guy -Original Message- Behalf Of Luke Pascoe Sent: Tuesday, 8 August 2000 5:05 p.m. To: Multiple recipients of list delphi Subject: [DUG]: S

Re: [DUG]: Function Pointers

2000-08-06 Thread Guy Brown
Just guessing but try passing @MyFunction as the parameter. Guy - Original Message - From: "Tony Sinclair" <[EMAIL PROTECTED]> > Hi all, > > has anyone called a exported C function in a dll that receives a function > pointer as a parameter. > > For example the C typedef is: > > typed

Re: [DUG]: Events on Non-Visible Components

2000-08-01 Thread Guy Brown
Write a method (can't be a free function/procedure) that has the same parameters as the event and then assign it at run time e.g MyBitmap.OnProgress := MyProgressEvent; Guy - Original Message - From: "Tony Sinclair" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PRO

Re: [DUG]: Wanted: Hot Vertical Grid Action

2000-07-27 Thread Guy Brown
Has one been organized? I (and probably a few of the guys from the office) would be very keen to go. Guy P.S. Tony/Eamon/Cory/other members of Mikes Delphi class, do you remember hump day? Everyone else, it's not as bad as it sounds ;-) > Thursday, July 27, 2000, Mark Derricutt wrote: > So...

Re: [DUG]: Wanted: Hot Vertical Grid Action

2000-07-27 Thread Guy Brown
Hey, I didn't start this I just helped it along a bit ;-), anyway I remember you coming to class late with a big smile on your face ("but we are just good friends" you replied...he he he), wink wink, nudge nudge, know what I mean? Guy >On Thursday, July 27, 2000 Tony Sinclair wrote: > It's alrig

Re: [DUG]: Wanted: Hot Vertical Grid Action

2000-07-27 Thread Guy Brown
You shouldn't expect to get immediate satisfaction. You have to talk to her right, whisper sweet nothings and gently coax her into it. Guy > On Thu, 27 Jul 2000, Mark Derricutt wrote: > > Bah, she's playing hard to get :( I just got 2 emails from dev-express, > one with the passwords for Expre

Re: [DUG]: Wanted: Hot Vertical Grid Action

2000-07-27 Thread Guy Brown
From: "Mark Derricutt" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Wednesday, July 26, 2000 11:58 PM Subject: Re: [DUG]: Wanted: Hot Vertical Grid Action > On Mon, 24 Jul 2000, Guy Brown wrote: > > > Check o

Re: [DUG]: Wanted: Hot Vertical Grid Action

2000-07-24 Thread Guy Brown
Check out www.devexpress.com for a wide variety of busty smoking grid action. Guy Brown TimeMaster Systems - Original Message - From: "Neven MacEwan" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Monday, July 24

Re: [DUG]: Win 2K OS Version

2000-07-23 Thread Guy Brown
Jeremy, I am running Win2K, if you post the appropriate line of code I will put it under a Button1.Click and reply with the result.   Guy Brown TimeMaster Systems - Original Message - From: Jeremy Coulter To: Multiple recipients of list delphi Sent: Sunday, July 23

Re: [DUG]: How do I get new forms to not default to auto-create

2000-07-05 Thread Guy Brown
I assume you are using Delphi 5? In Delphi 4 that option does not exist (or at least I have not found it). Guy Brown > In Environment Options (on the Tools menu), Preferences tab, there is an > "Auto create forms" option. &g

[DUG]: How do I get new forms to not default to auto-create

2000-07-05 Thread Guy Brown
new forms not default to auto-create?   TIA   Guy Brown

[DUG]: Windoze 2000 and dos file handles

2000-06-11 Thread Guy Brown
rst place. TIA Guy Brown TimeMaster Systems --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

RE: [DUG]: Cleaning up project directories

2000-06-08 Thread Guy Brown
Yup, it's called GExperts http://www.gexperts.org/ Its a Delphi IDE plug in and it's useful for much more than just cleaning up temp files. Guy Brown TimeMaster Systems -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Neven MacEwan Sent: We

RE: [DUG]: Progress bars

2000-06-07 Thread Guy Brown
My suggestion would be to write code in the show event of the progress bar that cycles through Application.Components and disables any forms that are visible.  Reenable on hide/close.   Guy Brown TimeMaster Systems -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [DUG]: Applying a font to a printer

2000-05-29 Thread Guy Brown
Thanks, that was what I was looking for.   Guy Brown TimeMaster Systems - Original Message - From: Cheng Wei To: Multiple recipients of list delphi Sent: Monday, May 29, 2000 11:07 AM Subject: RE: [DUG]: Applying a font to a printer Hi Guy,   Try

[DUG]: Applying a font to a printer

2000-05-29 Thread Guy Brown
printer.  I have looked at the help for TPrinter and it has a Fonts property but that is a string list containing the list of available fonts not the font to apply to the next print job.   I am sure somebody has a simple solution that I am missing.   TIA   Guy Brown TimeMaster Systems

Re: [DUG]: ZIP Components.

2000-05-14 Thread Guy Brown
Try DynaZip, http://www.innermedia.com They have a non-nags evaluation version. Guy Brown TimeMaster Systems - Original Message - From: "Myles Penlington" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Saturd

Re: [DUG]: Dbf corruption

2000-05-07 Thread Guy Brown
That's funny, Ian still talks about your magic code that changed that byte to indicate that the dbf had no matching index file so that you could open it and recreate the indexes if you need to. I think that was for their timesheet app. I think I can find the code if anybody has a use for it. Gu

Re: [DUG]: Example wanted of using a WebClass in Delphi

2000-02-27 Thread Guy Brown
Do you use SourceSafe as a external application (check everything out that you want and then start Delphi) or have you integrated it into the Delphi IDE? Also does everybody have to check in their current work before leaving at the end of the day or do you just check in after you have finished a m

Re: [DUG]: Example wanted of using a WebClass in Delphi

2000-02-24 Thread Guy Brown
I think we have just ordered Delphi 5. Ill have a look at those WebHub components. Have you tried the TeamSource app that comes with Delphi 5? If so is it worth using or would you recommend another source code versioning/archiving tool? Guy - Original Message - From: Nahum Wild <[EMAIL

Re: [DUG]: Example wanted of using a WebClass in Delphi

2000-02-24 Thread Guy Brown
those webitems to a client. As I understand it it's basically a COM object which talks to an IIS. Guy Brown TimeMaster Systems. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

[DUG]: Example wanted of using a WebClass in Delphi

2000-02-23 Thread Guy Brown
WebClass. Has anybody got an example of writing and/or using a WebClass in Delphi? Many Thanks, Guy Brown, TimeMaster Systems --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website

[DUG]: Strange string behaviour and EOutOfMemory exception

1999-12-21 Thread Guy Brown
assign the first string to it's appropriate record I get the EOutOFMemory exception. It's almost like I have run out of strings??? I have tried increasing the stack size and unticking the "Huge Strings" so that all strings are declared as s