Re: [DUG]: Copying an Object

2002-10-03 Thread Neven MacEwan
Nahum Yes it may be encapsulated but the fact that the state of the encapsulated data cannot be reproduced by assigning the revealed properties would indicate to me that the object cannot be safely streamed, which is a basic tenant of Delphi OO Neven - Original Message - From: "Nahum Wi

RE: [DUG]: Multi Line Label

2002-10-03 Thread Rose, Alan (MDF Rangiora)
Tlabel has a wordwrap property allowing you to show multi lines. -Original Message- From: Terry Johnson [SMTP:[EMAIL PROTECTED]] Sent: Friday, 4 October 2002 15:46 To: Multiple recipients of list delphi Subject:[DUG]: Multi Line Lab

Re: [DUG]: Multi Line Label

2002-10-03 Thread Nello Sestini
i may be completely missing the point - but try putting the TMemo on a TPanel and disable the Panel -ns http://www.roserox.co.th - Original Message - From: "Terry Johnson" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, 4 October 2002 10

RE: [DUG]: Copying an Object

2002-10-03 Thread Nahum Wild
Nope, it means that its encapsulated (or whatever the word is and how its spelt) and only revealing stuff that needs to be revealed - and it might only be in the public section rather than the published section; data hiding and all that. One of the three corners to good OO design (hurrah) - inher

[DUG]: Multi Line Label

2002-10-03 Thread Terry Johnson
I want to put some text on a form, such as with a TMemo, but I want it to behave like a TLabel with regard to mouse and cursor. If I turn enabled off, it behaves as I want it to, except the colour is wrong. This has got to be easy... Ta Terry

Re: [DUG]: Copying an Object

2002-10-03 Thread Neven MacEwan
Nahum If you need to copy the internals of an object then it would reflect badly on your objects design wouldn't it? Neven - Original Message - From: "Nahum Wild" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, October 04, 2002 2:02 PM Subj

RE: [DUG]: Copying an Object

2002-10-03 Thread Kyley Harris
Everyone seems to be saying that Delphi doesn't have built in cloning. This is not quite true. The standard way is to override Assign, or AssignTo method derived inside TPersistent. All you need to do is override this in each sub-class. There are many dozens of examples through the VCL code. If yo

RE: [DUG]: detect browser

2002-10-03 Thread Rose, Alan (MDF Rangiora)
I haven't tried this but maybe the information is in Request.UserAgent procedure TWebModule1.WebModule1WebActionItem1Action(Sender: TObject; Request: TWebRequest; Response: TWebResponse; var Handled: Boolean); Var WhoAmI : String; begin WhoAmI := Request.UserAgent; end; -Original

Re: [DUG]: ODBC

2002-10-03 Thread Paul McKenzie
Excellent - thanks - exactly what I was after...   RegardsPaul McKenzieAnalyst ProgrammerSMSS Ltd. - Original Message - From: David O'Brien To: Multiple recipients of list delphi Sent: Friday, October 04, 2002 1:37 PM Subject: RE: [DUG]: ODBC Check the reg

Re: [DUG]: detect browser

2002-10-03 Thread Tracey Maule
ok thanks guys.. at least i have a vague idea of direction now :-s shame i couldnt do this within delphi... im bound to get s**t about it from our M$ wiz here... - Original Message - From: "Myles Penlington" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>

Re: [DUG]: detect browser

2002-10-03 Thread Nello Sestini
doh :P yes of course - that's what i get for not really paying close attention to the thread -ns http://www.roserox.co.th - Original Message - From: "Myles Penlington" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, 4 October 2002 08:53 S

RE: [DUG]: Copying an Object

2002-10-03 Thread Nahum Wild
The only problem here being that just the published properties will be cloned, no internal state variables. Nahum. > [EMAIL PROTECTED] > wrote on > >> The term for this is "cloning" an object. >> >> There is no built in way of doing this in Delphi, and there are >> iss

RE: [DUG]: detect browser

2002-10-03 Thread Myles Penlington
You can, but that is client side Javascript or DHTML ... I think Tracy is after server side. You just need access to the HTTP_USER_AGENT variable provided by the browser ... Myles. -Original Message- From: Nello Sestini [mailto:[EMAIL PROTECTED]] Sent: Friday, 4 October 2002 1:49 p.m.

Re: [DUG]: detect browser

2002-10-03 Thread Nello Sestini
in JavaScript you can look at the Navigator.useragent property -ns http://www.roserox.co.th - Original Message - From: "Tracey Maule" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, 4 October 2002 08:37 Subject: Re: [DUG]: detect browser

RE: [DUG]: Copying an Object

2002-10-03 Thread Antony Simmonds
> The term for this is "cloning" an object. > > There is no built in way of doing this in Delphi, and there are issues > involved in any cloning operation; e.g. are you interested in a shallow > clone (just the one object), or a deep clone (your one object, and all > objects to which it refers)? >

RE: [DUG]: ODBC

2002-10-03 Thread David O'Brien
Check the registry HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI   Dave. -Original Message-From: Paul McKenzie [mailto:[EMAIL PROTECTED]]Sent: Friday, 4 October 2002 1:16 p.m.To: Multiple recipients of list delphiSubject: [DUG]: ODBC G'Day,   Does anyone know how to extrac

Re: [DUG]: detect browser

2002-10-03 Thread Tracey Maule
um... any way of doing it without using asp? I run my app on Apache and i dont think i can use asp. Maybe i need to use javascript... ?? - Original Message - From: "Myles Penlington" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, October

RE: [DUG]: ODBC

2002-10-03 Thread Max Nilson
Paul McKenzie asks: > Does anyone know how to extract a database filename and path > from an ODBC setting ? Ummm, I've thought hard about this and I have no idea what you mean by "ODBC setting". Perhaps you mean a DSN? or do you mean you want to extract this information from a connection or stat

[DUG]: ODBC

2002-10-03 Thread Paul McKenzie
G'Day,   Does anyone know how to extract a database filename and path from an ODBC setting ? Without using the DBE ? (not that I know how to do it with the BDE)     RegardsPaul McKenzieAnalyst ProgrammerSMSS Ltd.

RE: [DUG]: detect browser

2002-10-03 Thread Myles Penlington
This is what you want. The following is some asp script to show all the server/browser variables. The item you need is "HTTP_USER_AGENT" And you will get something back like this - "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)" Which tells you I am running MS Internet explorer 5

RE: [DUG]: detect browser

2002-10-03 Thread Rose, Alan (MDF Rangiora)
This only relates to the Pocket PC but it may give you some clues as to where to start. http://mobileinternetguide.org/xhtml/ch01s23s33s39.xhtml -Original Message- From: Tracey Maule [SMTP:[EMAIL PROTECTED]] Sent: Friday, 4 October 2002 12:37 To:

[DUG]: detect browser

2002-10-03 Thread Tracey Maule
Hi guys   I need to display different input forms for users hitting my cgi app from a handheld.   does anyone here know anything about how to detect what browser is hitting an app ?       TraceySoftware Developer / Web MasterLogis[EMAIL PROTECTED](025) 213-1065

Re: [DUG]: Copying an Object

2002-10-03 Thread Paul McKenzie
Just tell them it's a field trial ;-) Regards Paul McKenzie Analyst Programmer SMSS Ltd. - Original Message - From: "Guy Brown" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, October 04, 2002 12:04 PM Subject: RE: [DUG]: Copying an Object

RE: [DUG]: Copying an Object

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

Re: [DUG]: .frm files

2002-10-03 Thread Paul Lowman
Max Thanks - it worked a treat Regards Paul Lowman Lowman Consulting Ltd. [EMAIL PROTECTED] --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To

Re: [DUG]: Bad news - Virus.

2002-10-03 Thread Paul Eggleton
Laurie Bisman wrote on Thursday, 3 October 2002 8:19 p.m.: > Beats me how it got past Nortons auto-protect that was > enabled at the time.. It probably depends on when you last did a LiveUpdate, since this is a fairly new virus. - Paul -

Re: [DUG]: .frm files

2002-10-03 Thread Mark Derricutt
Theres a command line 'convert.exe' program to translate to/from --On Friday, October 04, 2002 09:55:24 +1200 Paul Lowman <[EMAIL PROTECTED]> wrote: > files are text based while the D4 ones are binary streams - anyone know > of a way to either translate them or otherwise load them into D4 ?

RE: [DUG]: Copying an Object

2002-10-03 Thread Conor Boyd
The term for this is "cloning" an object. There is no built in way of doing this in Delphi, and there are issues involved in any cloning operation; e.g. are you interested in a shallow clone (just the one object), or a deep clone (your one object, and all objects to which it refers)? Probably a

RE: [DUG]: .frm files

2002-10-03 Thread Max Nilson
Paul Lowman asks: > anyone know of a > way to either translate them or otherwise load them into D4 ? The following code shows you how to do this conversion using Delphi's internal utility routines. procedure ProcessFile(const Filename: string); var DFMStream: TFileStream; NewStream: TMemory

[DUG]: Copying an Object

2002-10-03 Thread Matthew Evans
How can I make an exact copy of an object without creating it and going through setting the properties of the original? --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http:/

Re: [DUG]: .frm files

2002-10-03 Thread Paul Lowman
Thanks for the quick responses - I'll get the forms in binary. Regards Paul Lowman Lowman Consulting Ltd. [EMAIL PROTECTED] --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Websit

RE: [DUG]: .frm files

2002-10-03 Thread Conor Boyd
You could maybe try right-clicking the form in D6, and clearing the checkmark beside the "Text DFM" option, although whether this will produce a DFM which D4 will read, I don't know. Alternatively, select everything on the form in D6, copy it to the clipboard, paste it into a blank form in D4...

RE: [DUG]: .frm files

2002-10-03 Thread Dave . Jollie
Go into Environment options in D6, choose the designer tab, & uncheck "New forms as text". The help on this says: Toggles the format in which form files are saved. The form files in your project can be saved in one of two formats: binary or text. Text files can be modified more easily by other to

[DUG]: .frm files

2002-10-03 Thread Paul Lowman
Hi all I have some forms from D6 which I need to load into D4 - they have no components on them that are not avaailable in D4. I note that the D6 .frm files are text based while the D4 ones are binary streams - anyone know of a way to either translate them or otherwise load them into D4 ? Regard

RE: [DUG]: File properties

2002-10-03 Thread Andreas Toth
Is this what you mean? uses ShellAPI; var SEI: TShellExecuteInfo; begin FillChar(SEI, SizeOf(SEI), 0); SEI.cbSize := SizeOf(SEI); SEI.lpFile := 'Project1.exe'; // Replace as required SEI.lpVerb := 'Properties'; SEI.fMask := SEE_MASK_INVOKEIDLIST; ShellExecuteEx(@SEI); end; -And

Re: [DUG]: File properties

2002-10-03 Thread Paul McKenzie
Are you wanting to, programmatically, view the properties window or modify the properties that are displayed in the window ? Regards Paul McKenzie Analyst Programmer SMSS Ltd. - Original Message - From: "Kevin Parker" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PRO

[DUG]: [Kylix 3]

2002-10-03 Thread Leigh Wanstead
Hi All, Has anyone faced following situation? Put a breakpoint on a line inside a form, while integrated debugger stops on that line, it display the form. In Delphi, it displays the source code. Thanks in advance Leigh ---

RE: RE: RE: [DUG]: Class refs in classes

2002-10-03 Thread Mark Derricutt
Sounds you want java packages, or namespaces as provided by Delphi.NET/.NET --On Wednesday, October 02, 2002 17:10:16 +1200 Chris Milham <[EMAIL PROTECTED]> wrote: > Having entries like "LibraryRoot.SubLibrary1.AnotherSubLibrary.FuncX" -- \m/ -- "...if I

Re: [DUG]: Bad news - Virus.

2002-10-03 Thread Laurie Bisman
Yes, Nello Sestini emailed me and said that he'd received an infected message from me. Damn virus is difficult to purge as it closes down all the major virus programs. I downloaded Symantic's FxBgBear.EXE from their site and then tried to run it. It kept freezing. I then closed down, restart