RE: Re[3]: [DUG]: UNC Path Names

2001-11-15 Thread Patrick Dunford

Yes, occasionally.

This seems to happen if your message body contains any kind of program code,
particularly anything that looks like VBScript.

It is incidentally interesting that UUencoded attachments may defeat some
types of virus scanners.

=
Patrick Dunford, Christchurch, NZ
http://pdunford.godzone.net.nz/
http://www.trainweb.org/ferrymead/


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of [EMAIL PROTECTED]
 Sent: Friday, 16 November 2001 15:46
 To: Multiple recipients of list delphi
 Subject: Re[3]: [DUG]: UNC Path Names


 Is anyone else getting mail back, after posting to the list,
 saying that they
 have .exe attachments removed or the mail had a virus ???

 This is only occurring when posting to the Delphi List. if I post
 to ordinary
 addresses - there are no attachments and no viruses
 I have scanned my PC, the Network bods have been all over it -
 nothing, but
 everytime I post I get half a dozen warnings etc. back.

 Anyone else getting the same type of thing ?

 Regards
 Paul McKenzie

 =
 Paul McKenzie
 Jetbet II Developer
 =
 [EMAIL PROTECTED]
 Ph: (04) 576-6822

 T.A.B. National Office
 106-110 Jackson Street
 Petone
 New Zealand



 --
 -
 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]: mis using pointers

2001-11-14 Thread Patrick Dunford

Yes. There are some windowed controls such as TListBox and TListView that
have a data or object property for each row that you can use to store some
sort of ID code. Normally when I am populating such a list from a dataset I
store the primary key value (integer) in that property so when they click on
the row I can respond to the event by fetching that record from the dataset.

=
Patrick Dunford, Christchurch, NZ
http://pdunford.godzone.net.nz/
http://www.trainweb.org/ferrymead/


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Neven MacEwan
 Sent: Thursday, 15 November 2001 12:13
 To: Multiple recipients of list delphi
 Subject: [DUG]: mis using pointers


 Hi

 I know you'll all leap on theis one but can I cast and integer to
 a pointer?

 So I can so List.Add(Ord(Screen.Cursor)), where list is tlist

 TIA

  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/



RE: [DUG]: Const

2001-11-11 Thread Patrick Dunford

From the help file:

Typed constants, unlike true constants, can hold values of array, record,
procedural, and pointer types.

In the default {$J+} compiler state, typed constants can have new values
assigned to them; they behave essentially like initialized variables. But if
the {$J–} compiler directive is in effect, typed constants cannot change
value at runtime; they are, in effect, read-only variables.

=
Patrick Dunford, Christchurch, NZ
http://pdunford.godzone.net.nz/
http://www.trainweb.org/ferrymead/


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of John Christenhusz
 Sent: Monday, 12 November 2001 12:30
 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/



RE: [DUG]: Actions, shortcuts and some keyboards misbehave

2001-11-11 Thread Patrick Dunford

Yes it was D5 and NT4 Workstation (Christchurch Polytech Institute of
Technology)

=
Patrick Dunford, Christchurch, NZ
http://pdunford.godzone.net.nz/
http://www.trainweb.org/ferrymead/


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Manning, John
 Sent: Monday, 12 November 2001 13:40
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Actions, shortcuts and some keyboards misbehave


 Hi Patrick,

 There is a fix (and an explanation) for this strange behaviour. I have the
 files locally but just found a reference to them on the web:

 http://www.elists.org/pipermail/delphi-talk/2000-March/003453.html

 HTH,
 John

 -Original Message-
 From: Patrick Dunford [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 12 November 2001 11:23 am
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Actions, shortcuts and some keyboards misbehave


 I have seen something odd on a Compaq keyboard where pressing Page Down or
 something would cause the Delphi editor to open a new editing
 window for the
 same unit. We assumed that the keyboard was sending extra keystrokes of a
 different character for some reason.
 --
 -
 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]: Sending BDE dataset to Access Database

2001-11-01 Thread Patrick Dunford



ADO 
components are made by a lot of companies. Over here is a good place to look: http://www.kylecordes.com/bag/index.html

If you 
are really keen you could write a lot of OLE calls to ADO. It pays to do this as 
early binding for speed.

=
Patrick Dunford, Christchurch, NZ
http://pdunford.godzone.net.nz/
http://www.trainweb.org/ferrymead/


  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Mark 
  HowardSent: Friday, 2 November 2001 14:48To: Multiple 
  recipients of list delphiSubject: Re: [DUG]: Sending BDE dataset to 
  Access Database
  OK
  I understand that I would have to buy the ADO components 
  from Borland (using D5 Pro)
  And that the target machine has to have MS ADO 2.1 or 
  greater?
  
  Anyone have any idea of the costs of these?
  
  Mark
  
- Original Message - 
From: 
Steve Galyer 

To: Multiple recipients of list delphi 

Sent: Friday, November 02, 2001 1:06 
PM
Subject: RE: [DUG]: Sending BDE dataset 
to Access Database

Hi 
Mark

I 
have done exactly this when migrating from Paradox to Access - no problems 
encountered.

Regards
Steve Galyer

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Mark 
  HowardSent: Friday, 2 November 2001 12:23 p.m.To: 
  Multiple recipients of list delphiSubject: [DUG]: Sending BDE 
  dataset to Access Database
  Hi
  
  I apologise in advance if this question demonstrates a 
  fundamental lack of understanding of Delphi!
  
  I have a potential site that has a lot of in house 
  written reports based on an Access database. My app is a potential 
  replacement for their existing front end data capture. It is 
  BDE/Paradox based.
  
  My question is:
  
  Is it easy from within my app to output a dataset 
  (populated through the BDE) to an Access table (say through 
  ADO).
  
  That is can a single application read and write data 
  from/to an Paradox database and also write data to Access?
  
  Any big fish-hooks?
  
  Tia
  
  Mark
  
  


RE: [DUG]: Ofttopic - Turbo Pascal - Delphi console apps

2001-10-31 Thread Patrick Dunford



Here's 
another conundrum

If 
Delphi 1 is used to compile a TP project as a console app is that app able to 
run in a Dos window, or in Dos full stop, without Windows?

=
Patrick Dunford, Christchurch, NZ
http://pdunford.godzone.net.nz/
http://www.trainweb.org/ferrymead/


  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Patrick 
  DunfordSent: Wednesday, 31 October 2001 11:07To: 
  Multiple recipients of list delphiSubject: [DUG]: Ofttopic - Turbo 
  Pascal
  Does any version 
  available freely (from Borland) have support for any type of database. If you 
  had only TP what would have to be added to it to use such a 
  DB.
  
  =
  Patrick Dunford, Christchurch, NZ
  http://pdunford.godzone.net.nz/
  http://www.trainweb.org/ferrymead/
  


RE: [DUG]: PDF Components

2001-10-24 Thread Patrick Dunford

I would assume they are still developing it, those are features I would like
to see as well as the ability to align text. Of course with the full source
available there is nothing to stop anyone from developing those features
themselves...

However you would not require smart SQL scripts, you just require the
ability to write code that can step through the data in the order in which
the bands are processed in a QR report. Not so hard at all. I just wrote
code to create a CSV file (for Excel) in the same format as a report and
that was not at all difficult. The report had a group header and footer and
a detail band.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Mark Howard
 Sent: Thursday, 25 October 2001 13:40
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: PDF Components


 Jeremy
 Have had a quick look only (being a sole trader, usually can't follow a
 thread to its conclusion in one go!)

 It certainly appears to produce PDF format effectively but with
 its lack of
 multilevel banding and grouping, it is clear that it will require a
 combination of:
 much smarter SQL scripts than I have been able to get away with using QR
 and/or a lot more code to create the data to be printed on each band.

 I guess it would be a bit much to expect a freeware component to
 be a proper
 banded report generator that also produced PDF output :(

 Will probably try to use it if the client site wants to head down
 this track
 (now doubtful - see next post)

 Mark
 - Original Message -
 From: vss [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Wednesday, October 24, 2001 10:04 AM
 Subject: [DUG]: PDF Components


  Hi all.
  For those of you hwo have downloaded that PDF component and have looked
  at it, what did you think ?
 
  Cheers,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/


---
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]: PDF Components

2001-10-24 Thread Patrick Dunford

The latest version 0.9 (available on the Delphi Super Page) adds a few more
basic functionalities (like text alignment) but you would basically have to
simulate the grouping in code.

When I did my grouped reports in QR, I used one query for both the group
header and the detail, which made it relatively simple to produce a grouped
CSV output file when I wanted to use that format. It wouldn't be hard to
create PDF using that format with these components.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Mark Howard
 Sent: Thursday, 25 October 2001 13:40
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: PDF Components


 Jeremy
 Have had a quick look only (being a sole trader, usually can't follow a
 thread to its conclusion in one go!)

 It certainly appears to produce PDF format effectively but with
 its lack of
 multilevel banding and grouping, it is clear that it will require a
 combination of:
 much smarter SQL scripts than I have been able to get away with using QR
 and/or a lot more code to create the data to be printed on each band.

 I guess it would be a bit much to expect a freeware component to
 be a proper
 banded report generator that also produced PDF output :(

 Will probably try to use it if the client site wants to head down
 this track
 (now doubtful - see next post)

 Mark
 - Original Message -
 From: vss [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Wednesday, October 24, 2001 10:04 AM
 Subject: [DUG]: PDF Components


  Hi all.
  For those of you hwo have downloaded that PDF component and have looked
  at it, what did you think ?
 
  Cheers,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/


---
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]: Emailing Invoices

2001-10-24 Thread Patrick Dunford

http://www.est.hi-ho.ne.jp/takeshi_kanno/powerpdf/index.html

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of vss
 Sent: Tuesday, 23 October 2001 16:03
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: Emailing Invoices
 
 
 Hi. Well, just on the topic of PDF, we downloaded a PDF generator that 
 was native Delphi code. YO uused it a bit like QR, and it came with 
 examples on hwo to use it like a report generator. It was VERY col, and 
 it was free !!
 it was good, it got RIGHT up the VB boys here :-)
 
 I can email you it if you wish.
 
 Jeremy Coulter
 
 -Original Message-
 From: Mark Howard [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Date: Tue, 23 Oct 2001 14:18:16 +1300
 Subject: [DUG]:  Emailing Invoices
 
  Hi
  
  Currently using Quick Reports (still).
  
  A client 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?)
  
 
 
 --
 -
 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]: PDF Components

2001-10-23 Thread Patrick Dunford

I think it looks quite good, though of course it is not as fully featured as
Quickreport.

All the example programs compiled and worked in D3 Std. I was surprised to
have it installed without problems in D5 Std which gives it a reporting
capability.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of vss
 Sent: Wednesday, 24 October 2001 10:05
 To: Multiple recipients of list delphi
 Subject: [DUG]: PDF Components


 Hi all.
 For those of you hwo have downloaded that PDF component and have looked
 at it, what did you think ?

 Cheers,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

2001-10-23 Thread Patrick Dunford

It's an OLE object reference

Delphi equiv = GetOleObject


   MSDN Home   MSDN Library   Visual Basic   Reference 

Visual Basic for Applications Reference

GetObject Function
See AlsoExampleSpecifics

Returns a reference to an object provided by an ActiveX component.

Syntax

GetObject([pathname] [, class])

The GetObject function syntax has these named arguments:

Part Description
pathname Optional; Variant (String). The full path and name of the file
containing the object to retrieve. If pathname is omitted, class is
required.
class Optional; Variant (String). A string representing the class of the
object.


The class argument uses the syntax appname.objecttype and has these parts:

Part Description
appname Required; Variant (String). The name of the application providing
the object.
objecttype Required; Variant (String). The type or class of object to
create.


Remarks

Use the GetObject function to access an ActiveX object from a file and
assign the object to an object variable. Use the Set statement to assign the
object returned by GetObject to the object variable. For example:

Dim CADObject As Object
Set CADObject = GetObject(C:\CAD\SCHEMA.CAD)

When this code is executed, the application associated with the specified
pathname is started and the object in the specified file is activated.

If pathname is a zero-length string (), GetObject returns a new object
instance of the specified type. If the pathname argument is omitted,
GetObject returns a currently active object of the specified type. If no
object of the specified type exists, an error occurs.

Some applications allow you to activate part of a file. Add an exclamation
point (!) to the end of the file name and follow it with a string that
identifies the part of the file you want to activate. For information on how
to create this string, see the documentation for the application that
created the object.

For example, in a drawing application you might have multiple layers to a
drawing stored in a file. You could use the following code to activate a
layer within a drawing called SCHEMA.CAD:

Set LayerObject = GetObject(C:\CAD\SCHEMA.CAD!Layer3)

If you don't specify the object's class, Automation determines the
application to start and the object to activate, based on the file name you
provide. Some files, however, may support more than one class of object. For
example, a drawing might support three different types of objects: an
Application object, a Drawing object, and a Toolbar object, all of which are
part of the same file. To specify which object in a file you want to
activate, use the optional class argument. For example:

Dim MyObject As Object
Set MyObject = GetObject(C:\DRAWINGS\SAMPLE.DRW, FIGMENT.DRAWING)

In the example, FIGMENT is the name of a drawing application and DRAWING is
one of the object types it supports.

Once an object is activated, you reference it in code using the object
variable you defined. In the preceding example, you access properties and
methods of the new object using the object variable MyObject. For example:

MyObject.Line 9, 90
MyObject.InsertText 9, 100, Hello, world.
MyObject.SaveAs C:\DRAWINGS\SAMPLE.DRW

Note   Use the GetObject function when there is a current instance of the
object or if you want to create the object with a file already loaded. If
there is no current instance, and you don't want the object started with a
file loaded, use the CreateObject function.

If an object has registered itself as a single-instance object, only one
instance of the object is created, no matter how many times CreateObject is
executed. With a single-instance object, GetObject always returns the same
instance when called with the zero-length string () syntax, and it causes
an error if the pathname argument is omitted. You can't use GetObject to
obtain a reference to a class created with Visual Basic.

 Contact Us   |  E-mail this Page   |  MSDN Flash Newsletter
 © 2001 Microsoft Corporation. All rights reserved.   Terms of Use  Privacy
Statement   Accessibility

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Neven MacEwan
 Sent: Wednesday, 24 October 2001 12:12
 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/



RE: [DUG]: Emailing Invoices

2001-10-22 Thread Patrick Dunford



The 
biggest problem with HTML is printing, unless the CSS2 printing standards are 
used. Far better to use PDF.

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Nic 
  WiseSent: Tuesday, 23 October 2001 15:14To: Multiple 
  recipients of list delphiSubject: Re: [DUG]: Emailing 
  Invoices
  HTML gets displayed by pretty much anything, and 
  it comes up nice inoutlook expressand the like. (ie, most email 
  apps these days). Just cleaner, IMO. But thats just me.
  
  N
  
- Original Message - 
From: 
Mark 
Howard 
To: Multiple recipients of list delphi 

Sent: Tuesday, October 23, 2001 3:06 
PM
Subject: Re: [DUG]: Emailing 
Invoices

Stacey / Craig / Nic

Thanks for the suggestions.

We do have a QR report viewer, but would prefer to use a 
format that can be read by anybody.

I assume allStacey's 'filter options' require QR 
Professional?

Not sure what is involved in the PDF printer option. 
Do you buy a virtual PDF printer driver that converts any file sent to this 
"printer" to PDF format?

Have had a look at the Praagan and the Waler 
sites.

Before spending the US$79 on Praagan I'd need to be 
convinced that I wasn'y about to convert to FastReport (and I'm not 
convinced of that).

Has anyone else had any experience with TExtraFilters 
(US$25) and can tell us what they thought of it?

Nic - why do you suggest HTML rather than RTF? What 
are the advantages as you see them?

Thanks again for the input.

Mark



  - Original Message - 
  From: 
  Stacey 
  Verner 
  To: Multiple recipients of list delphi 
  
  Sent: Tuesday, October 23, 2001 2:24 
  PM
  Subject: 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]: TNMSMTP

2001-10-16 Thread Patrick Dunford

or set to Local Area Network instead

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Nello Sestini
 Sent: Tuesday, 16 October 2001 20:37
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: TNMSMTP


 take a look at:

 settings | control panel | internet options | connections

 is never dial a connection selected here?

 if it is, try one of Dial whenever ... or Always dial ...
 and see if it affects the problem.

 -ns
 http://www.roserox.co.th




 - Original Message -
 From: Steve Galyer [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2001 1:57 PM
 Subject: [DUG]: TNMSMTP


 I have a problem using the TNMSMTP component - under Win 95, 98, ME the
 component will automatically initiate a dialup if not currently connect to
 the internet; but under Win 2000 it will not initiate a dialup - returns
 null remote address, but will use the connection if it already exists.

 Anyone able to give me some pointers here - I know that Indy is frequently
 recommended, but that is not the answer I am looking for.

 Regards
 Steve Galyer



 --
 -
 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]: TNMSMTP

2001-10-16 Thread Patrick Dunford

We assume that you are referring to the default action that occurs when an
application requests Internet access. Such requests are handled by the
default dialler or whatever. MS Outlook uses its own dialler and can
override the settings for Internet Explorer or other applications.

Does your application use a dialup component, or does it rely on the system
to dial?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Steve Galyer
 Sent: Wednesday, 17 October 2001 08:35
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: TNMSMTP


 Thanks Patrick  Nello but unfortunately neither of your suggestions are
 true. I have tried this approach already, anyway Outlook Express does an
 automatic dialup every 30 minutes which would suggest that these settings
 are OK. The problem occurs on several machines that I have tested
 under Win
 2000 (both Professional and Advanced Server), yet I run other software
 incorporating the same component on a few hundred other machines
 around the
 country without this kind of problem; however the existing version of the
 software does not run under MDAC 2.6 because of the ADO bug, so I have not
 exposed widely to Win 2000 before.

 Regards
 Steve Galyer


 - Original Message -
 From: Patrick Dunford [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2001 9:33 PM
 Subject: RE: [DUG]: TNMSMTP


  or set to Local Area Network instead
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
   Behalf Of Nello Sestini
   Sent: Tuesday, 16 October 2001 20:37
   To: Multiple recipients of list delphi
   Subject: Re: [DUG]: TNMSMTP
  
  
   take a look at:
  
   settings | control panel | internet options | connections
  
   is never dial a connection selected here?
  
   if it is, try one of Dial whenever ... or Always dial ...
   and see if it affects the problem.
  
   -ns
   http://www.roserox.co.th
  
  
  
  
   - Original Message -
   From: Steve Galyer [EMAIL PROTECTED]
   To: Multiple recipients of list delphi [EMAIL PROTECTED]
   Sent: Tuesday, October 16, 2001 1:57 PM
   Subject: [DUG]: TNMSMTP
  
  
   I have a problem using the TNMSMTP component - under Win 95,
 98, ME the
   component will automatically initiate a dialup if not
 currently connect
 to
   the internet; but under Win 2000 it will not initiate a
 dialup - returns
   null remote address, but will use the connection if it
 already exists.
  
   Anyone able to give me some pointers here - I know that Indy is
 frequently
   recommended, but that is not the answer I am looking for.
  
   Regards
   Steve Galyer
  
  
  
   --
   -
   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]: TNMSMTP

2001-10-16 Thread Patrick Dunford

This appears to be only Outlook Express accounts, is that what you wanted?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Robert Martin
 Sent: Wednesday, 17 October 2001 10:12
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: TNMSMTP


 On an internet / windows settings related theme.. Is there an
 easy way I can
 get the POP and SMTP from the default identy in windows (pop
 server / port/
 smtp server port/ username / password).  Or do I have to force my users to
 enter these manually in to my software?

 Robert Martin
 Software Engineer
 Wild Software Ltd


 --
 -
 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]: TNMSMTP

2001-10-16 Thread Patrick Dunford

If you are using Dialup you could use a dialup component.

I have used one for several years time that I got from here
http://delphi.icm.edu.pl/ftp/d30free/dialup.zip

I use a modified improved version from here
http://www.pdunford.godzone.net.nz/delphi/tdialuppd/dialuppd.zip

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Steve Galyer
 Sent: Wednesday, 17 October 2001 12:14
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: TNMSMTP


 Hi Myles

 I don't use a proxy.

 I have searched on the net for JEDI version as you suggest, but
 not had any
 success.

 Have you got any example code that could be used?

 I note that you mention an InternetHangUp - this would be very
 useful as the
 TNMSMTP.Disconnect does not end the dial up session.

 Regards
 Steve Galyer


 - Original Message -
 From: Myles Penlington [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Wednesday, October 17, 2001 9:03 AM
 Subject: RE: [DUG]: TNMSMTP


  You should be able to simulate the problem ... (or get around it)
 
  Using D6 and the WinINet.dll interface - else get the JEDI
 version of the
  WinInet.dll calls.
 
  Then make calls to InternetDial, InternetHangUp, InternetGoOnline,
  InternetAutodial
  etc. You will need to check the MSDN docs on these.
 
  Note that InternetGetConnectedState is unreliable on Win95 systems etc.
  Don't know about Win2000 - maybe it uses this on Win2000 and
 this returns
  the wrong state just like Win95 so it gets stuffed up.
 
  I would be keen to know the outcome ... (Having used these okay on Win95
 but
  not yet tested it on Win2000).
 
  Indy would not help in this case, as it does not use these calls at all.
 
  Do you use a proxy at all and is there security present? As one of the
  options (INTERNET_AUTODIAL_FAILIFSECURITYCHECK) if specified on the
 dialling
  options may give this kind of result (Just guessing).
 
  Myles.
 
 
 
  -Original Message-
  From: Steve Galyer [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, 17 October 2001 8:35 a.m.
  To: Multiple recipients of list delphi
  Subject: Re: [DUG]: TNMSMTP
 
 
  Thanks Patrick  Nello but unfortunately neither of your suggestions are
  true. I have tried this approach already, anyway Outlook Express does an
  automatic dialup every 30 minutes which would suggest that
 these settings
  are OK. The problem occurs on several machines that I have tested under
 Win
  2000 (both Professional and Advanced Server), yet I run other software
  incorporating the same component on a few hundred other machines around
 the
  country without this kind of problem; however the existing
 version of the
  software does not run under MDAC 2.6 because of the ADO bug, so
 I have not
  exposed widely to Win 2000 before.
 
  Regards
  Steve Galyer
 
 
  - Original Message -
  From: Patrick Dunford [EMAIL PROTECTED]
  To: Multiple recipients of list delphi [EMAIL PROTECTED]
  Sent: Tuesday, October 16, 2001 9:33 PM
  Subject: RE: [DUG]: TNMSMTP
 
 
   or set to Local Area Network instead
  
-Original Message-
From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
Behalf Of Nello Sestini
Sent: Tuesday, 16 October 2001 20:37
To: Multiple recipients of list delphi
Subject: Re: [DUG]: TNMSMTP
   
   
take a look at:
   
settings | control panel | internet options | connections
   
is never dial a connection selected here?
   
if it is, try one of Dial whenever ... or Always dial ...
and see if it affects the problem.
   
-ns
http://www.roserox.co.th
   
   
   
   
- Original Message -
From: Steve Galyer [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
Sent: Tuesday, October 16, 2001 1:57 PM
Subject: [DUG]: TNMSMTP
   
   
I have a problem using the TNMSMTP component - under Win 95, 98, ME
 the
component will automatically initiate a dialup if not currently
 connect
  to
the internet; but under Win 2000 it will not initiate a dialup -
 returns
null remote address, but will use the connection if it already
 exists.
   
Anyone able to give me some pointers here - I know that Indy is
  frequently
recommended, but that is not the answer I am looking for.
   
Regards
Steve Galyer
   
   
   
--
-
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

RE: [DUG]: TNMSMTP

2001-10-16 Thread Patrick Dunford

Since the password is encrypted, you can't use it without knowing how to
decrypt it.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Robert Martin
 Sent: Wednesday, 17 October 2001 10:12
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: TNMSMTP


 On an internet / windows settings related theme.. Is there an
 easy way I can
 get the POP and SMTP from the default identy in windows (pop
 server / port/
 smtp server port/ username / password).  Or do I have to force my users to
 enter these manually in to my software?

 Robert Martin
 Software Engineer
 Wild Software Ltd


 --
 -
 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]: TNMSMTP

2001-10-16 Thread Patrick Dunford

Does the test system have any firewall software in place?

I find with ZoneAlarm running at home that it has to be configured for every
app that wants to dial out, whether dialling itself or not. This caught me
short a few times.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Nello Sestini
 Sent: Wednesday, 17 October 2001 15:17
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: TNMSMTP


 Oh and one more thing ...

 As a further test of whether this problem is something
 in the SMTP component or something in the OS settings
 can you please try a finger or ping command at the
 NT command line of the failing Win2000 environment?
 Does it dial out, or also fail?

 As several others already pointed out OE (and other apps)
 often use their own dialers, but ping will just open
 a socket, so it will test the OS autoconnect.

 -ns
 http://www.roserox.co.th


 - Original Message -
 From: Nello Sestini [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Wednesday, October 17, 2001 8:40 AM
 Subject: Re: [DUG]: TNMSMTP


  Steve
 
  This problem interests me because we do a lot of stuff
  with the RAS API.
 
  Do you have some small app that exhibits the failure
  (i.e. tries to complete a connection and the OS doesn't
  dial out)?
 
  Or better - does the smtpdem.pas fail this way?
 
  (the only one I have is the one that came with D5)
 
  If i've somehow missed that you solved this it
  already some way (other than by using your own dialer)
  please repost it.   (Sometimes the list misbehaves.)
 
  tia
 
  -ns
  http://www.roserox.co.th
 
 
  - Original Message -
  From: Steve Galyer [EMAIL PROTECTED]
  To: Multiple recipients of list delphi [EMAIL PROTECTED]
  Sent: Wednesday, October 17, 2001 6:47 AM
  Subject: Re: [DUG]: TNMSMTP
 
 
   Hi Patrick
  
   Relies on the system to dial.
  
   Regards
   Steve Galyer
  
  
   - Original Message -
   From: Patrick Dunford [EMAIL PROTECTED]
   To: Multiple recipients of list delphi [EMAIL PROTECTED]
   Sent: Wednesday, October 17, 2001 12:27 PM
   Subject: RE: [DUG]: TNMSMTP
  
  
We assume that you are referring to the default action that occurs
 when
  an
application requests Internet access. Such requests are
 handled by the
default dialler or whatever. MS Outlook uses its own dialler and can
override the settings for Internet Explorer or other applications.
   
Does your application use a dialup component, or does it rely on the
   system
to dial?
   
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Steve Galyer
 Sent: Wednesday, 17 October 2001 08:35
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: TNMSMTP


 Thanks Patrick  Nello but unfortunately neither of your
 suggestions
  are
 true. I have tried this approach already, anyway Outlook Express
 does
  an
 automatic dialup every 30 minutes which would suggest that these
   settings
 are OK. The problem occurs on several machines that I have tested
 under Win
 2000 (both Professional and Advanced Server), yet I run other
 software
 incorporating the same component on a few hundred other machines
 around the
 country without this kind of problem; however the existing version
 of
   the
 software does not run under MDAC 2.6 because of the ADO bug, so I
 have
   not
 exposed widely to Win 2000 before.

 Regards
 Steve Galyer


 - Original Message -
 From: Patrick Dunford [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2001 9:33 PM
 Subject: RE: [DUG]: TNMSMTP


  or set to Local Area Network instead
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On
   Behalf Of Nello Sestini
   Sent: Tuesday, 16 October 2001 20:37
   To: Multiple recipients of list delphi
   Subject: Re: [DUG]: TNMSMTP
  
  
   take a look at:
  
   settings | control panel | internet options | connections
  
   is never dial a connection selected here?
  
   if it is, try one of Dial whenever ... or Always dial ...
   and see if it affects the problem.
  
   -ns
   http://www.roserox.co.th
  
  
  
  
   - Original Message -
   From: Steve Galyer [EMAIL PROTECTED]
   To: Multiple recipients of list delphi
 [EMAIL PROTECTED]
   Sent: Tuesday, October 16, 2001 1:57 PM
   Subject: [DUG]: TNMSMTP
  
  
   I have a problem using the TNMSMTP component - under Win 95,
 98, ME the
   component will automatically initiate a dialup if not
 currently connect
 to
   the internet; but under Win 2000 it will not initiate a
 dialup - returns
   null remote address, but will use

RE: [DUG]: Really simple question

2001-10-15 Thread Patrick Dunford

By the way, the reply that he got appears to come from the Borland
newsgroups.

You  should be able to find them on your ISP's server with names starting
with borland

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Robert Martin
 Sent: Tuesday, 16 October 2001 11:11
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: Really simple question


 .. on behalf of Simon

 I have used the first solution below to implement multiple windows with
 their own taskbar tabs within one application. The problem I have is that
 when any of the child windows with their own tabs display a modal form (or
 dialog), the child window itself hides while the modal form is
 showing. How
 do I get around this?


 - Original Message -
 From: Edward Aretino [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Monday, September 24, 2001 6:21 PM
 Subject: Re: [DUG]: Really simple question


  Simple, but not exactly intuitive (btw, I use the second method)..
 
   From Peter Below :
  -
 
 
  If you want to have a separate taskbar button for each secondary window
 you
  have two options:
 
  1. override the CreateParams method of each secondary form and add the
  WS_EX_APPWINDOW style:
 
  procedure TForm2.CreateParams(Var params: TCreateParams);
 begin
   inherited CreateParams( params );
   params.ExStyle := params.ExStyle or WS_EX_APPWINDOW;
 end;
 
  If you click on a secondary forms taskbar button while another app is
  active this will still bring all the applications forms to front. If you
 do
  not want that there is option
 
  2. reparent the secondary forms to the desktop
 
  procedure TForm2.CreateParams(Var params: TCreateParams);
 begin
   inherited CreateParams( params );
   params.ExStyle := params.ExStyle or WS_EX_APPWINDOW;
   params.WndParent := GetDesktopwindow;
 end;
 
  Note that this can cause some problems with modal forms shown from
  secondary forms. If the user switches away from the app while a
 modal form
  is up and then back to the form that showed it the modal form may hide
  beneath the form. It is possible to deal with this by making sure the
 modal
  form is parented to the form that showed it (using params.WndParent as
  above) but this is not possible with the standard dialogs from
 the Dialogs
  unit and exceptions, which need more effort to get them to work right
  (basically handling Application.OnActivate, looking for modal forms
  parented to Application via GetLastActivepopup and bringing them to the
 top
  of the Z-order via SetWindowPos).
 
  Peter Below (TeamB)
 
 
 
 
  At 15:04 24/09/2001 +1200, you wrote:
  Hi Im sure this is a really simple question but I just cant remember...
  
  How do you set a new form (non modal) to have its own entry on the
 taskbar?
  
  TIA
  
  Robert Martin
  Software Engineer
  Wild Software Ltd
 
 
 --
 -
  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]: Renaming Folders in Windows

2001-10-14 Thread Patrick Dunford

ShFileOperation

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of David O'Brien
 Sent: Monday, 15 October 2001 14:58
 To: Multiple recipients of list delphi
 Subject: [DUG]: Renaming Folders in Windows


 Is there a simple function to do this? I can't find anything in either the
 D5 or Win32 help.


---
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]: Application.createform Vs. frm:=TForm.create

2001-10-14 Thread Patrick Dunford

Application.CreateForm is a method of TApplication that calls the
constructor (TForm.Create) of the form specified. The Application becomes
the form's owner.

Note: By default the form created by the first call to CreateForm in a
project becomes the application’s main form.

If you did not call Application.CreateForm in the project file then
presumably it would not know which is the main form.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of vss
 Sent: Monday, 15 October 2001 10:15
 To: Multiple recipients of list delphi
 Subject: [DUG]: Application.createform Vs. frm:=TForm.create


 Hi all.

 What is the difference of doing Application.createform as apposed
 to frm:=TForm.create ?

 I cant see any real advanatage in doing one over the other, but I could
 be wrong.

 Can anyone shed some light on this?

 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]: Renaming Folders in Windows

2001-10-14 Thread Patrick Dunford

Double backslash is needed in C style strings since the backslash acts as an
escape (for example \n is the carriage return character).

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of David O'Brien
 Sent: Monday, 15 October 2001 16:46
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Renaming Folders in Windows


 Why the double backslash?

 Dave.

 -Original Message-
 From: Sergei Stenkov [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 15, 2001 4:08 PM
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Renaming Folders in Windows


 Hi,

 RenameFile('c:\\1', 'c:\\2');

 Works fine for me.

 Sergei

  Doesn't appear to work. Any other suggestions?
 
  Dave.
 
  -Original Message-
  From: David O'Brien [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 15, 2001 3:14 PM
  To: Multiple recipients of list delphi
  Subject: RE: [DUG]: Renaming Folders in Windows
 
 
  Don't know, never thought of that, I'll give it a go.
 
  Ta,
  Dave.
 
  -Original Message-
  From: Stephen Bertram [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 15, 2001 3:09 PM
  To: Multiple recipients of list delphi
  Subject: RE: [DUG]: Renaming Folders in Windows
 
 
  Doesn't RenameFile() cover this ?
 
  Stephen
  --
  -
  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/


---
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]: Contracting issues - Comments please

2001-10-12 Thread Patrick Dunford



Iam having 
some difficulty in finding a contracting company in Christchurch totake 
over maintenance ofexisting work. These consist of four databases with 
Delphi applications for data entry, reporting etc. One of the databases is being 
turned into a web based application by another company. These are desktop 
databases, not client/server. They run on small office networks with less than 
10 workstations, and in few cases will there ever need to be simultaneous access 
to the data by more than one person.

When I first started 
in this business, there were four or five companies that I knew of personally 
that were doing this sort of thing. No longer. Every company that I knew that 
was doing job work is either full up and not taking new clients, or they have 
some flagship product that they are busy marketing and selling flat out and 
don't have the time for other work, or they have closed up their business and 
now work for someone else.

This is not 
necessarily the situation in Auckland and Wellington but it appears to be the 
situation in Christchurch for Delphi work. The choice to use Delphi over the 
other product systems available was not taken lightly. Once a commitment of this 
nature has been made it is costly and time consuming to 
reverse.

Given that most of 
the work is for inhouse applications, three possible lines of action suggest 
themselves:

1. Obtain the 
services of a contracting firm in another part of the 
country.

  You can only go 
  sofar with remote working, unless you have full administrative access to 
  the machines the softwareis running on.Someone would still have to 
  physically install and set up the software in the environment in which it is 
  being used.One of the problems we have encountered is that PC support 
  staffout there don't know anything about setting the BDE upon a 
  network system.
2. Develop 
in house

  This 
  option entails significant financial expense for the organisations involved in 
  purchasing and maintaining the software tools and theystill have to 
  bring in someone fromoutside to do the actual work. That person is 
  unlikely to have the experience and knowledge of an independent 
  contractor.
3. Port software to 
a different development environment.

  In the 
  circumstances thebasic database would probably be MS Access and the 
  Access report builder would be adequate for most reporting 
  requirements.VB or VC would besuitable fordata entry 
  applications which typically require rather more sophistication 
  thanAccess is capable of offering.
  
  This approach also 
  provides an upgrade path for existing MS Access databases which exist in the 
  client environments. Some of these would be better run on 
  VB/VC.
  
In regard to 
the above, I rather suspect that more of this low level in house stuff is 
already being done in MSAccess than any other database (how many people do you 
know that use Corel Paradox for their organisation's internal databases, huh?) 
and with it being the native database format for VB/VC it makes more sense to go 
down this path than to stick with Delphi, if we can't get anyone to handle the 
Delphi work.


Patrick 
Dunford
http://pdunford.godzone.net.nz/


RE: [DUG]: Windows Help macros (OT)

2001-10-11 Thread Patrick Dunford

If you want to open a URL just use ExecFile.

We use this for executing hyperlinks and it works just fine

e.g.
!ExecFile(http://www.delphi.org.nz/)


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ross Levis
 Sent: Thursday, 11 October 2001 18:01
 To: Multiple recipients of list delphi
 Subject: [DUG]: Windows Help macros (OT)


 Slighty off topic here.  I'm writing a help file for my delphi app and I
 want to add a hyperlink to my website.  I'm experimenting with
 ExecProgram which works like delphi's WinExec and requires an executable
 filename so doesn't accept a URL.  There doesn't appear to be anything
 equivalent to ShellExecute.  The FileOpen macro doesn't seem to work.

 Is there a standard way of doing this?

 I have discovered a way which appears to work OK
 ExecProgram('Explorer.exe  http://www.StationPlaylist.com', SW_SHOWNORMAL)

 Can anyone see any problems using Explorer.exe this way?  Will it work
 on all Win32 platforms?

 Cheers,
 Ross.

 --
 -
 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]: MDI

2001-10-09 Thread Patrick Dunford



Is it 
impractical to use a normal form parented onto a panel?

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Robert 
  MartinSent: Tuesday, 9 October 2001 17:27To: Multiple 
  recipients of list delphiSubject: [DUG]: MDI
  We have an MDI app where most of our forms are 
  maximised. When the user opens a non maximised child Windows 
  automatically changes all other forms to non maximised and reduces their 
  size. Does anyone know how to get around this behaviour?
  
  
  Robert MartinSoftware EngineerWild 
  Software Ltd


RE: [DUG]: Pascal / Delphi for Mac ????

2001-10-09 Thread Patrick Dunford

There are some C compilers around that work with both platforms, I
understand

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of vss
 Sent: Wednesday, 10 October 2001 14:52
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Pascal / Delphi for Mac 


 Well we have Virtual PC for the Mac's, BUT its quite exspensive..like
 about $500 I thinkwe need it for about 55 machinesso its not the
 BEST alternative.

 Jeremy Coulter

 -Original Message-
 From: Ross Levis [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Date: Wed, 10 Oct 2001 14:37:02 +1300
 Subject: RE: [DUG]:  Pascal / Delphi for Mac 

  Maybe Kylix would work under Mac Linux.
 
  Ross.
 
   -Original Message-
   From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On
   Behalf Of vss
   Sent: Wednesday, 10 October 2001 14:10
   To: Multiple recipients of list delphi
   Subject: [DUG]: Pascal / Delphi for Mac 
  
  
   HI. Does anyone know of a Delphi type app. for the Mac?
  
   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/


 --
 -
 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]: Executing URL

2001-09-25 Thread Patrick Dunford



Using the following 
code, it works fine on development system but on the system it is installed on, 
'Access denied' is returned.

They can click in a 
hyperlink in a web browser and it works file, however any type of URL passed in 
the function shown produces the error message.

procedure 
TMainForm.ExecURL(URL : string); //[2.4]var ExecError : 
integer; ExecErrorMessage : 
string;begin ExecError := 
ShellExecute(Mainform.Handle,PChar(''),PChar(URL), 
PChar(''),PChar(''),SW_SHOWNORMAL); if (ExecError = 32) then 
begin ExecErrorMessage := 
ShellExErrorToString(ExecError); 
MessageBeep(mb_ICONWARNING); 
MessageDlg(ExecErrorMessage,mtWarning,[mbOK],0); 
end;end;

function 
ShellExErrorToString(ShellExError:Integer):string;begin 
case ShellExError of 
ERROR_FILE_NOT_FOUND:Result:='File not found'; 
ERROR_PATH_NOT_FOUND:Result:='Path not found'; 
ERROR_BAD_FORMAT:Result:='Bad format'; 
SE_ERR_ACCESSDENIED:Result:='Access denied'; 
SE_ERR_ASSOCINCOMPLETE, 
SE_ERR_NOASSOC:Result:='File association missing or 
incomplete'; 
SE_ERR_DDEBUSY, 
SE_ERR_DDEFAIL, SE_ERR_DDETIMEOUT:Result:='DDE 
error'; SE_ERR_DLLNOTFOUND:Result:='DLL not 
found'; SE_ERR_OOM,0:Result:='Out of resources 
or memory'; SE_ERR_SHARE:Result:='Sharing 
violation'; else Result:='Unknown 
error'; end;end;



Patrick Dunford, Christchurch, New Zealand
http://pdunford.godzone.net.nz/




RE: [DUG]: Turning on/off another computer

2001-09-24 Thread Patrick Dunford

There are API functions in NT/2000 for it, otherwise you would need your own
client and server.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Moises Lopez
 Sent: Monday, 24 September 2001 17:07
 To: Multiple recipients of list delphi
 Subject: [DUG]: Turning on/off another computer


 Hi

 i have examples of how to shutdown and reboot a
 computer, is there a way i can do the same with
 another computer on the same network (any Win
 version).

 thnks
 moises

 __
 Do You Yahoo!?
 Get email alerts  NEW webcam video instant messaging with Yahoo!
 Messenger. http://im.yahoo.com
 --
 -
 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]: Metafile not valid

2001-09-23 Thread Patrick Dunford
Title: Message



How do 
you change the temp path in Windows 2000?

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of James 
  SugrueSent: Monday, 13 August 2001 14:35To: Multiple 
  recipients of list delphiSubject: RE: [DUG]: Metafile not 
  valid
  Just 
  to back up what Nello and Craig have said, I found this by searching Deja in 
  delphi.reporting-charting
  
  
  HelloI have experienced the same problem, and 
  resolved by changing temp file pathin Win2K.Please refer the following 
  suggestion.It is because QR cannot handle the length 
  of the default temp filepath in 
  Win2000. If you don't have the QR source code, change 
  yourwindows temp file path to 
  something shorter.
  

-Original Message-From: Mark Howard 
[mailto:[EMAIL PROTECTED]] Sent: Monday, 13 August 2001 
14:18To: Multiple recipients of list delphiSubject: 
Re: [DUG]: Metafile not valid
OK Craig and Nello

I'm going to be on site tomorrow and I'll check those 
suggestions.

Sorry, Nello, for dismissing the Temp directory pointer _ 
I did not realise that they were 'somehow connected'!

Thanks for the input.

Mark

  - Original Message - 
  From: 
  Nello 
  Sestini 
  To: Multiple recipients of list delphi 
  
  Sent: Monday, August 13, 2001 1:58 
  PM
  Subject: Re: [DUG]: Metafile not 
  valid
  
  Mark
  
  It would surprise meif the BDE version is in play 
  here (but being
  surprised often is one of the charms of this business 
  g )
  
  I vaguely recall that the "metafile problem" and the 
  "TEMP problem"
  are somehow connected.
  
  Some guesses to try ... 
  
  1. checking permissions on your TEMP directory to 
  insure you
   aren't having a problem accessing 
  it
  
  2.check that the path to your TMP and TEMP 
  dirs are not "too long"
  I think there is a problem about 
  this.
  
  -ns
  
  
- Original Message - 
From: 
Mark 
Howard 
To: Multiple recipients of list 
delphi 
Sent: Monday, August 13, 2001 8:36 
AM
Subject: Re: [DUG]: Metafile not 
valid

Nello
Can't find an update newer than the one I have (3.0.7) 
for QRStandard and D5.
There IS one for D6 but that is no good for 
me.
Curious thing is that I am running Win2000 Pro as my 
development machine, without this problem.

Question: If different workstations had 
different versions of the BDE installed could this cause the reported 
problem?

Mark

  - Original Message - 
  From: 
  Nello 
  Sestini 
  To: Multiple recipients of list 
  delphi 
  Sent: Monday, August 13, 2001 
  12:00 PM
  Subject: Re: [DUG]: Metafile not 
  valid
  
  around last May I remember reading about 2 QR 
  problems
  in Windows 2000. One had something to do 
  with TEMP files
  and this was the other one.
  
  ISTR QuSoft fixed both in a 2K update available on 
  their
  website. Probably worth a 
  look. (www.qusoft.com ?)
  
  -ns
  
- Original Message - 
From: 
Mark 
Howard 
To: Multiple recipients of list 
delphi 
Sent: Monday, August 13, 2001 
6:23 AM
Subject: [DUG]: Metafile not 
valid

Hi

Have a site running a a Windows LAN and my app 
based on Paradox.

They have recently upgraded one of their 
workstations to Win2000 Pro (and I suspect added some other 
software)

Now my app is generating an error message whenever 
this user previews a report and tries to view the second 
page.
The reports are QuickReports and the message is 
"Metafile not valid".

Has anyone come across this before or provide any 
insights as to where I might start looking?

TIA

Mark


RE: [DUG]: Q uickreports and Temp path (was Metafile not valid)

2001-09-23 Thread Patrick Dunford
Title: Message



Has 
anyone looked at the source code for correcting this issue, if they have the 
professional version?

We 
currently use 2.0 registered version for some some software. I did a search for 
GetTempPath in all of the source code and found only one file, 
QRPRNTR.PAS

There 
is a function in there defined as follows. This is the only reference to the API 
call in this unit.

function TempFilename : string;var AName, ADir : 
array[0..80] of char;{$ifndef win32} ADrive : 
char;{$endif}begin{$ifdef win32} GetTempPath(30, 
adir); GetTempFilename(aDir, PChar('QRP'), 0, 
aName);{$else} ADrive := GetTempDrive(ADrive); 
GetTempFilename(ADrive, PChar('QRP'), 0, aName);{$endif} result := 
StrPas(aName);end;


  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Patrick 
  DunfordSent: Monday, 24 September 2001 13:57To: Multiple 
  recipients of list delphiSubject: [DUG]: Q uickreports and Temp 
  path (was Metafile not valid)
  Is 
  there any Borland documentation for the Quickreport thing?
  
  Qusoft on their website says "We are not responsible 
  for the free version supplied with Delphi, Borland is" then on Borland's web 
  site, I can't find any documentation at all of the 
problem.
  
  Also 
  I am not very thrilled with Qusoft's explanation of the problem as saying 
  glibly that MS's long temp paths break lots of apps when all they had to do 
  was follow the API documentation. For the GetTempPath function it gives the 
  following:
  
  "If 
  the function succeeds, the return value is the length, in characters, of the 
  string copied to lpBuffer, not including the terminating null character. If 
  the return value is greater than nBufferLength, the return value is the size 
  of the buffer required to hold the path. "
  
  Buffer overruns are one of the most common errors 
  known to mankind :)
  
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of SammySent: 
Monday, 24 September 2001 06:39To: Multiple recipients of list 
delphiSubject: Re: [DUG]: Metafile not valid

Taken from Windows 2000 Help 

To 
add or change the values of environment variables

  Open System 
  in Control Panel. 
  On the Advanced tab, click Environment Variables, then 
  click the name of the user variable 
  or system variable you want to change, as follows: 
  
Click New to add a new variable name and value. 
Click Edit to change a current variable name and value. 
Click Delete to remove a variable name and value. 
  
Notes

  If you are not logged on as administrator 
  to the local computer, the only environment 
  variables you can change are user variables. 
  To 
  open a Control Panel item, click Start, point to Settings, 
  click Control Panel, and then double-click the appropriate 
  icon. 
  Windows2000 saves changes in the registry 
  so they are available automatically the next time you start your computer. 

  You may have to close and reopen running programs for the new settings 
  to take effect. 


Sammy !!

  - Original Message - 
  From: 
  Patrick Dunford 
  To: Multiple recipients of list delphi 
  
  Sent: Monday, September 24, 2001 1:31 
  AM
  Subject: RE: [DUG]: Metafile not 
  valid
  
  How do you change the temp path in Windows 
2000?
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On 
Behalf Of James SugrueSent: Monday, 13 August 2001 
14:35To: Multiple recipients of list 
delphiSubject: RE: [DUG]: Metafile not 
valid
Just to back up what Nello and Craig have said, 
I found this by searching Deja in 
delphi.reporting-charting


HelloI have experienced the same problem, 
and resolved by changing temp file pathin Win2K.Please refer the following 
suggestion.It is because QR cannot handle the 
length of the default temp filepath in Win2000. If you 
don't have the QR source code, change yourwindows temp file path to something 
shorter.

  
  -Original Message-From: Mark 
  Howard [mailto:[EMAIL PROTECTED]] Sent: Monday, 13 August 
  2001 14:18To: Multiple recipients of list 
  delphiSubject: Re: [DUG]: Metafile not 
  valid
  OK Craig and Nello
  
  I'm going to be on site tomorrow and I'll check 
  those suggestions.
  
  Sorry, Nello, for dismissing the Temp directory 
  pointer _ I did not realise that they were 'somehow 
  connected'!
  
  Thanks for the input.
  
  Mark
  
--

RE: [DUG]: Simulating a mouse click

2001-09-23 Thread Patrick Dunford

Do you need any of the standard shell functionality, if not then why not
make your program the shell?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Graham Mayes
 Sent: Thursday, 20 September 2001 12:16
 To: Multiple recipients of list delphi
 Subject: [DUG]: Simulating a mouse click


 Hi
 I am still stuck
 .. a desired action does not take place until form1 is clicked.
 I want this to take place automatically . . so
 from the help file..
The mouse_event function synthesizes mouse motion and button clicks.
 In the AppOnActivate I wrote
   mouse_event(
 MOUSEEVENTF_LEFTDOWN, // flags specifying various
 motion/click variants
 0,// horizontal mouse position or position change
 0,// vertical mouse position or position change
 0,// unused, reserved for future use, set to zero
 0 // 32 bits of application-defined information
);
 It works. (well messagebeep(0) in form1.click event says it does)
 But the desired action does not take place as it does when I physically
 click the form.

 Any ideas?

 __
 Graham Mayes

 http://www.answersoft.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]: closing modal form.

2001-09-18 Thread Patrick Dunford

Are you using a message box, or a form of your own that you have made modal?

If the latter, can you free the form and will it then go away?

I have the same problem in an app. It may be necessary to make the form
modal in some other way.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Matthew Comb
 Sent: Wednesday, 19 September 2001 09:16
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: closing modal form.


 thanks guys. Weird thing is I'm not doing any of those???



 - Original Message -
 From: Robert Martin [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Tuesday, September 18, 2001 4:05 PM
 Subject: Re: [DUG]: closing modal form.


  Setting modalresult to 0 will also not close the form.
 
  Robert Martin
  Software Engineer
  Wild Software Ltd
  - Original Message -
  From: Steve Peacocke [EMAIL PROTECTED]
  To: Multiple recipients of list delphi [EMAIL PROTECTED]
  Sent: Tuesday, September 18, 2001 3:54 PM
  Subject: RE: [DUG]: closing modal form.
 
 
   -- Original Message --
   Under what circumstances would it not close?
  
  
   1. Anytime during OnCreate
   2. if OnCloseQuery does not allow it
  
   Can't think of any more off hand.
  
   Steve
  
 
 
 --
  -
   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]: DsgnInft unit D5 Standard

2001-09-18 Thread Patrick Dunford



I'm updating a 
project from Delphi 3 to Delphi 5.

One of the components 
causes this error message at compile time:

"cannot find unit 
dsgnintf.dcu"

I checked and found 
only a dsgnintf.int file, not a dcu or pas. But Delphi 3 puts a Dsgnintf.dcu 
unit into its Lib directory.

The reference to 
DsgnIntf is made in the Register procedure, which for this component looks like 
this:

procedure 
Register;

implementation

usesDsgnIntf;

type{Design-time testing by Double-clicking or 
from popup menu take Test}{Added by Ahto 
Tanner}TDialogTest=class(TDefaultEditor)publicprocedure 
ExecuteVerb(Index: Integer); override;function GetVerb(Index: 
Integer): string; override;function GetVerbCount: Integer; 
override;procedure Edit; 
override;end;

constCUSTOM_BUTTON_ID=255;MAX_PATH_DISPLAY_LENGTH=35;



////procedure 
Register;beginRegisterComponentEditor(TBrowseFolder, 
TDialogTest); RegisterComponents('Dialogs', 
[TBrowseFolder]);end;

Is Borland in the 
habit of shipping DsgnIntf.dcu depending on the edition of Delphi? Using D5 
Standard edition.

========
Patrick Dunford, Christchurch, New Zealand
http://pdunford.godzone.net.nz/




RE: [DUG]: DsgnInft unit D5 Standard

2001-09-18 Thread Patrick Dunford

DsgnIntf is for registering component editors.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Eion McIntosh (Christchurch)
 Sent: Wednesday, 19 September 2001 11:47
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: DsgnInft unit D5 Standard


 I have found this also recently updating a D4 to D6 project and couldn't
 figure out where it came from as I hadn't seen this unit before either. It
 didn't show up in the original D4 uses clauses which I checked.
 So I decided
 it must be something new in the of the package units. I just
 deleted it and
 everything was then fine. Weird!!

 So what bugs me it that when this sort of error occurs my Delphi
 just tells
 me there is an error at compile time but doesn't tell me which
 unit or form.
 Its very annoying when you have lots for forms and you don't know
 which one
 it has appeared in!!

 Is there a setting somewhere I haven't got set to tell me which unit/form
 this error has actually occured in?

 Eion McIntosh
 PPCS Ltd

  -Original Message-
  From:   Patrick Dunford [SMTP:[EMAIL PROTECTED]]
  Sent:   Wednesday, 19 September 2001 11:28
  To: Multiple recipients of list delphi
  Subject:[DUG]:  DsgnInft unit D5 Standard
 
  I'm updating a project from Delphi 3 to Delphi 5.
 
  One of the components causes this error message at compile time:
 
  cannot find unit dsgnintf.dcu
 
  I checked and found only a dsgnintf.int file, not a dcu or pas.
 But Delphi
  3 puts a Dsgnintf.dcu unit into its Lib directory.
 
  The reference to DsgnIntf is made in the Register procedure, which for
  this component looks like this:
 
  procedure Register;
 
  implementation
  uses
   DsgnIntf;
 
  type
   {Design-time testing by Double-clicking or from popup menu take Test}
   {Added by Ahto Tanner}
   TDialogTest=class(TDefaultEditor)
   public
procedure ExecuteVerb(Index: Integer); override;
function GetVerb(Index: Integer): string; override;
function GetVerbCount: Integer; override;
procedure Edit; override;
   end;
 
  const
   CUSTOM_BUTTON_ID=255;
   MAX_PATH_DISPLAY_LENGTH=35;
 
 
 
 
 
 //
  //
  procedure Register;
  begin
   RegisterComponentEditor(TBrowseFolder, TDialogTest);
RegisterComponents('Dialogs', [TBrowseFolder]);
  end;
 
 
  Is Borland in the habit of shipping DsgnIntf.dcu depending on
 the edition
  of Delphi? Using D5 Standard edition.
 
  
  Patrick Dunford, Christchurch, New Zealand
  http://pdunford.godzone.net.nz/
 
 

 ##
 ###
 This e-mail message has been scanned for Viruses and Content
 ##
 ###
 --
 -
 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]: URL Link Checker

2001-09-09 Thread Patrick Dunford

It would depend on where the dialog originated from. In some cases where the
server requires the client to provide authentication, it sends back a header
like this:

WWW-Authenticate: Basic realm=My Realm
HTTP/1.0 401 Unauthorized

Typically this is used to authenticate access to a restricted part of a web
site on an HTTP server.

Most web browsers recognise this by popping up a dialog box asking for your
username and password. The browser then re-requests the same page passing
back the information from the dialog.

I don't know how proxy servers request authentication, whether they do it by
sending HTTP headers or what. If you are using an HTTP component to connect
then I would have assumed you could see the headers it sends back.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of C Fraser
 Sent: Monday, 10 September 2001 10:19
 To: Multiple recipients of list delphi
 Subject: [DUG]: URL Link Checker


 Hi all,

 I am trying to create a basic URL link checker... I have had some
 limited success...

 I can test the links on files in house and I would assume it would work
 if I was connected via dialup. But we use a proxy server to access the
 internet in the outside world. The proxy server requires me to logon.

 In FrontPage when I check the links (if I haven't logged onto the proxy
 yet) it pops up an error and then a logon dialog box.

 I can't find out how to do this in Delphi... I have tried a few of the
 internet API functions and done a scan on MSDN but haven't come up with
 anything...

 Just wondering if anyone has done this before or knows where I should
 head.

 Regards
 Colin


 ##
 Attention:
 The information in this email and in any attachments is confidential.
 If you are not the intended recipient then please do not distribute,
 copy or use this information. Please notify us immediately by return
 email and then delete the message from your computer.
 Any views or opinions presented are solely those of the author.
 ##
 --
 -
 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]: Hiding taskbar

2001-09-09 Thread Patrick Dunford

I normally hide the taskbar without bothering with Windows calls, by making
my app full screen.

I think all you have to do is to set the BorderStyle on your main form to
bsNone or bsSingle, from memory.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Graham Mayes
 Sent: Monday, 10 September 2001 16:56
 To: Multiple recipients of list delphi
 Subject: [DUG]: Hiding taskbar


 I have a programme in which hiding the taskbar is crucial.
 I use:
 ShowWindow((FindWindowEx(0, 0, PChar('Shell_TrayWnd'), PChar(''))),
 SW_HIDE);
 The above line of code is in  AppOnActivate   andFormActivate.

 My programme runs other programmes.
 When returning from other progammes, all is well, except for one, which
 displays an unwanted taskbar.

 How can this be with the above code attached to both the above events? Any
 ideas?

 __
 Graham Mayes
 8 Franklyn Close
 Wakefield
 http://www.answersoft.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]: Trapping ctrl+v

2001-09-06 Thread Patrick Dunford

Correct, CTRL is passed as one of the flags, it is V you are trapping.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Jeremy Coulter
 Sent: Friday, 7 September 2001 12:55
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Trapping ctrl+v


 AH...sorted it. I was thinking to myselfhang on. dont I need to trap
 BOTH the ctrl+v key combination as a VALUE ?

 In VB you go if key = vbKeyCtrl+vbKeyV then blah
 So I tride the delphi equiv. and I was rightlove being righthehehe

 Thanks, Jeremy Coulter

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Andrew Little
 Sent: Thursday, 6 September 2001 16:44
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: Trapping ctrl+v


 Hi,

 This is a bit clugie, but it seems to work :) There is probably an API
 hidden away some where.


 FCtrl: Boolean;
 FVKey: Boolean;

 ...

 procedure TForm1.Memo1KeyDown(Sender: TObject; var Key: Word;
   Shift: TShiftState);
 begin
   FCtrl := ssCtrl in Shift;
 end;

 procedure TForm1.Memo1KeyPress(Sender: TObject; var Key: Char);
 var
   pt: TPoint;
   s: string;
 begin
   FV := Key = #22;
   if FV and FCtrl then
   begin
  pt := (Sender as TMemo).CaretPos;
  s := (Sender as TMemo).Lines[pt.y];
  Insert('// this is a comment' + #$D#$A, s, pt.x);
  (Sender as TMemo).Lines[pt.y] := s;
   end;
 end;


 Hope this helps?
 Andrew.


 - Original Message -
 From: vss [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Thursday, September 06, 2001 3:52 PM
 Subject: [DUG]: Trapping ctrl+v


  HI All.
 
  I have a need to trap when someone does a paste into a control, so I can
  add some comments above the newly pasted text.
 
  What I am currently doing is if the press ctrl+v I get the line
 pos where
  the text is about to pasted to, then insert some text at that pos-1
 
  This does not quite work. I WOULD like to trap the event and do  what I
  need to.
 
  Can anyone give me some ideas ?
 
  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/


 --
 -
 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]: SQL Poser

2001-09-05 Thread Patrick Dunford



A very 
important point that can never be repeated too much:

It is 
absolutely imperative that when a table is posted a call is made to DbiSaveTable 
to flush the cache. On Windows 95 anyway, and there have been documented other 
issues on networks, and with Windows disk caching.

OTOH I 
have experienced few problems at a customer site, only the occasional server 
crash or in one instance a hard disk crash.

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Maurice 
  ButlerSent: Thursday, 6 September 2001 09:40To: Multiple 
  recipients of list delphiSubject: Re: [DUG]: SQL 
  Poser
  It pays to rebuild the indexes automatically on 
  startup of the first instance. ie. if you can get exclusive use of the table 
  when you start rebuild the indexes. This way any crashes, power offs etc are 
  automatically recovered from. This seems to required more often with paradox 
  then dbase. dbase has a slightly more complicated problem with indexes being 
  detached but this does not happen very often.
  
  Maurice
  
- Original Message - 
From: 
Mark 
Howard 
To: Multiple recipients of list delphi 

Sent: Thursday, September 06, 2001 8:06 
AM
Subject: Re: [DUG]: SQL Poser

Neven

Thanks! Rebuilt the Customer table and all was 
well.
Wonder how long it would have taken me to get to that 
solution. I thought screwed indexes always resulted in error 
messages. This sort of symptom is much more worrisome (resulting in 
people not getting invoiced).

Appreciate your help.

Mark

  - Original Message - 
  From: 
  Neven MacEwan 
  
  To: Multiple recipients of list delphi 
  
  Sent: Wednesday, September 05, 2001 
  5:20 PM
  Subject: Re: [DUG]: SQL Poser
  
  Mark
  
  SQL looks fine I'd say your indexes are 
  screwed
  
  Neven
  - Original Message - 
  
From: 
Mark 
Howard 
To: Multiple recipients of list 
delphi 
Sent: Wednesday, September 05, 2001 
5:15 PM
Subject: [DUG]: SQL Poser

Hi

This question relates to a Paradox database and a 
three table query: the main table is Dockets the other two (Forest and 
Customer) merely provide a look up to getForest and Customer 
names.

Trouble is as follows:
I can select from Dockets and return the correct 
number of dockets when I'm looking up either the Forest or the Customer 
but not both. But this ONLY happens for one specific 
customer.

The tests I have done, with the results, 
follow.

Can any one suggest what is happening here? I 
hope I have given enough information.

ANY suggestions will be appreciated.

TIA

Mark

selectD.DocketNo,D.ForCode,D.CustCodefrom 
Dockets D where D.DocketDate  
'07/01/2001'and D.CustCode = "HBERT"and 
D.ForCode = "MOCO"

Returns dockets
 
5589555899

Now lookup Customer 
nameselectD.DocketNo,D.CustCode,C.CustNamefrom 
Dockets D, Customer C where D.DocketDate 
 '07/01/2001'and D.CustCode = 
C.CustCodeand D.CustCode = "HBERT"

Returns dockets
5589555899

Now lookup Forest name 
insteadselectD.DocketNo,D.ForCode,F.ForNamefrom 
Dockets D, Forest F where D.DocketDate 
 '07/01/2001'and D.ForCode = F.ForCodeand 
D.ForCode = "MOCO"

Returns dockets 
..5589555899...

Now try to lookup both Customer AND Forest 
namesselectD.DocketNo,D.ForCode,F.ForName,D.CustCode,C.CustNamefrom 
Dockets D, Forest F,Customer C where 
D.DocketDate  '07/01/2001'and D.ForCode = 
F.ForCodeand D.CustCode = C.CustCodeand 
D.ForCode = "MOCO"

BOTH DOCKETS MISSING

selectD.DocketNo,D.ForCode,F.ForName,D.CustCode,C.CustNamefrom 
Dockets D, Forest F,Customer C where 
D.DocketDate  '07/01/2001'and D.ForCode = 
F.ForCodeand D.CustCode = C.CustCodeand 
D.CustCode = "HBERT"

BOTH DOCKETS MISSING



RE: [DUG]: SQL Poser

2001-09-05 Thread Patrick Dunford



To 
rebuild the indexes you can use the TTUtility component set from O2A www.o2a.com


  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Mark 
  HowardSent: Thursday, 6 September 2001 10:41To: Multiple 
  recipients of list delphiSubject: Re: [DUG]: SQL 
  Poser
  That's an interesting suggestion. But some 
  questions:
  Is this recommended practice?
  Does it slow down startup significantly (26 
  tables)
  What code do you use to see if you have exclusive use of 
  table?
  What do you use to rebuild the indexes - will DBIRestructure 
  do it?
  Mark
  
  
- Original Message - 
From: 
Maurice Butler 
To: Multiple recipients of list delphi 

Sent: Thursday, September 06, 2001 9:39 
AM
Subject: Re: [DUG]: SQL Poser

It pays to rebuild the indexes automatically on 
startup of the first instance. ie. if you can get exclusive use of the table 
when you start rebuild the indexes. This way any crashes, power offs etc are 
automatically recovered from. This seems to required more often with paradox 
then dbase. dbase has a slightly more complicated problem with indexes being 
detached but this does not happen very often.

Maurice

  - Original Message - 
  From: 
  Mark 
  Howard 
  To: Multiple recipients of list delphi 
  
  Sent: Thursday, September 06, 2001 
  8:06 AM
  Subject: Re: [DUG]: SQL Poser
  
  Neven
  
  Thanks! Rebuilt the Customer table and all was 
  well.
  Wonder how long it would have taken me to get to that 
  solution. I thought screwed indexes always resulted in error 
  messages. This sort of symptom is much more worrisome (resulting in 
  people not getting invoiced).
  
  Appreciate your help.
  
  Mark
  
- Original Message - 
From: 
Neven MacEwan 

To: Multiple recipients of list 
delphi 
Sent: Wednesday, September 05, 2001 
5:20 PM
Subject: Re: [DUG]: SQL Poser

Mark

SQL looks fine I'd say your indexes are 
screwed

Neven
- Original Message - 

  From: 
  Mark 
  Howard 
  To: Multiple recipients of list 
  delphi 
  Sent: Wednesday, September 05, 
  2001 5:15 PM
  Subject: [DUG]: SQL Poser
  
  Hi
  
  This question relates to a Paradox database and a 
  three table query: the main table is Dockets the other two (Forest and 
  Customer) merely provide a look up to getForest and Customer 
  names.
  
  Trouble is as follows:
  I can select from Dockets and return the correct 
  number of dockets when I'm looking up either the Forest or the 
  Customer but not both. But this ONLY happens for one specific 
  customer.
  
  The tests I have done, with the results, 
  follow.
  
  Can any one suggest what is happening here? I 
  hope I have given enough information.
  
  ANY suggestions will be appreciated.
  
  TIA
  
  Mark
  
  selectD.DocketNo,D.ForCode,D.CustCodefrom 
  Dockets D where D.DocketDate  
  '07/01/2001'and D.CustCode = "HBERT"and 
  D.ForCode = "MOCO"
  
  Returns dockets
   
  5589555899
  
  Now lookup Customer 
  nameselectD.DocketNo,D.CustCode,C.CustNamefrom 
  Dockets D, Customer C where 
  D.DocketDate  '07/01/2001'and D.CustCode = 
  C.CustCodeand D.CustCode = "HBERT"
  
  Returns dockets
  5589555899
  
  Now lookup Forest name 
  insteadselectD.DocketNo,D.ForCode,F.ForNamefrom 
  Dockets D, Forest F where D.DocketDate 
   '07/01/2001'and D.ForCode = 
  F.ForCodeand D.ForCode = "MOCO"
  
  Returns dockets 
  ..5589555899...
  
  Now try to lookup both Customer AND Forest 
  namesselectD.DocketNo,D.ForCode,F.ForName,D.CustCode,C.CustNamefrom 
  Dockets D, Forest F,Customer C 
  where D.DocketDate  '07/01/2001'and 
  D.ForCode = F.ForCodeand D.CustCode = 
  C.CustCodeand D.ForCode = "MOCO"
  
  BOTH DOCKETS MISSING
  
  selectD.DocketNo,D.ForCode,F.ForName,D.CustCode,C.CustNamefrom 
  Dockets D, Forest F,Customer C 
  where D.DocketDate  '07/01/2001'and 
  D.ForCode = F.ForCodeand D.CustCode = 
  C.CustCodeand D.CustCode = "HBERT"
  
  BOTH DOCKETS MISSING
  


RE: [DUG]: Quality Icons

2001-09-04 Thread Patrick Dunford

You install MS Office, screen dump their apps and make the bitmaps from the
dumps :)

Seriously I have found that the use of icons from MS applications is
extremely widespread.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Alan Rose
 Sent: Wednesday, 5 September 2001 09:49
 To: Multiple recipients of list delphi
 Subject: [DUG]: Quality Icons


 Hi, can someone recommend where I can purchase or download
 quality icons or
 bitmaps for buttons. Most sites I have found on the net are of
 poor quality.
 I am looking for a set that will give my application a consistent look.

 --
 -
 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]: System Tray app

2001-09-04 Thread Patrick Dunford

The one I have used which I am happy with is mdTrayIcon by Martin Djaernes.

You can make an application autohide to the system tray (like the Volume
Control popup adjustment) with the following code by firing the
Application.On Deactivate event, telling it to hide the main form. I suppose
setting the form to minimise first would produce the animated effect that
ZoneAlarm and other tray apps sometimes produce.

If you have a close button on the title bar and want to minimise to the
system tray when they click the close button (like ZoneAlarm does), use this
as an example:

1. Add a property to the form called PermitClose.
2. Set this to false in FormCreate
3. In the FormCloseQuery event handler, put this code:

   MainForm.Hide;
   CanClose := PermitClose;

4. In the private declarations of your form, put this procedure declaration

procedure EndSession(var Message : TMessage); message
WM_QUERYENDSESSION;

5. Here is the code of this procedure:

procedure TMainForm.EndSession(var Message : TMessage) ;
begin
   PermitClose := true;
   Message.Result := Integer(True);
end;

How does this work? The CloseQuery event procedure is called every time the
user tries to close the form. The default behaviour is to tell Delphi that
the application can't be closed, so the form appears to disappear to the
system tray.

The EndSession procedure is a message handler for the WM_QUERYENDSESSION
operating system message. Windows sends this message to each running
application whenever the user attempts to shut down, log off or restart
their computer. The message essentially asks the application whether it can
exit or not. It does not shut down the application at this point. If the
application returns false then Windows will not be shut down. Returning true
indicates the application can be exited.
The actual attempt to close the application will occur when the message
WM_ENDSESSION is sent by Windows, which occurs if all applications return
true.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ross Levis
 Sent: Wednesday, 5 September 2001 16:45
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: System Tray app


 Well I downloaded  installed RXLIB and setup a basic tray app.
 The EXE is
 299k - 12k larger than an empty form.  Doesn't seem too bad.  I'll keep an
 eye on that if I use other controls.

 Thanks for the info, however.

 Cheers,
 Ross.


 [EMAIL PROTECTED] wrote:
  You already have source on your pc that puts an icon into the
  tray area.
  Look at the source for the socket server (it's in the source\vcl
  directory).  Watch out using RXLib.  Last time I used it, it added
  tremendous bloat to the application because everything is so closely
  coupled.  That may have changed now though.
 
  JED
 
  I only want it to appear in the System Tray with a few
  right-click options
  like Enable/Disable, Exit etc.
 
 
 
  **
  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 [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/


---
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]: Shared BDE Setup

2001-09-02 Thread Patrick Dunford

There is a Delphi Informant article over here.
http://www.dbginc.com/whats_new/BDENet.html

This is possible, but not officially supported by Borland.

The local BDE install also known as a partial installation is not
recommended as it will cause problems if you have more than one application
that tries to use or install BDE.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Mark Derricutt
 Sent: Monday, 3 September 2001 09:46
 To: Multiple recipients of list delphi
 Subject: [DUG]: Shared BDE Setup


 I have a client that wants to setup a shared BDE for all their
 users, cause
 they don't want to install the software on every machine and have one
 standard configuration/setup.

 I was wondering how you do this?  Just looking at my registry I see a
 reference to the config file which I could easily point to the
 server, but
 then I see all these registry entries with configuration details of DB
 drivers, which I had assumed would have been in the .cfg.

 I remember these being an InstallShield option ages ago to do a local bde
 install which copied several files into your app dir and used its own bde
 rather than the system one, anyone got any details about how to do this?

 Mark


 --
 Mark DerricuttE-Mail:
 [EMAIL PROTECTED]
 Senior Delphi Developer
 ICQ: 19348533
 Time Disciple Ltd
http://www.timedisciple.com

 Vi de udødelige inviterer dere til å slå dere sammen med oss

---
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]: Shared BDE Setup

2001-09-02 Thread Patrick Dunford

I also have a file bdenet.zip that I downloaded from the Borland site, which
I assume is under the BDE part.

USEFULLNESS
---
  This example can be used to setup BDE client machines to point to
  a central set of BDE DLL and configuration files.  It allows easy
  updates to the BDE by having only one copy, therefore only needing
  to update one set of BDE DLLs. The registry functions can be easily
  called from within an installation program or in startup code of
  a program.  These methods will allow seamless installation of a BDE
  application with out the need for a separate BDE install.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Mark Derricutt
 Sent: Monday, 3 September 2001 09:46
 To: Multiple recipients of list delphi
 Subject: [DUG]: Shared BDE Setup


 I have a client that wants to setup a shared BDE for all their
 users, cause
 they don't want to install the software on every machine and have one
 standard configuration/setup.

 I was wondering how you do this?  Just looking at my registry I see a
 reference to the config file which I could easily point to the
 server, but
 then I see all these registry entries with configuration details of DB
 drivers, which I had assumed would have been in the .cfg.

 I remember these being an InstallShield option ages ago to do a local bde
 install which copied several files into your app dir and used its own bde
 rather than the system one, anyone got any details about how to do this?

 Mark


 --
 Mark DerricuttE-Mail:
 [EMAIL PROTECTED]
 Senior Delphi Developer
 ICQ: 19348533
 Time Disciple Ltd
http://www.timedisciple.com

 Vi de udødelige inviterer dere til å slå dere sammen med oss

---
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]: drive path extraction

2001-09-01 Thread Patrick Dunford

ExtractFilePath(Application.ExeName)


If you just want to find out which drive is a CDROM, call GetLogicalDrives
or GetLogicalDriveStrings and then call GetDriveType for each drive until
one comes back as a CD-ROM.



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of [EMAIL PROTECTED]
 Sent: Saturday, 1 September 2001 18:31
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: drive path extraction


 On Sat, 01 Sep 2001 12:51:35 +1200, you wrote:

 hi all i was wondering how do i extract the drive path so i can store
 it in a variable and use it for a install ie
 
 whatever:=extractdrivepath [code]
 
 ..
 what i mean is get the drive where the app is run from ie the cd rom
 as ppl have different amounts of drives and d:\ is not always the cd
 rom drive on all computers.

 ...
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]: drive path extraction

2001-09-01 Thread Patrick Dunford

ExtractDriveLetter, do I need to spell it out?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of [EMAIL PROTECTED]
 Sent: Sunday, 2 September 2001 15:26
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: drive path extraction


 On Sat, 1 Sep 2001 23:39:01 +1200, you wrote:

 ExtractFilePath(Application.ExeName)
 
 
 If you just want to find out which drive is a CDROM, call
 GetLogicalDrives
 or GetLogicalDriveStrings and then call GetDriveType for each drive until
 one comes back as a CD-ROM.
 
 
 
 thanx partick, but what i want is to find the path so i can run a app
 from a different directory on that drive where the orgional app is
 running

 ie say the app is running on e:\
 i want my app to extract that path e:\ in to a variable called drive
 so then i can go something like

 winexec(drive + 'apps\myapp.exe', sw_shownormal);


 ...
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]: Disappearing Components

2001-08-29 Thread Patrick Dunford

Try setting your hardware video acceleration to NONE and see what happens.
Let us know if that is any help.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Myles Penlington
 Sent: Thursday, 30 August 2001 10:49
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Disappearing Components


 How about a new kind of video driver bug ...
 Myles.

 -Original Message-
 From: James Sugrue [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 30 August 2001 10:39 a.m.
 To: Multiple recipients of list delphi
 Subject: [DUG]: Disappearing Components


 Has anyone had this before .

 Every now and then, in D6 (pro), some of the components disappear off the
 Component Bar. A reload seems to fix it, but I can't see why this would
 happen. I have had components appearing twice also, usually on
 the standard
 tab.

 I wonder if it's a bug, or something about my Machine (iPaq PIII 833 128MB
 NT4.0 SP6)
 --
 -
 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]: Lazarus

2001-08-27 Thread Patrick Dunford

When it was last raised in these pages there was a big discussion about
infringing Borland's copyright on Delphi.

I don't know but would be interested to find out what Borland thinks of this
project, one would have thought they would at the very least be protecting
their investment in Kylix.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Sandeep
 Sent: Tuesday, 28 August 2001 15:12
 To: Multiple recipients of list delphi
 Subject: [DUG]: Lazarus


 A delphi clone called Lazarus.

 http://www.lazarus.freepascal.org/about.php3?language=english







 Sandeep

 Software Developer
 CFL
 [EMAIL PROTECTED]
 http://www.cfl.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]: Lazarus

2001-08-27 Thread Patrick Dunford

And you are telling me that Borland have no commercial or copy rights over
the Delphi language? I find that very hard to believe.

Anyway it's more than K, LP is supposed to be able to be used to write
commercial applications for Windows.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Mark Derricutt
 Sent: Tuesday, 28 August 2001 15:56
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Lazarus


 From memory, no borland code was used anywhere in the Lazarus libs, only
 the event names/methods are the same.  Lazarus was also available before
 Kylix was released, and I'm sure Borland knew about it then, so who knows
 what they think of it.



 --On Tuesday, 28 August 2001 3:32 p.m. +1200 Patrick Dunford
 [EMAIL PROTECTED] wrote:

  I don't know but would be interested to find out what Borland thinks of
  this project, one would have thought they would at the very least be
  protecting their investment in Kylix.



 --
 Vi de udødelige inviterer dere til å slå dere sammen med oss

 --
 -
 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]: xfer between PCs

2001-08-26 Thread Patrick Dunford



Have 
you copied all your registry settings

One 
lot are under HKEY_LOCAL_MACHINE\SOFTWARE\Borland
Then 
for each user you log on as that user and go to 
HKEY_CURRENT_USER\Software\Borland

MS 
Dependency Walker is pretty good at resolving dependent libraries (things that 
might be installed into C:\Windows)

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Neven 
  MacEwanSent: Monday, 27 August 2001 11:34To: Multiple 
  recipients of list delphiSubject: Re: [DUG]: xfer between 
  PCs
  Further to my mail below
  
  I've actually got pretty close D5 fires up but 
  I've lost all the Packages/Palete Setup
  
  Neven
  
- Original Message - 
From: 
Neven MacEwan 

To: Multiple recipients of list delphi 

Sent: Monday, August 27, 2001 11:13 
AM
Subject: [DUG]: xfer between PCs

Hi all

This is not a piracy question but a legit 
situation

I'm setting up my new PC (Athlon 1333, 640Mb 
Ram) but in xfering software I have found
that someone in labelling all our CD's has 
unfortunately xferred my D5 CD into a Jewel Case
and the rego's gone west, Can I transfer D5 from 1 PC to another without 
reinstalling?

TIA

Neven





RE: [DUG]: Wrap text

2001-08-25 Thread Patrick Dunford

You can wrap text yourself in a TStringGrid. I did this once in a project.

The way it was implemented was to have a TMemo the same width as the column
I want to put my text into, place the text in the Text property then read
off the Lines[0] and Lines[1] to get the two lines if it has wrapped around,
and put these yourself into two consecutive lines on the StringGrid. If the
user clicks on one line you change the highlight so that both lines are
selected instead.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Mike Osborne
 Sent: Saturday, 25 August 2001 13:49
 To: Multiple recipients of list delphi
 Subject: [DUG]: Wrap text


 I have a text field that could have entries with more text than I
 can fit in
 the column width I have available.

 Is there a way of wrapping text in a DB Grid?

 If not, can it be done in a String/Draw Grid?

 Or perhaps there is a 3rd-party grid that can do this???

 Or any other relevant suggestions?

 --
 -
 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]: Application.processmessages

2001-08-21 Thread Patrick Dunford

The only reason you should have problems like this with included units is if
you are using classes that are in the units. In this case, TApplication
class, which I thought was actually part of an application anyway.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of vss
 Sent: Wednesday, 22 August 2001 09:58
 To: Multiple recipients of list delphi
 Subject: [DUG]: Application.processmessages


 Hi All.

 Has anyone got or know of a Lite version of appliction.processmessages ?
 When I say Lite what I mean is, that I hav an COM DLL that I wrote that
 needs to use appliction.processmessages. BUT the proble3m is, that I need
 to include FORMS.PAS in the unit. With out it, 102kb...wit it 315kb !
 ok, its not a  major thing, BUT it seems a lot of extra overhead I dont
 need.
 I know I could extract the code I need from froms, but befoe I do, I just
 wanted to check that there was nothing elase around to save e a job.

 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/



[DUG]: Modal Dialogs

2001-08-19 Thread Patrick Dunford





Is there any way of 
recalling a modal dialog once it has been shown?


Patrick Dunford, Christchurch, New Zealand
http://pdunford.godzone.net.nz/




RE: [DUG]: Forms in DLL (again?)

2001-08-06 Thread Patrick Dunford

This is referring to a modal dialog that goes up with a ShowModal call.

I guess this bug might have been fixed in a later version of Delphi.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ross Levis
 Sent: Monday, 6 August 2001 21:04
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: Forms in DLL (again?)


 Not if you activate it with ShowModal as Alex mentioned.

 Ross.

 Patrick Dunford wrote:

  What you have described occurs with all dialog boxes, DLL or not.
 
  Press Alt-Tab to get back to where you want to be.
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
   Behalf Of Alex Kouznetsov
   Sent: Monday, 6 August 2001 16:02
   To: Multiple recipients of list delphi
   Subject: [DUG]: Forms in DLL (again?)
  
  
   I have a DLL with the dialog box in it.
   I am creating that box as TForm1.Create (Application) and then do
   ShowModal.
   Application object inside DLL seems to be pointing to the calling
   application. It holds the title and the path of calling exe.
  
   If I have that DLL box on top of my application, and then activate my
   application by clicking its button on W2K task bar, DLL box goes
   behind the
   application window, which in turn becomes unusable as focus at
   that stage is
   still kind of on the vanished DLL box.
  
   Any ways around it ?
  
   Regards
   Alex
  
   --
   -
   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]: Forms in DLL (again?)

2001-08-05 Thread Patrick Dunford

What you have described occurs with all dialog boxes, DLL or not.

Press Alt-Tab to get back to where you want to be.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Alex Kouznetsov
 Sent: Monday, 6 August 2001 16:02
 To: Multiple recipients of list delphi
 Subject: [DUG]: Forms in DLL (again?)
 
 
 I have a DLL with the dialog box in it.
 I am creating that box as TForm1.Create (Application) and then do 
 ShowModal.
 Application object inside DLL seems to be pointing to the calling
 application. It holds the title and the path of calling exe.
 
 If I have that DLL box on top of my application, and then activate my
 application by clicking its button on W2K task bar, DLL box goes 
 behind the
 application window, which in turn becomes unusable as focus at 
 that stage is
 still kind of on the vanished DLL box.
 
 Any ways around it ?
 
 Regards
 Alex
 
 --
 -
 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]: For loop

2001-08-04 Thread Patrick Dunford



No. 
Use a repeat or while loop.

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy 
  CoulterSent: Saturday, 4 August 2001 15:22To: Multiple 
  recipients of list delphiSubject: [DUG]: For 
  loop
  Hi all. Is there 
  away in Delphi to do a for loop with STEP in it ?
  
  I..e in VB you can 
  go 
   
  for x=1 to 10 step 2
  
  I wonder if there 
  is a way in delphi too?
  I have had a look 
  in the help, but did not see anything obvious.
  
  Cheers, Jeremy 
  Coulter


RE: [DUG]: ComboBox help

2001-08-02 Thread Patrick Dunford

The DropDownList style is for a fixed list of items. The Text property only
applies to the style of combobox where the user can actually type text in at
the top and it doesn't have to be an item in the list. with DropDownList the
item they choose has to be one in the list so they can't type in something
that isn't in the list.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ross Levis
 Sent: Thursday, 2 August 2001 13:36
 To: Multiple recipients of list delphi
 Subject: [DUG]: ComboBox help


 I must be missing something.

 I need a ComboBox which is ReadOnly but also allows the text (or
 selected item) to be assigned via code.  eg. Providing a default.
 Currently when Style is csDropDownList, the Text property can not be
 assigned.  What am I missing!

 Cheers,
 Ross.

 --
 -
 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]: Posting Mail

2001-08-02 Thread Patrick Dunford

Hmm yes, a certain service I subscribe to does this auto - I know it took
someone off a group I run because they had 400 messages bounced.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Stephen Barker
 Sent: Thursday, 2 August 2001 13:51
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Posting Mail


 Rohit,

  I note that any mail I post from home is being rejected again.
 
  I would appreciate it if you would just confirm that the
  following can
  post mail to the DUG
 
  [EMAIL PROTECTED]

 yes

  [EMAIL PROTECTED]

 yes

  [EMAIL PROTECTED]

 yes

 They are all on the list. At present we manually remove entries from the
 list following a review of the admin mailbox from time to time for errors
 like recipient unknown at destination or similar. It would be nice to
 automate this and do MX checking on all list members periodically
 to see if
 their address is still alive. Suggestions anyone?

 regards,
 Steve.




 
 
  Thanks
  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/


---
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]: LCK files

2001-08-02 Thread Patrick Dunford

The old way is to call DbiSaveTable each time the table is posted.

Absolutely essential in fact, I have found on numerous occasions that
without it, data loss is almost routine on average Win95 type machines.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of James Sugrue
 Sent: Thursday, 2 August 2001 14:01
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: LCK files


 Try looking up FlushBuffers in the help.

 Questions :
 1.  Is there a way to flush the cache say on exiting the app? 2.  Failing
 that, where does one 'back-off' the windoze cacheing?

 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/



RE: [DUG]: Delphi to Interbase access options

2001-08-02 Thread Patrick Dunford



Other - 
could include the free Zeos components. I haven';t used the IB ones much, only 
the PostgreSQL ones.

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Robert 
  MartinSent: Thursday, 2 August 2001 17:07To: Multiple 
  recipients of list delphiSubject: [DUG]: Delphi to Interbase access 
  options
  
  Are there any white papers or other documented 
  comparisons of the different data access options available in Delphi 6 
  specific to Interbase 6 connectivity.
  
  Options being considered are:
   Interbase Express 
  (IBX)
   dbGo - ADO 2.5
   BDE
   dbExpress
   ODBC
   Other ?
  
  Comparativeinformation sought 
  includes:
   Stability
   Performance
   Functionality (data 
  access and data administration)
   Deployment
  
  
  On behalf of Simon L
  
  Robert MartinSoftware EngineerWild 
  Software Ltd


RE: [DUG]: SplashScreen

2001-07-31 Thread Patrick Dunford

As soon as it is shown, call the Update method and/or
Application.ProcessMessages

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ross Levis
 Sent: Tuesday, 31 July 2001 22:19
 To: Multiple recipients of list delphi
 Subject: [DUG]: SplashScreen


 This may have been covered before but, I can't get a splashscreen to
 display it's contents properly on the screen while it's busy loading
 files etc.  I get the basic outline of the form but it doesn't paint
 anything except for an indented panel.  I presume the app is too busy to
 let Windows draw the screen properly.  Any ideas?

 Cheers,
 Ross.

 --
 -
 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]: RICHEDIT CaretPos := xxx

2001-07-29 Thread Patrick Dunford

Use SelStart  SelLength ?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Rohit Gupta
 Sent: Sunday, 29 July 2001 16:23
 To: Multiple recipients of list delphi
 Subject: [DUG]: RICHEDIT CaretPos := xxx
 
 
 How do I set the caret position on a particular line in a Trichedit ?
 
 CaretPos gives me the position of teh caret in lines/columns but its read
 only.
 
 --
 -
 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]: SQL Update question

2001-07-26 Thread Patrick Dunford

MS Jet Error Reference

Operation must use an updatable query. (Error 3073)

You tried to run, open, or modify a query that isn't updatable.
Possible causes:

*   You attempted to run a query that tried to update a field that can't be
updated. For example, you may have created the query in such a way that you
tried to update a field on the one side of a one-to-many relationship.
*   You tried to use the obsolete OpenQueryDef method on a query that is in a
database opened for read-only access.

* The database is read-only for one of the following reasons:

*   You used the OpenDatabase method or the Visual Basic Data control, and
opened the database for read-only access.
*   The database file has been defined as read-only in your network operating
system.
*   In a network environment, you don't have write privileges for the database
file.

Close the database, resolve the read-only condition, and then reopen it for
read/write access.

*   You don't have permission to make changes to the query. To change your
permission assignments, see your system administrator or the query's
creator.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Steve Galyer
 Sent: Thursday, 26 July 2001 09:30
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: SQL Update question


 Thanks for the ideas BUT

 TADOCommand has the same problem

 Have tried the same query in Access in it also has the same
 problem - so the
 problem is with the Jet Engine - any experts on this out there.

 Steve Galyer

 - Original Message -
 From: Neven MacEwan [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Wednesday, 25 July 2001 17:21
 Subject: Re: [DUG]: SQL Update question


  Steve
 
  Ah! I thought you were using SQL :-)
  Firstly since it doesn't return a result set use a TADOCommand (not
  TADOQuery)
  Secondly I'd try the update syntax from within Access (As the Jet Engine
 has
  some strange SQL)
 
  HTH
 
  Neven
 
  - Original Message -
  From: Steve Galyer [EMAIL PROTECTED]
  To: Multiple recipients of list delphi [EMAIL PROTECTED]
  Sent: Wednesday, 25 July 2001 16:49
  Subject: Re: [DUG]: SQL Update question
 
 
   Underlying database is MS Access97 accessed via TADOQuery
 (ADO Express)
   using Jet 4.
  
   RequestLive is not a property of TADOQuery.
  
   ExecSQL comes back with the same error.
  
   I want to perform the operation over the entire database.
  
   - Original Message -
   From: Neven MacEwan [EMAIL PROTECTED]
   To: Multiple recipients of list delphi [EMAIL PROTECTED]
   Sent: Wednesday, 25 July 2001 16:51
   Subject: Re: [DUG]: SQL Update question
  
  
Steve
   
You probably have RequestLive and are Opening the query where
you should be using ExecSQL, What connection method are
you using? Also you should paramerise ClientNumber as you
are updating the whole database (triggers would be easier)
   
HTH
   
Neven
   
   
- Original Message -
From: Steve Galyer [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
Sent: Wednesday, 25 July 2001 16:30
Subject: Re: [DUG]: SQL Update question
   
   
 This comes back with an error Operation must use an updateable
 query


 - Original Message -
 From: Neven MacEwan [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Wednesday, 25 July 2001 16:34
 Subject: Re: [DUG]: SQL Update question


  Steve - 3 things
 
  1/ count(*) is prob safer
  2/ brackets in the wrong place
  3/ Semicolon?
 
  Try
 
  UPDATE CLIENT
  SET CLIENT.CardIssuedTotal =
  (SELECT COUNT(*)
  FROM CARD
  WHERE CLIENT.ClientNumber = CARD.ClientNumber)
 
  Have you considered doing it in a trigger on CARD?
 
  HTH
 
  Neven
 
 
 
  - Original Message -
  From: Steve Galyer [EMAIL PROTECTED]
  To: Multiple recipients of list delphi [EMAIL PROTECTED]
  Sent: Wednesday, 25 July 2001 15:47
  Subject: [DUG]: SQL Update question
 
 
  I have a Client table and a Card table, each client can have any
   number
of
  cards, what I am attempting to achieve is to update a
 field in the
Client
  table called CardIssuedTotal with the count of the cards
 associated
   with
  that client.
 
  I am using the following SQL statements, however I am getting an
  error
  Parameter CARD.CardNumber has no default value
 
  UPDATE CLIENT
 
  SET CLIENT.CardIssuedTotal =
 
  (SELECT COUNT(CARD.CardNumber)
 
  FROM CARD
 
  GROUP BY CARD.ClientNumber)
 
  WHERE (CLIENT.ClientNumber = CARD.ClientNumber);
 
  Any assistance appreciated.
 
 
 
  Steve Galyer
 
 
 

   
  
 
 
 

[DUG]: Contractor wanted Christchurch [2]

2001-07-26 Thread Patrick Dunford




A community 
organisation requires a programmer to maintaintwodatabases and their 
Delphi software on as-required 
basis.Optionally also a number of MS 
Access databases, plus macro programming in Excel and Word. Christchurchcity.

Please replyby 
personal e-mail.


[DUG]: Contractor wanted Christchurch [1]

2001-07-26 Thread Patrick Dunford



A community 
organisation requires a programmer to maintaintwodatabases and their 
Delphi software on as-required basis. Christchurch city.

Please replyby 
personal e-mail.


[DUG]: Default Exception Handler

2001-07-22 Thread Patrick Dunford



Since Delphi 5 I am 
finding that my applications no longer display the default exception message 
dialog when an unhandled exception occurs in the 
application.

It seems I have to 
write an exception handler for Application.OnException, or did I miss 
something?




RE: [DUG]: Quick report buttons

2001-07-18 Thread Patrick Dunford

Don't know but if you create your own preview form with the preview
component you can put any buttons you want on it

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of John Christenhusz
 Sent: Wednesday, 18 July 2001 14:04
 To: Multiple recipients of list delphi
 Subject: [DUG]: Quick report buttons


 Hi,

 With Quick report, is there any way of disabling the top row buttons (all
 except the print  close button) in the preview?

 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/



RE: [DUG]: Destroying Objects

2001-07-18 Thread Patrick Dunford

Doesn't the owner destroy all components it owns? Even ones you create
yourself?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of James Low
 Sent: Thursday, 19 July 2001 12:34
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Destroying Objects


 I think (with few if any exceptions) the rule is that if you
 programatically
 create the object, you destroy it. Visible components are
 destroyed by their
 owner (unless you have created them (I think)).

 -Original Message-
 From: Ross Levis [mailto:[EMAIL PROTECTED]]
 Sent: 19 July 2001 12:26
 To: Multiple recipients of list delphi
 Subject: [DUG]: Destroying Objects


 A simple question.

 When an application exits in the normal way, does it automatically
 destroy all objects created at runtime?

 Cheers,
 Ross.


 --
 -
 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]: Key Violation

2001-07-16 Thread Patrick Dunford



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of James Sugrue
 Sent: Tuesday, 17 July 2001 13:59
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: Key Violation


 Sounds like the problem was due to a system crash when the
 program was open.
 We get this quite a bit.

 One (ugly) fix is to change the AutoInc field to an Integer field and save
 the table. Then go back and change it back to an AutoInc and save and pack
 the table. This resets the AutoInc field to the last number +1, and should
 allow posting to the table again.

only if there's no foreign key in another table 


---
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]: Cannot run Delphi 5 in Hi-Resolution

2001-07-12 Thread Patrick Dunford



Maybe 
it has an S3 video card?

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Bob 
  OsbornSent: Thursday, 12 July 2001 17:08To: Multiple 
  recipients of list delphiSubject: Re: [DUG]: Cannot run Delphi 5 in 
  Hi-Resolution
  You may need to turn the graphics hardware 
  acceleration off on your machine. You do this from the control panel 
  Display/Settings/Advanced/Performance. Ihad similar problems on a 
  particular machine with D4.
  
  
  Bob 
  
- Original Message - 
From: 
Dedy Darmayanto 
To: Multiple recipients of list delphi 

Sent: Thursday, July 12, 2001 1:57 
PM
Subject: [DUG]: Cannot run Delphi 5 in 
Hi-Resolution

I have just installed Delphi-5 Enterprise in 
Win98 SE,

It was running well when I was set the 
resolution to 600x480 with 16 color.

But when the resolution changed to 800x600 with 
65536 color, Delphi-5 cannot run alsowindow was stopped.

Any body know what was happened in my Delphi or 
Windows

Regards,
Dedy



RE: [DUG]: Cannot run Delphi 5 in Hi-Resolution

2001-07-12 Thread Patrick Dunford



As I 
recall, the specifics of the problem are how the drivers handle the video card's 
memory becoming full.

The 
most commonproblem that is seenis with icons (for example the VCL 
component icons). Over a certain number of icons they eitherstart to draw 
funny, or your PC just locks up. You may find that you install a new 
componentpackage and then the next time you run Delphi, your PC 
locksup.

To be 
able to run Delphi at all on my PC (S3 Virge) beyond a certain number of 
installed components, HW acceleration has to be set to 
None.

It 
affects Delphi more than MS applications because Borland used the API calls that 
MS said they should use, only to find that MS uses different calls in their 
programs :)

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Matthews, 
  LeonSent: Friday, 13 July 2001 10:59To: Multiple 
  recipients of list delphiSubject: RE: [DUG]: Cannot run Delphi 5 in 
  Hi-Resolution
  Its 
  not a problem with Delphi Dedy, but a problem with your Video card / 
  Drivers...
  As 
  Patrick intimated, a lot of S3 video cards have trouble with the large number 
  of image lists that the Delphi IDE uses. I had to replace the onboard S3 
  on one of our machines with a Matrox because of this issue a few months 
  ago...
  
   
  -- Leon
  
-Original Message-From: Dedy Darmayanto 
[mailto:[EMAIL PROTECTED]]Sent: Friday, 13 July 2001 
10:48To: Multiple recipients of list delphiSubject: 
Re: [DUG]: Cannot run Delphi 5 in Hi-Resolution
Thank's Bob
I have tried and the problem was 
solved
But, why Delphi does not work with hardware 
graphic acceleration ?

Dedy,


  - Original Message - 
  From: 
  Bob 
  Osborn 
  To: Multiple recipients of list delphi 
  
  Sent: Thursday, July 12, 2001 12:08 
  PM
  Subject: Re: [DUG]: Cannot run Delphi 
  5 in Hi-Resolution
  
  You may need to turn the graphics hardware 
  acceleration off on your machine. You do this from the control panel 
  Display/Settings/Advanced/Performance. Ihad similar problems 
  on a particular machine with D4.
  
  
  Bob 
  
- Original Message - 
From: 
Dedy Darmayanto 
To: Multiple recipients of list 
delphi 
Sent: Thursday, July 12, 2001 1:57 
PM
Subject: [DUG]: Cannot run Delphi 5 
in Hi-Resolution

I have just installed Delphi-5 Enterprise 
in Win98 SE,

It was running well when I was set the 
resolution to 600x480 with 16 color.

But when the resolution changed to 800x600 
with 65536 color, Delphi-5 cannot run alsowindow was 
stopped.

Any body know what was happened in my 
Delphi or Windows

Regards,
Dedy



RE: Listbox items (Was: Re: [DUG]: array of TStringList)

2001-07-10 Thread Patrick Dunford

In my app I handled this (in a TListView) by writing an event handler for
the OnDeletion event. This allowed me to call the Clear method freely
without worrying about memory.

Referring to my previous code, this is the event handler:

procedure TMainForm.ServicesListDeletion(Sender: TObject; Item: TListItem);
var PLong:PLongInt;
//This event handler frees the dynamic variables allocated when the list
items were
//created. These variables are pointed to by each list item's Data property.
begin
 PLong:=PLongInt(Item.Data);
 if PLong  nil then
Dispose(PLong);
end;

Unfortunately there does not appear to be a similar way of handling the
deletion of items in a list or combo box.

In a TList as I noted you can simply override the destructor. Here is the
class I used in a reporting system:

TCounterList = class(TList)
[...]
   destructor Destroy; override;
   procedure Empty;
end;

and its implementation

destructor TCounterList.Destroy;
begin
Empty;
inherited Destroy;
end;

procedure TCounterList.Empty;
begin
while (Count 0) do begin
Items[Count-1].Free;
Delete(Count-1);
end;
end;

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Paul Lowman
 Sent: Wednesday, 11 July 2001 09:29
 To: Multiple recipients of list delphi
 Subject: Re: Listbox items (Was: Re: [DUG]: array of TStringList)


 Ross

 Delphi definitely does not free objects when the list is free'ed.
 So beware
 !

 Paul Lowman

 Lowman Consulting Ltd.
 Embedded Systems  Software

 [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: Listbox items (Was: Re: [DUG]: array of TStringList)

2001-07-08 Thread Patrick Dunford

It would be a fair assumption though
(a) to use TCollectionItem practicably you will be creating a derivative
class
(b) it is designed more for use with visual components that have a component
editor at design time and is used in conjunction with various types of
visual components.



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Dennis Chuah
 Sent: Monday, 9 July 2001 10:56
 To: Multiple recipients of list delphi
 Subject: RE: Listbox items (Was: Re: [DUG]: array of TStringList)



  To get around this little problem when you need to keep lists of objects
  created dynamically, Delphi provides the TList class. You can use
  a TList or
  make a derivative from it. It would be usual to override the
 destructor to
  ensure all the memory is freed in your objects.

 In that case, I would strongly suggest you use TCollection instead as it
 maintains its items and will free them when deleted.

 Regards,
 Dennis.

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, 7 July 2001 00:32
  To: Multiple recipients of list delphi
  Subject: RE: Listbox items (Was: Re: [DUG]: array of TStringList)
 
 
  Some understanding here is useful.
 
  It is not possible to create numerous objects with the same name.
 
  When you create an instance of a class (an object) you are doing several
  things:
  1. Delphi reserves some memory for you
  2. Delphi gives you in the variable on the left hand side, a
 reference to
  that piece of memory.
 
  If you then create another instance of the object using the
 same variable
  name, you have lost access to the bit that you had before. it is
  still there
  but you have no way of accessing it, because the variable now
  points to the
  new bit you got. You can do this ten times but at the end you will still
  only be able to access the last bit.
 
  To get around this little problem when you need to keep lists of objects
  created dynamically, Delphi provides the TList class. You can use
  a TList or
  make a derivative from it. It would be usual to override the
 destructor to
  ensure all the memory is freed in your objects.
 
  Now, when using a TList the above steps become:
 
  1. Delphi reserves some memory for you
  2. Delphi gives you in the variable on the left hand side, a
 reference to
  that piece of memory.
  3. You add the value of that variable to a TList object.
 
  Then you can use the methods of TList to access all those
 dynamic objects
  you have created. In the days before OO we used to use linked lists of
  pointers to do the same thing. Compared to that a TList is a doddle.
 
  Addressing to your particular situation. A record is not an object. A
  Tobject is an object.
 
  I used to use records until I discovered how to use TList to
 link a whole
  lot of dynamically created objects. To give an example I have
 just updated
  an application that uses counters to count numbers in a big
 report, and do
  various calculations etc. It used to use various TStringLists
 to store all
  the counters. I updated it to use OO stuff. This is good
 because there are
  two different types of counter and one is a subclass of the other.
 
  All you have to do is:
  * Create an instance of your object e.g. MyObject := TMyObject.Create
  * Do something with it...set the fields or something
  * Add it to the Objects property of the list box items (which
 is probably
  implemented as a TList) . No typecast needed since everything
 is descended
  from TObject.
 
  Now you can safely reuse MyObject to create another instance, as the
  reference is now saved in the list box. (Don't free it though,
 as it still
  points to an instance, but if you wish you can set it to nil without
  affecting any instances of your object)
 
  When you have to do something with your object, it looks like this:
 
  MyObject := TMyObject(ListBox1.Items.Objects[X]
 
  You have to typecast it because Delphi stores it as a TObject and
  won't let
  you access any of the methods or properties other than for a
  TObject, if you
  don't do the typecast, also you will get an invalid type
 error from the
  compiler.
 
  Note that the Objects property still contains the reference until
  that list
  item is deleted.The question I am not at all sure about is
 whether Delphi
  frees the memory associated with each object reference when the
  list item is
  removed from the list.
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
   Behalf Of Ross Levis
   Sent: Friday, 6 July 2001 23:33
   To: Multiple recipients of list delphi
   Subject: Re: Listbox items (Was: Re: [DUG]: array of TStringList)
  
  
   Thanks James, Ben  Reg.  It's looks rather messy to me.  I
   didn't realise you
   can create numerous duplicate objects with the same name.  Is
 there any
   advantage to using a Record object as opposed to a class(TObject)?
  
   Ross.
  
   James Low wrote:
  
Thanks Ben ...
   
 

RE: [DUG]: similar type is used. [virus warning]

2001-07-08 Thread Patrick Dunford

Yes, its a great pity the administrators of this list have still not gotten
around to blocking attachments, and all those other wonderful things that
were promised

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Edward Aretino
 Sent: Monday, 9 July 2001 15:12
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: similar type is used. [virus warning]


 Look out folks, Norton tells me this regarding the attachment
 (hpbmset.exe)
 from gajo:

 Scan type:  Realtime Protection Scan
 Event:  Virus Found!
 Virus name: W32.Magistr.24876@mm
 File:  D:\docs\Internet\Eudora\attach\hpbmset.exe
 Location:  D:\docs\Internet\Eudora\attach
 Action taken:  Clean succeeded : Access allowed


 At 04:56 09/07/2001 +0200, you wrote:
 Valid command because $USERID is a variable of type string.4.0   String
 LiteralsScripting for Dial-Up Networking supports escape sequences and
 caret translations, as described below.  String
 Literal  Description^charCaret translationIf char is a value
 between '@' and '_', the character sequence is translated into a
 single-byte value between 0 and 31.

 --
 -
 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



RE: [DUG]: similar type is used. [virus warning]

2001-07-08 Thread Patrick Dunford

I have ZoneAlarm running and it renamed it hpbmset.zl9

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Edward Aretino
 Sent: Monday, 9 July 2001 15:12
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: similar type is used. [virus warning]
 
 
 Look out folks, Norton tells me this regarding the attachment 
 (hpbmset.exe) 
 from gajo:
 
 Scan type:  Realtime Protection Scan
 Event:  Virus Found!
 Virus name: W32.Magistr.24876@mm
 File:  D:\docs\Internet\Eudora\attach\hpbmset.exe
 Location:  D:\docs\Internet\Eudora\attach
 Action taken:  Clean succeeded : Access allowed
 
 
 At 04:56 09/07/2001 +0200, you wrote:
 Valid command because $USERID is a variable of type string.4.0   String 
 LiteralsScripting for Dial-Up Networking supports escape sequences and 
 caret translations, as described below.  String 
 Literal  Description^charCaret translationIf char is a value 
 between '@' and '_', the character sequence is translated into a 
 single-byte value between 0 and 31.
 
 --
 -
 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



RE: [DUG]: similar type is used. [virus warning]

2001-07-08 Thread Patrick Dunford

Maybe they didn't promise anything, but there was certainly a proposal to
upgrade the software, and I remember it being discussed.

I'm a user of Yahoo Groups and it offers heaps more options.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Nic Wise
 Sent: Monday, 9 July 2001 15:38
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: similar type is used. [virus warning]


 They promised them?

 Not that I recall. Might have been a we would like to... but not a we
 will

 The list software that is used can't do it, and is still in use..

 N
 - Original Message -
 From: Patrick Dunford [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Monday, July 09, 2001 3:39 PM
 Subject: RE: [DUG]: similar type is used. [virus warning]


  Yes, its a great pity the administrators of this list have still not
 gotten
  around to blocking attachments, and all those other wonderful
 things that
  were promised
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
   Behalf Of Edward Aretino
   Sent: Monday, 9 July 2001 15:12
   To: Multiple recipients of list delphi
   Subject: Re: [DUG]: similar type is used. [virus warning]
  
  
   Look out folks, Norton tells me this regarding the attachment
   (hpbmset.exe)
   from gajo:
  
   Scan type:  Realtime Protection Scan
   Event:  Virus Found!
   Virus name: W32.Magistr.24876@mm
   File:  D:\docs\Internet\Eudora\attach\hpbmset.exe
   Location:  D:\docs\Internet\Eudora\attach
   Action taken:  Clean succeeded : Access allowed
  
  
   At 04:56 09/07/2001 +0200, you wrote:
   Valid command because $USERID is a variable of type
 string.4.0   String
   LiteralsScripting for Dial-Up Networking supports escape
 sequences and
   caret translations, as described below.  String
   Literal  Description^charCaret translationIf char is a value
   between '@' and '_', the character sequence is translated into a
   single-byte value between 0 and 31.
  
   --
   -
   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
 

 --
 -
 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



RE: [DUG]: TWebBrowser and Enter key

2001-07-08 Thread Patrick Dunford

I have found also (just today) that the shortcut menu does not work.

Copying text or shortcuts from a page in a WebBrowser control does not work
(doesn't get copied).

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Alex Kouznetsov
 Sent: Friday, 6 July 2001 17:43
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: TWebBrowser and Enter key


 Thanks Dennis. This indeed did the trick for Enter, _but_ now Escape key
 functionality disappeared. Escape used to work as a Reset button, now it
 does not ...

 Regards
 Alex Kouznetsov
 ALM Systems Ltd
 www.almsystems.com


 - Original Message -
 From: Dennis Chuah [EMAIL PROTECTED]
 To: Multiple recipients of list delphi [EMAIL PROTECTED]
 Sent: Friday, 6 July 2001 3:15
 Subject: RE: [DUG]: TWebBrowser and Enter key


 
  This is because of the way Delphi handles in place OLE
 activation.  I saw
  this workaround for D4, but haven't tried it for D5.  (Assuming
 WebBrowserIE
  is the TWebBrowser component).
 
  Regards,
  Dennis.
 
   code begins ---
 
  declare the following form variables:
FOleInPlaceActiveObject: IOleInPlaceActiveObject;
SaveMessageHandler: TMessageEvent;
 
  procedure TfrmBrowser.FormCreate(Sender: TObject);
  begin
FOleInPlaceActiveObject := Nil;
SaveMessageHandler := Nil;
  end;
 
  procedure TfrmBrowser.FormActivate(Sender: TObject);
  begin
SaveMessageHandler := Application.OnMessage;
Application.OnMessage := MessageHandler;
  end;
 
  procedure TfrmBrowser.FormDeactivate(Sender: TObject);
  begin
Application.OnMessage := SaveMessageHandler;
  end;
 
  procedure TfrmBrowser.FormClose(Sender: TObject;
var Action: TCloseAction);
  begin
Application.OnMessage := SaveMessageHandler;
FOleInPlaceActiveObject := Nil;
  end;
 
  procedure TfrmBrowser.MessageHandler (var Msg: TMsg; var Handled:
 Boolean);
  var
iOIPAO: IOleInPlaceActiveObject;
Dispatch: IDispatch;
  begin
// Sanity check
if WebBrowserIE = Nil then begin
  Handled := False;
  Exit;
end; // if
 
Handled := IsDialogMessage (WebBrowserIE.Handle, Msg);
 
if Handled and not WebBrowserIE.Busy then begin
  if FOleInPlaceActiveObject = Nil then begin
Dispatch := WebBrowserIE.Application;
if Dispatch  Nil then begin
  Dispatch.QueryInterface (IOleInPlaceActiveObject, iOIPAO);
  if iOIPAO  Nil then FOleInPlaceActiveObject := iOIPAO;
end; // if
  end; // if
 
  if FOleInPlaceActiveObject  Nil then begin
with Msg do
  if ((message = WM_KEYDOWN) or (message = WM_KEYUP)) and
 (wParam in [VK_BACK, VK_LEFT, VK_RIGHT]) then
  else
FOleInPlaceActiveObject.TranslateAccelerator (Msg);
  end; // if
end; // if
  end;
 
  initialization
OleInitialize (Nil);
 
  finalization
OleUninitialize;
 
  end.
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: Friday, 6 July 2001 16:44
   To: Multiple recipients of list delphi
   Subject: [DUG]: TWebBrowser and Enter key
  
  
   When using TWebBrowser and filling some web page form, pressing Enter
 key
   does not submit data entry.
  
   Say I go to www.anzwers.com.au and using IE type 'Delphi' and
 then press
   enter. It'll go to search for Delphi.
  
   If I do exactly the same thing using the simplest possible Delphi
   application with TWebBrowser in it, pressing enter key does
   nothing, I have
   to click the search (or submit) button with the mouse.
  
   All I have in my application is a basic form with TWebBrowser in
   it and this
   code under Go button (not default).
  
   Flags := 0;
   WebBrowser1.Navigate(WideString('www.whatever.com'), Flags, Flags,
 Flags,
   Flags);
  
   Is there something I am missing ?
  
   Regards
   Alex
  
  
  
  
   --
   -
   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
 

 --
 -
 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, 

RE: [DUG]: similar type is used. [virus warning]

2001-07-08 Thread Patrick Dunford

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Nic Wise
 Sent: Monday, 9 July 2001 17:03
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: similar type is used. [virus warning]

snip

  I'm a user of Yahoo Groups and it offers heaps more options.

 yes it does. And it also appends an _advert_ to each and every email that
 goes out, last time I used it.

A few lines of text at the bottom of a message that you can easily ignore.

 OK, so Mark wrote a filter for that, but
 still, someone pays for every email that goes out. Plus, I get
 more spam to
 the accounts I used to have sub'ed to egroups accounts (now yahoo groups)
 than any other account I have.

Well that's interesting. I don't get any spam to the addresses I have signed
on.

 Noone pays for the Delphi lists. Its done off the backs of Gary and Steve.
 We could move it to yahoo or similar, but aside from the _odd_ email
 attachment getting thru, noone's had a problem with it for ages.

There were some other issues raised like archives, address munging, digest
mode, multiple address subscription and so on. YG happens to offer all these
features.

My ISP runs their own lists using mhonarc which is similarly featured and is
free, I think.

---
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]: similar type is used. [virus warning]

2001-07-08 Thread Patrick Dunford

Correction. Most of the groups I'm on haven't received _any_ advertising for
some time. Usually they just get a single line about terms and conditions.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Nic Wise
 Sent: Monday, 9 July 2001 17:03
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: similar type is used. [virus warning]


  Maybe they didn't promise anything, but there was certainly a proposal
 to
  upgrade the software, and I remember it being discussed.

 yup, it was discussed, but as there are around 150 domains on the mail
 server (last time I looked, which was about a year ago), moving
 it over to a
 new server is NOT a trivial operation.

  I'm a user of Yahoo Groups and it offers heaps more options.

 yes it does. And it also appends an _advert_ to each and every email that
 goes out, last time I used it. OK, so Mark wrote a filter for that, but
 still, someone pays for every email that goes out. Plus, I get
 more spam to
 the accounts I used to have sub'ed to egroups accounts (now yahoo groups)
 than any other account I have.

 Noone pays for the Delphi lists. Its done off the backs of Gary and Steve.
 We could move it to yahoo or similar, but aside from the _odd_ email
 attachment getting thru, noone's had a problem with it for ages.

 N

 --
 -
 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



RE: Listbox items (Was: Re: [DUG]: array of TStringList)

2001-07-06 Thread Patrick Dunford

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ross Levis
 Sent: Friday, 6 July 2001 12:22
 To: Multiple recipients of list delphi
 Subject: Listbox items (Was: Re: [DUG]: array of TStringList)


 Thanks all for the help.  I think I will use a static array and limit the
 numbers.

 I have another newbie question.  What is the standard way of
 internally storing
 data attached to a listbox item.
 ie. I have a listbox which has user defined items that can be
 added  deleted.
 For each of the items I need to display/store particular information.
 eg. On the left I have a Listbox containing account numbers and
 on the right I
 have edit boxes containing Name, Address etc.

 Can I use the Items.Objects property to link each item to another
 object in
 this case?  Or do I simply store the Name/Address data in a string array
 indexed on the ItemIndex.  That creates a problem when the user
 deletes an item
 from the list -- I would have to move the data around in the array which I
 would rather not do.  Maybe I should use the item Tag property to
 store the
 index of the related array data.

 (BTW: The data will eventually be saved to a text file)


You can link to another object.

In one of my applications I needed to store an integer. I defined a type
PLongInt as a pointer to a LongInt.

In the code I then created a new instance of the type assigning it to a
local variable, set its value to the number and then assigned it to the Data
property of the TListView. That's a little different but not much.

All you need to do is:

* Create a new instance of an object with a local variable
* Assign that instance to the Objects property that corresponds to the list
item. Since everything descends from TObject it is a simple assignation.

* When you retrieve the object you will need to typecast it to the original
object type otherwise you will not be able to access any properties or
methods other than those in TObject.

---
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: Listbox items (Was: Re: [DUG]: array of TStringList)

2001-07-06 Thread Patrick Dunford

Some understanding here is useful.

It is not possible to create numerous objects with the same name.

When you create an instance of a class (an object) you are doing several
things:
1. Delphi reserves some memory for you
2. Delphi gives you in the variable on the left hand side, a reference to
that piece of memory.

If you then create another instance of the object using the same variable
name, you have lost access to the bit that you had before. it is still there
but you have no way of accessing it, because the variable now points to the
new bit you got. You can do this ten times but at the end you will still
only be able to access the last bit.

To get around this little problem when you need to keep lists of objects
created dynamically, Delphi provides the TList class. You can use a TList or
make a derivative from it. It would be usual to override the destructor to
ensure all the memory is freed in your objects.

Now, when using a TList the above steps become:

1. Delphi reserves some memory for you
2. Delphi gives you in the variable on the left hand side, a reference to
that piece of memory.
3. You add the value of that variable to a TList object.

Then you can use the methods of TList to access all those dynamic objects
you have created. In the days before OO we used to use linked lists of
pointers to do the same thing. Compared to that a TList is a doddle.

Addressing to your particular situation. A record is not an object. A
Tobject is an object.

I used to use records until I discovered how to use TList to link a whole
lot of dynamically created objects. To give an example I have just updated
an application that uses counters to count numbers in a big report, and do
various calculations etc. It used to use various TStringLists to store all
the counters. I updated it to use OO stuff. This is good because there are
two different types of counter and one is a subclass of the other.

All you have to do is:
* Create an instance of your object e.g. MyObject := TMyObject.Create
* Do something with it...set the fields or something
* Add it to the Objects property of the list box items (which is probably
implemented as a TList) . No typecast needed since everything is descended
from TObject.

Now you can safely reuse MyObject to create another instance, as the
reference is now saved in the list box. (Don't free it though, as it still
points to an instance, but if you wish you can set it to nil without
affecting any instances of your object)

When you have to do something with your object, it looks like this:

MyObject := TMyObject(ListBox1.Items.Objects[X]

You have to typecast it because Delphi stores it as a TObject and won't let
you access any of the methods or properties other than for a TObject, if you
don't do the typecast, also you will get an invalid type error from the
compiler.

Note that the Objects property still contains the reference until that list
item is deleted.The question I am not at all sure about is whether Delphi
frees the memory associated with each object reference when the list item is
removed from the list.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ross Levis
 Sent: Friday, 6 July 2001 23:33
 To: Multiple recipients of list delphi
 Subject: Re: Listbox items (Was: Re: [DUG]: array of TStringList)


 Thanks James, Ben  Reg.  It's looks rather messy to me.  I
 didn't realise you
 can create numerous duplicate objects with the same name.  Is there any
 advantage to using a Record object as opposed to a class(TObject)?

 Ross.

 James Low wrote:

  Thanks Ben ...
 
  -Original Message-
  From: Ben Taylor [mailto:[EMAIL PROTECTED]]
  Sent: 6 July 2001 17:01
  To: Multiple recipients of list delphi
  Subject: RE: Listbox items (Was: Re: [DUG]: array of TStringList)
 
   AddObject('Somestring to display', myObject);
   myObject.Free; //the list owns a reference to it now
 
  you _really_ dont want to do this.. the list now has a pointer to the
  object, but its still the same object. if you do the free, then the
  list holds an invalid pointer.
 
   myObject := Listbox1.Objects[ListBox1.Listindex];
  this wont compile. you'll need to cast the TObject pointer to the
  correct type:
 
  myObject := tRossesObject(Listbox1.Objects[ListBox1.Listindex]);
 
  that should work better..
 
  there are 'nicer' OO ways to do this but it's friday and i'm going now
  :-)
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail
  http://personal.mail.yahoo.com/
 
 --
 -
  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 - 

RE: Listbox items (Was: Re: [DUG]: array of TStringList)

2001-07-06 Thread Patrick Dunford

It's still not an object. Records are traditional procedural structures.
They don't have anything OO about them.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of NIRAV KAKU
 Sent: Saturday, 7 July 2001 06:19
 To: Multiple recipients of list delphi
 Subject: Re: Listbox items (Was: Re: [DUG]: array of TStringList)


 Heres some really quick  dirty code to throw some light on the
 subject:

  Records as objects 

 TMyRec = record
 Name: String;
 Age: Integer;
   end;
   pTMyRec = ^TMyRec;

 procedure TForm1.Button1Click(Sender: TObject);
 var
   MyObj: TObject;
   MyRec: TMyRec;
   PMyRec: pTMyRec;

   Z: pTMyRec;
 begin
   MyRec.Name := 'NIRAV KAKU';
   MyRec.Age := 22;

 // record to object
   PMyRec := @MyRec;
   MyObj := TObject(PMyRec);

 // object to record
   Z := pTMyRec(MyObj);

 // testing results
   ShowMessage(TMyRec(Z^).Name);
   ShowMessage(IntToStr(TMyRec(Z^).Age));
 end;

 Records save memory.

 Hope this helped.

 regards,
 NIRAV KAKU


 On 6 Jul 01, at 23:33, Ross Levis wrote:

  Thanks James, Ben  Reg.  It's looks rather messy to me.  I
 didn't realise you
  can create numerous duplicate objects with the same name.  Is there any
  advantage to using a Record object as opposed to a class(TObject)?
 
  Ross.
 
  James Low wrote:
 
   Thanks Ben ...
  
   -Original Message-
   From: Ben Taylor [mailto:[EMAIL PROTECTED]]
   Sent: 6 July 2001 17:01
   To: Multiple recipients of list delphi
   Subject: RE: Listbox items (Was: Re: [DUG]: array of TStringList)
  
AddObject('Somestring to display', myObject);
myObject.Free; //the list owns a reference to it now
  
   you _really_ dont want to do this.. the list now has a pointer to the
   object, but its still the same object. if you do the free, then the
   list holds an invalid pointer.
  
myObject := Listbox1.Objects[ListBox1.Listindex];
   this wont compile. you'll need to cast the TObject pointer to the
   correct type:
  
   myObject := tRossesObject(Listbox1.Objects[ListBox1.Listindex]);
  
   that should work better..
  
   there are 'nicer' OO ways to do this but it's friday and i'm going now
   :-)
  
   __
   Do You Yahoo!?
   Get personalized email addresses from Yahoo! Mail
   http://personal.mail.yahoo.com/
  
 --
 -
   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
 
 
 --
 -
  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
 
 



 - From the Shreemat Bhägwat Gïta -
 'Sarcasm is the lowest form of wit.'
 --
 -
 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



RE: [DUG]: Multi Monitors

2001-07-03 Thread Patrick Dunford

How do you force the form to either monitor 1 or 2?

I know there are two monitors in the system having tested at runtime.

I have my form maximised, and hidden, DefaultMonitor will be the same as
main form (monitor 0).

The Monitor property of the form is read only (tells you which monitor it is
on) so the only way seems to be to set the left of the form to appear on
whichever monitor.

I thought this would work:

//Go to monitor 0
PlayerForm.Left := Screen.Monitors[0].Left;

//Go to monitor 1
PlayerForm.Left := Screen.Monitors[1].Left;


Assuming that the monitor's left property is where on the desktop it
appears. Is it because it is already maximised that it refuses to move?
Maybe to minimise or restore it first before moving it?

Or am I totally on the wrong track?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ben Taylor
 Sent: Monday, 2 July 2001 17:33
 To: Multiple recipients of list delphi
 Subject: re: [DUG]: Multi Monitors


 Hi,

 it probably depends what setup they're running.

 i'm using a matrox g400 dual display, nt2k, with the matrox drivers and
 utils. with the options i have set, the form maximises to the screen
 its (mostly) contained in, but it can be forced to either display 1 or
 2..

 the display itself appears as 2048x768, so anything with x1024 is on
 the second display.

 hope that adds to the confusion :-)

 Ben.

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/
 --
 -
 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]: Multi Monitors

2001-07-01 Thread Patrick Dunford



How does one 
position a form of an app to appear on the second monitor, and be maximised on 
that monitor? The main form will appear on the primary 
display.

Will it stay 
maximised on that screen or will maximising it move it back to the main 
screen?

(My development 
system does not have two screens hence the questions about software that 
willbe run at a site some distance from here)




RE: HOAX [DUG]: HOAX Major HOAX Virus HOAX Warning HOAX

2001-03-13 Thread Patrick Dunford

Do you call yourself an IT professional, and:

1. Profess to be completely unaware of virus hoaxes;

2. Profess to have never seen a virus hoax before;

3. Profess to be incapable of checking with any antivirus product supplier
before propagating hoax virus messages  on mailing lists.

I have enough trouble with "amateurs" putting these messages about but it is
worse to see IT people jumping on the bandwagon.

You can always tell these hoaxes because they claim to be identified by
Microsoft, IBM or some other prominent source and make other false claims (I
bet there are no such reports on CNN)

http://www.symantec.com/avcenter/venc/data/virtual.card.for.you.html

Virtual Card for You
Reported on: January 10, 2001
Last Updated on: February 13, 2001 at 12:44:05 PM PST

Printer-friendly version


The Virtual Card for You is a hoax that should be ignored. The following is
the text that may be received as an email message:

Virus Alert VIRUS WARNING To ALL INTERNET USERS:

A new virus has just been discovered that has been classified by Microsoft
(www.microsoft.com) and by McAfee (www.mcafee.com) as the most destructive
ever!

This virus was discovered yesterday afternoon by McAfee and no vaccine has
yet been developed.  This virus simply destroys Sector Zero from the hard
disk, where vital information for its functioning are stored.

This virus acts in the following manner: It sends itself automatically to
all contacts on your list with the title "A Virtual Card for You".

As soon as the supposed virtual card is opened, the computer freezes so that
the user has to reboot.  When the ctrl+alt+del keys or the reset button are
pressed, the virus destroys Sector Zero, thus permanently destroying the
hard disk.

Please distribute this message to the greatest number of people possible.
Yesterday in just a few hours this virus caused panic in New York, according
to news broadcast by CNN www.cnn.com).  This alert was received by an
employee of Microsoft itself.


Category: Hoax

Please ignore any messages regarding this hoax and do not pass on messages.
Passing on messages about the hoax only serves to further propagate it.


http://vil.nai.com/vil/virusChar.asp?virus_k=98893

AVERT HOAX Notice!!

NAI Labs AVERT would like to inform you of a new email HOAX.

This email message is just a HOAX, currently we know of no other message
that the user will receive about the HOAX as the initial email states. AVERT
has not received any report of a user's hard drive being erased for opening
the email.

We are advising users who receive the email to delete it and DO NOT pass it
on as this is how an email HOAX propagates.

Below is the actual text from the message that may be received via email.

Recently a new virus was discovered that was classified by MICROSOFT
www.microsoft.com and by MCAFEE www.mcafee.com to be the most damaging of
all time! This virus was discovered late yesterday by MCAFEE and still there
is no development of a vaccine!

This virus simply writes zeros on the hard drive, where the vital
information for the operation of the PC is kept. The virus activates in the
following manner:

1. By email it is received with the title 'A VIRTUAL CARD FOR YOU', when
opening the message, it sends itself to all in the address list soon...

2. It hangs the machine, forcing the user to reboot the system.

3. AT the moment in which the keys ctrl+alt+del or the RESET button is
pressed, it writes zeros to the hard drive making it unusable forever.

By the previous information, please, take precaution with the use of
electronic mail and, of course, if you receive an email which you do not
know the origin of, simply delete it without opening.

Please, send this message to the most people possible

In a few hours yesterday, this virus caused panic in New York, according to
CNN www.cnn.com.



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of John Christenhusz
 Sent: Wednesday, 14 March 2001 07:41
 To: Multiple recipients of list delphi
 Subject: [DUG]: Major Virus Warning


  Hi folks,

 A new virus has just been discovered that has been classified by
 M Microsoft ( www.microsoft.com http://www.microsoft.com ) and by McAfee
 ( www.mcafee.com http://www.mcafee.com ) as the most destructive ever!
 This virus was discovered yesterday afternoon by McAfee and no vaccine
 has yet been developed. This virus simply destroys Sector Zero from the
 hard disk, where vital information for its functioning are stored. This
 virus sends itself automatically to all contacts on your list with the
 title "A Virtual Card for You". When  the supposed virtual card is
 opened, the computer freezes so that the user has to reboot. When the
 ctrl+alt+del keys or the reset button are pressed, the virus destroys
 Sector Zero, thus  permanently destroying the hard disk.  According to
 news broadcast by CNN ( www.cnn.com http://www.cnn.com ). This VIRUS
 received by an employee of Microsoft itself. So don't open 

RE: [DUG]: Referencing variable TextFile names

2001-03-08 Thread Patrick Dunford

TStrings is fine if you want to read and write a whole file at once. If you
just want to write one line to the end of the file then it's not required.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Steve Peacocke
 Sent: Thursday, 8 March 2001 17:27
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: Referencing variable TextFile names


 Mark, In recent years I have forsaken the old and trusty TextFile variable
 to using TStrings. With TStrings, not only can I write to and read from
 text files in a single call, but the contents are then already placed into
 a ready made object for me to manipulate.

 eg:

 Var
 Stuff: TStrings;
 i: integer;
 begin
 Stuff := TStringList.Create;
 try
 Stuff.LoadFromFile(FileName);
 for i := 0 to stuff.Count - 1 do
 ShowMessage(Stuff[i]); // do things with the line
 finally
 stuff.free;
 end;
 end;

 Must easier and able to do lots of excellent things with it - for example,
 by using the Values and Names properties, I can read and manipulate ini
 files much easier than the inbuilt TIniFile object.

 Steve
 --
 -
 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"



RE: [DUG]: Referencing variable TextFile names

2001-03-07 Thread Patrick Dunford



Once 
you have assigned a file (which you can do in one procedure) why can't you just 
pass the file variable as a parameter into other procedures?

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Mark 
  HowardSent: Friday, 9 March 2001 13:21To: Multiple 
  recipients of list delphiSubject: [DUG]: Referencing variable 
  TextFile names
  Hello - Newbie question.
  
  I want to open two text files for writing 
  to.
  
  Which one I write to depends on a condition - but 
  the procedures for opening and writingare common to both.
  
  So there are several procedures which reference a 
  FileName
  eg
  AssignFile(FileName, File);
  ReWrite(FileName);
  Write(FileName, 'Data');
  
  where FileName is of type TextFile and File is a 
  string.
  
  My question is how can I have FileName as a 
  'variable' such that 
  under one condition it is FileOne
  and under another it is FileTwo
  
  and I can thus use the same 
  procedures?
  
  Hope this makes sense.
  
  Mark
  


RE: [DUG]: missing VCL

2001-03-04 Thread Patrick Dunford



I 
believe the answer given by the other person is correct, when you install for a 
new user I think there is a registry only install that you can 
run.

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Laurie 
  BismanSent: Sunday, 4 March 2001 14:38To: Multiple 
  recipients of list delphiSubject: [DUG]: missing 
  VCL
  I have Delphi 5 installed on my work 
  computer- it has two profiles set up under Windows98, I can use it from 
  one profile but if I run it from another profile, the VCL is missing - the 
  only tab available is STANDARD and all that's there is FRAMES...
  
  What's happening?
  
  ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤ 
  Laurie Bisman - New 
  Zealand¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤


RE: [DUG]: Dependency Walker

2001-03-01 Thread Patrick Dunford



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Deepak Shenoy
 Sent: Thursday, 1 March 2001 20:23
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: Dependency Walker


  Not very amusing if as it seems (cf Lazarus) the Open Source movement
  considers it fair game to copy commercial products.

 Well, most of the dependency walker source code has been
 published (C source
 code) by Microsoft and articles on it have appeared in MSJ (Thanks to Matt
 Pietrek, who wrote the original utility)
 Check out this link:
 http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0297/hood/
hood0297.h
tm

and this link:
www.dependencywalker.com

The Dependency walker that Microsoft publishes isn't commercial - they've
given out the source, with many articles in MSJ, and with no GPL or MPL
bound to it. Now that's what I call open source - no restrictions :)

I don't think it's unfair to port that published C code to Delphi and even
sell such a tool, let alone make it open source. In fact, I've taken some of
the MSJ source code and made a tool out of it - check out "GenPal" in the
freeware section of my home page.


The product carries a clear copyright notice, which is at odds with your
details.

---
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]: Accessing page in TWebBrowser

2001-03-01 Thread Patrick Dunford

According to the documentation with it, the Document property provides an
interface to the HTML document being displayed in the browser.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Alex Kouznetsov
 Sent: Thursday, 1 March 2001 17:49
 To: Multiple recipients of list delphi
 Subject: [DUG]: Accessing page in TWebBrowser


 How can I access html text of the page currently displayed in the
 TWebBrowser component ?

 Thanks
 Alex

 --
 -
 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"



RE: [DUG]: trying to open web site in IE from a standalone program

2001-03-01 Thread Patrick Dunford

If the username and password are submitted to a script then these can be put
in a URL as variables, if you know the names of the variables that the
script expects.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Damien Long
 Sent: Thursday, 1 March 2001 12:57
 To: Multiple recipients of list delphi
 Subject: [DUG]: trying to open web site in IE from a standalone program


 I have been asked to create a standalone program that will open a
 web site,
 post the user name and password, download a database and do that every day
 at 9am. Does anyone have any ideas on how to do any of the above. I would
 love any information to start me off.

---
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]: Dependency Walker

2001-02-28 Thread Patrick Dunford


Dependency Walker is a useful free tool from MS that lists the dependencies
of a module (application etc) i.e. all DLLS and other files referenced by an
app. Good if you are having problems with files missing on some computer
system.

http://msdn.microsoft.com/library/techart/redistribvc6.htm

===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   For I am the LORD, your God, who takes hold of your right hand
and says to you, Do not fear; I will help you.
-- Isaiah 41:13
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010227
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

---
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]: Dependency Walker

2001-02-28 Thread Patrick Dunford

Not very amusing if as it seems (cf Lazarus) the Open Source movement
considers it fair game to copy commercial products.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Deepak Shenoy
 Sent: Thursday, 1 March 2001 05:06
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: Dependency Walker


 Nice Link - and it does link up with DLLs (shell extension) too!

 Check out: http://www.volweb.cz/pvones/delphi/

 There's a full (open source) implementation of Dependency Walker
 in Delphi -
 and other really nice stuff.

 Deepak Shenoy
 Agni Software
 http://www.agnisoft.com

 - Original Message -
 From: "Patrick Dunford" [EMAIL PROTECTED]
 To: "Multiple recipients of list delphi" [EMAIL PROTECTED]
 Sent: Wednesday, February 28, 2001 1:54 PM
 Subject: [DUG]: Dependency Walker


 
  Dependency Walker is a useful free tool from MS that lists the
 dependencies
  of a module (application etc) i.e. all DLLS and other files
 referenced by
 an
  app. Good if you are having problems with files missing on some computer
  system.
 
  http://msdn.microsoft.com/library/techart/redistribvc6.htm
 
  ===========
  Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/
 
 For I am the LORD, your God, who takes hold of your right hand
  and says to you, Do not fear; I will help you.
  -- Isaiah 41:13
  http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010227
  ===
  Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/
 
 
 --
 -
  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"


---
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]: Quitting QR report from Preview mode

2001-02-28 Thread Patrick Dunford



VArious problems I had with custom preview forms were 
solved by putting the preview on an MDI child form. HTH

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Mark 
  HowardSent: Friday, 2 March 2001 07:55To: Multiple 
  recipients of list delphiSubject: [DUG]: Quitting QR report from 
  Preview mode
  Hi all
  
  I have a need to give the user the ability to 
  abandon a QuickReport part way through. 
  
  I am picking up some user input through a Modal 
  form which is called from one of the report groups. This modal form 
  contains an "Abandon Report" button.
  
  Using

  OwnInv1.Report.Cancel;works fine when the report is going straight to the 
  printer but generates an Access Violation if the report is in Preview 
  mode.
  
  Can someone advise on the correct way to abandon 
  the report while it is being previewed.
  
  TIA
  
  Mark
  
  


RE: [DUG]: Software Expiry Codes - OnGuard

2001-02-20 Thread Patrick Dunford



If you 
are encrypting keys then it seems to me that you are also including in some 
form, the code that will encrypt and decrypt them in your application.At what 
point can a hacker discover the code in your application that enables them to 
decrypt your keys?


  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of David 
  BrennanSent: Wednesday, 21 February 2001 09:26To: 
  Multiple recipients of list delphiSubject: [DUG]: Software Expiry 
  Codes - OnGuard
  Hi,
  
  I am about to implement security codes which 
  verify the user/site is allowed to run my software. I am envisaging that each 
  site will be given a code and each code will be built using the site/company 
  name and an expiry date. Thus the code won't work if the site name is 
  different, nor will it work after the expiry date (naturally it also won't 
  work for a different product).
  
  OnGuard from TurboPower provides exactly these 
  features. As far as I can see it works as follows:
   You embed a unique and private 
  product key in the application.
   The user enters the code they 
  obtained for their product.
   The application checks the 
  code by building a new code from the product key, site name, expiry 
  dateand checks it against the code the user entered. If they match then 
  everything is OK. 
  
  My problem with this is that the product keys 
  need to be embedded in the application. With these keys and their own copy of 
  OnGuard a user/hacker could build their own valid codes for any site name or 
  expiry date. I don't know how hard it would be for a hacker to extract the 
  keys from an application (the recommended approach for embedding them would 
  appear to be constants of type TKey which is a 16 bytebinaryvalue) 
  but I suspect it wouldn't be too hard.
  
  Has anyone considered this issue before? Is there 
  a way of encrypting the keys in the executable so that they areharder to 
  obtain or doesDelphimake it hard enough as it is?Or is there 
  a better tool than OnGuard out there?
  
  Thanks for your help.
  
  David Brennan.DB Solutions 
Ltd.


RE: [DUG]: D3Pro Update Disk rev.1

2001-02-12 Thread Patrick Dunford

thing you have to watch is that later Standard versions have no database
components included.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Alan Rose
 Sent: Monday, 12 February 2001 19:49
 To: Multiple recipients of list delphi
 Subject: RE: [DUG]: D3Pro Update Disk rev.1


 This may be of no use to you, but anyone using an old version of
 Delphi may
 be interested to know that the Jan issue of PC Plus magazine now selling
 ($26). Has on its attached CD the full working version of Delphi
 4 Standard.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Bird, Geoff GD
 Sent: Monday, February 12, 2001 4:16 PM
 To: Multiple recipients of list delphi
 Subject: [DUG]: D3Pro Update Disk rev.1


 I have D3 Pro, (yes, I know its oldish - but I only develop sporadically
  I'm just updating an old program at present using D1 !] ) and no need to
 upgrade to D5/6 at present.

 I want to update this, but Borland don't have any CD's left.   Does anyone
 have the rev 1 update CD which I could beg/buy/borrow please ?

 Geoff

 --
 -
 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"


---
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]: sorting files

2001-02-09 Thread Patrick Dunford



I 
didn't think it was that obvious - one could easily be tempted to write a 
complicated date sorting routine...

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy 
  CoulterSent: Thursday, 8 February 2001 21:12To: Multiple 
  recipients of list delphiSubject: RE: [DUG]: sorting 
  files
  Okthanks for pointing out the obvious 
  :)
  
  What II am really looking for, is what kind of list I 
  should use.
  I am figuring I will need to do something like 
  list.addobject('blah',pointer(datenumber))
  But what list can I use or would be best to use that 
  i can sort by the datanumber ? (other than a 
  TListview)
  
  Cheers, 
  Jeremy
  
  -Original 
  Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Patrick 
  DunfordSent: 09 February, 2001 7:59 PMTo: Multiple 
  recipients of list delphiSubject: RE: [DUG]: sorting 
  files
  
Once you have the date as a TDateTime you just need 
to sort it on a straight numerical basis.

  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf 
  Of Jeremy CoulterSent: Thursday, 8 February 2001 
  16:33To: Multiple recipients of list delphiSubject: 
  [DUG]: sorting files
  Hi 
  all.
  This is 
  related to my earlier post about TSearchRec.
  
  What I have is 
  a dir that has files in it with names that are unique.What I need to 
  do, is sort the files so that they are in order of date and time in a 
  list. (TstringList)
  
  Does anyone 
  have any bright ideas on the best way to do this ? It woudl need to be 
  res. quick at it too.
  
  Cheers, Jeremy 
  coulter


RE: [DUG]: sorting files

2001-02-09 Thread Patrick Dunford



TdateTime is a real type, and is the number of days 
from a certain point. Thus a simple numerical sort will do the 
job.

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Nello 
  SestiniSent: Friday, 9 February 2001 22:05To: Multiple 
  recipients of list delphiSubject: Re: [DUG]: sorting 
  files
  
I 
didn't think it was that obvious - one could easily be tempted to write a 
complicated date sorting routine...
  I didn't think it was obvious 
  either.
  
  there was a Delphi version 
  change a (long) while back where the
  date format changed - so that 
  if you had apps from different versions
  passing binary dates around (a bad idea certainly) you 
  COULDN'T
  just compare them as integers.
  
  -ns
  
  


RE: [DUG]: sorting files

2001-02-08 Thread Patrick Dunford



Once 
you have the date as a TDateTime you just need to sort it on a straight 
numerical basis.

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy 
  CoulterSent: Thursday, 8 February 2001 16:33To: Multiple 
  recipients of list delphiSubject: [DUG]: sorting 
  files
  Hi 
  all.
  This is related to 
  my earlier post about TSearchRec.
  
  What I have is a 
  dir that has files in it with names that are unique.What I need to do, is 
  sort the files so that they are in order of date and time in a list. 
  (TstringList)
  
  Does anyone have 
  any bright ideas on the best way to do this ? It woudl need to be res. 
  quick at it too.
  
  Cheers, Jeremy 
  coulter


RE: [DUG]: TImage and JPG files

2001-01-30 Thread Patrick Dunford

This is the code I use in Delphi 3. It may be different in later versions.

 if ((SourceType = '.JPG') or (SourceType = '.JPEG')) then begin
JpegImage := TJpegImage.Create;
JpegImage.LoadFromFile(ImageFile);
SourceImage.Picture.Assign(JpegImage);

SourceImage is a TImage control. TJpegImage is part of the Delphi component
library (non VCL) that was added at version 3.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of John Christenhusz
 Sent: Wednesday, 31 January 2001 20:30
 To: Multiple recipients of list delphi
 Subject: [DUG]: TImage and JPG files


 G'day folks,

 I've got this TImage component showing images on request from a directory.
 This works file with *.BMP files, but don't seems to work with
 *.JPG files.

 The code I'm using is as follows:

 if fileExists(intToStr(iNumber) + '.JPG) then
   imgPhoto1.picture.loadFromFile(intToStr(iNumber) + '.JPG)
 else
 if fileExists(intToStr(iNumber) + '.BMP) then
  imgPhoto1.picture.loadFromFile(intToStr(iNumber) + '.BMP)


 Thus initially it searches for a JPG file else it loads a BMP file.


 The BMP file get loaded and shows correctly, but the JPG file returns the
 following message when loaded into the TImage:
 "Unknown picture file extension (.JPG)"

 Any idea?

 Thanks for your help.

 John Christenhusz
 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"


---
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]: TDataSet descendant

2001-01-18 Thread Patrick Dunford

If you are using some versions of Delphi you have TClientDataSet, which
itself is a TDataSet descendant

For other versions you could presumably override the virtually declared
methods in TDataSet, but I don't have any references for this. Someone here
may have, but you could also try posting to the borland newsgroups.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Lisandro Rueckert
 Sent: Friday, 19 January 2001 01:43
 To: Multiple recipients of list delphi
 Subject: [DUG]: TDataSet descendant


 HI !

 I need create a TDataset descendant to  work with a proprietary textfile
 format. There are som article, book, or other online resource about this
 subject ?

 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"



  1   2   3   4   5   >