[DUG]: TDateTimePicker Time Format

2003-01-21 Thread Ross Levis
Using D5, I want the TDateTimePicker in dtkTime mode to display the time as hh:nn:ss (24 hour clock), however, it seems it decides it's own format based on the regional time settings. I tried changing the LongTimeFormat & ShortTimeFormat to no avail. Is there anyway to change the format witho

RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Laurence Bevan
Here's a function which retrieves the version number, major, minor & build. Change the result format to suit your requirements e.g. zero padded numbers. function GetExeVersionStr: string; var Dummy: DWORD; FileVerInfoSize: integer; Buffer: PChar; PFFI: PVSFixedFileInfo; FFISize: DWORD; b

Re: [DUG]: A question about ClientDataSets

2003-01-21 Thread Alister Christie
Traci Sumpter wrote: > have you tried RefreshRecord?? Yes, RefreshRecord retrieves the entire query, I should look at the code but I suspect the TClientDataSet.RefreshRecord passes the request to the TDataSetProvider which opens the entire TQuery, locates the record then sends that record back

RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Andreas Toth
...also, why go to all this trouble? After all, zero-padded version numbers are quite non-standard in the world of Windows, so why deviate? -Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Paul Mckenzie Sent: Wednesday, 22 January 2003 15:56 To:

RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Andreas Toth
Good idea! At least with this system you retain compatibility with the rest of the operating system and other tools that use this information (such as Beyond Compare (with the version plug-in), for example). -Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]O

RE: [DUG]: A question about ClientDataSets

2003-01-21 Thread Traci Sumpter
have you tried RefreshRecord?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alister Christie Sent: Wednesday, 22 January 2003 4:02 p.m. To: Multiple recipients of list delphi Subject: [DUG]: A question about ClientDataSets I've been playing around wit

Re: [DUG]: Ellipsis truncation

2003-01-21 Thread Dennis Chuah
Call the WinAPI function DrawText (or it might have been DrawTextEx), and one of the options is to shorten the string with an ellipsis. You can also get DrawText to return the shortened string, rather than draw it on the canvas. Dennis. - Original Message - From: "Nahum Wild" <[EMAIL PR

[DUG]: A question about ClientDataSets

2003-01-21 Thread Alister Christie
I've been playing around with TClientDataSets -> TDataSetProvider -> TQuery. I have noticed that when I call RefreshRecord to retrieves the entire table (1900 records) to refresh a single record. This seems a bit of an overkill to me. Is there anyway of refreshing just a single record? Alis

Re: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Paul Mckenzie
That is exactly it ;-) We do it manually... Regards Paul McKenzie Analyst Programmer SMSS ltd. - Original Message - From: "Conor Boyd" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 3:40 PM Subject: RE: [DUG]: seem to rem

RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Ross Levis
I suggest you start your build numbers from 1000 then you don't need to fiddle manually. Ross. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnS

Re: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Paul Mckenzie
The way we use version numbering is strings and manually maintaining them. I have a bit of code that will read the string from the VersionInfo Key/value pair and give you the string to display etc. Let me know if you want it ... you just pass the Key and it returns the value. Regards Paul McKenzie

RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Conor Boyd
I believe it is effectively the same, apart from the fact that Paul can presumably view his VersionInfo from the Version tab of the property pages for his executable in Explorer, etc. I think you may have to compromise here. ;-) a) Have Delphi auto-increment the number, lose preceding zeroes. b)

RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Chris Veale
how do you update it? by hand? I have a string in the code detailing the version number, but I wanted to increment this automatically when I recompile... sounds like this key-value is effectively the same as when Im doing except for the external access...? > -Original Message- > From: [E

RE: RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Stephen Bertram
To get the file version call the following with Value = 'FileVersion' Other info available includes 'CompanyName', 'LegalCopyright','ProductName','ProductVersion', HTH Stephen function FileInformation(FileName, Value: string): string; var Data: PChar; BufSize, VerHndl: DWORD; Buf: Poi

RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Conor Boyd
My code is purely to pull a version number from the header (presumably?) of a compiled exe; i.e. if you right click on an exe in Explorer and view it's Version information, you can see a FileVersion number which my code can also retrieve, e.g., if you want to display it in an About box. Basically,

Re: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Paul Mckenzie
What we used is to create our oun Key/Value pair in the VersionInfo tab and manually update (increment) the version numbering ie Key" "VersionNumber" Value: "1.84.0036" - That way the string can be anything you like (eg our current version "06.10.00") Regards Paul McKenzie Analyst Programmer SMSS l

RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Chris Veale
yeah Im after a version number like 1.84.0036 any ideas? Conor would your code work with this? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Paul Mckenzie > Sent: Wednesday, 22 January 2003 3:05 p.m. > To: Multiple recipients of list delphi > Subj

Re: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Paul Mckenzie
Note: It is incremented for every single Build of the Project and does not allow leading 0's. We do not use it because of this... Other than that - it is v useful. Regards Paul McKenzie Analyst Programmer SMSS ltd. - Original Message - From: "Conor Boyd" <[EMAIL PROTECTED]> To: "Multiple

RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Conor Boyd
Project, Options, Version Info tab, Include Version Info, Auto-increment build number. I've also got a bit of code somewhere to allow you to read the number from e.g. an About box, if it's any use to you... HTH, C. -Original Message- From: Chris Veale [mailto:[EMAIL PROTECTED]] I seem

[DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Chris Veale
Hi all. I seem to remember a topic in here about automatically updating version numbers as builds progress, can anyone please point me to the right place or can anyone please tell me if this can be done? Cheers Chris Veale --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus sys

[DUG]: D5 -> D7 filesizes

2003-01-21 Thread Ross Levis
I'm not sure if it was someone on this list who mentioned that D7 EXE filesizes were smaller than D5. I've just installed D7 and it added 100k to a 650k application. Ross. --- New Zealand Delphi Users group - Delphi List

Re: [DUG]: Ellipsis truncation

2003-01-21 Thread Terry Johnson
Has anyone else noticed that 'The Borland Bulletin', when opened in a separate window, appears on the taskbar as 'The Borland Bull..." This is obviously another MS conspiracy! Andreas Toth wrote: Isn't there an API call for doing just this... -Andreas -Original Message- From:

RE: [DUG]: Sending record

2003-01-21 Thread Ross Levis
Memory allocated in one app cannot be referenced in another app. Each app runs in it's own memory space, so WM_COPYDATA is a good option. Ross. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Allan Vergara > Sent: Wednesday, 22 January 2003 12:28

[DUG]: Sending record

2003-01-21 Thread Allan Vergara
Is it possible to send a record (via SendMessage) from one application to another without using WM_COPYDATA? I have two test apps and both are registered to receive the same message. The receiving app seems to receive the message okay, but when I tried to dereference the pointer all I got is garba

RE: Re: [DUG]: D5 Internet components

2003-01-21 Thread David O'Brien
RTFM? me? Ta, Dave. -Original Message- From: Jeremy North [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 12:21 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: D5 Internet components read the readme.txt that came with delphi 7. all will be revealed. JE

RE: [DUG]: Ellipsis truncation

2003-01-21 Thread Jeremy North
Replace directories from the start of the string, not the end also. JED [EMAIL PROTECTED] wrote on 22/01/2003 09:58:52 AM: > Okay, > > Well, I think I'm probably allowed to say that if you want to roll your own, > here are some tips completely off the top of my head: > Use the TextWidth fun

Re: [DUG]: D5 Internet components

2003-01-21 Thread Jeremy North
read the readme.txt that came with delphi 7. all will be revealed. JED [EMAIL PROTECTED] wrote on 22/01/2003 09:22:32 AM: > I am trying to move an application from D5 to D7. The app uses the > TServerSocket component from the Internet tab in D5, is there any way of > getting this component

RE: [DUG]: Ellipsis truncation

2003-01-21 Thread Conor Boyd
I thought we were behind, still on D5! -Original Message- From: Nahum Wild [mailto:[EMAIL PROTECTED]] We are currently still using Delphi 4 and don't seem to have it. :o( --- New Zealand Delphi Users group - Delph

RE: [DUG]: Ellipsis truncation

2003-01-21 Thread Conor Boyd
Okay, Well, I think I'm probably allowed to say that if you want to roll your own, here are some tips completely off the top of my head: Use the TextWidth function of the Canvas on which you're wanting to place your label to check the length of the filename. Keep reducing the length of the filenam

RE: [DUG]: Ellipsis truncation

2003-01-21 Thread Andreas Toth
Isn't there an API call for doing just this... -Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nahum Wild Sent: Wednesday, 22 January 2003 11:48 To: Multiple recipients of list delphi Subject: RE: [DUG]: Ellipsis truncation Cool, I think that

RE: [DUG]: Ellipsis truncation

2003-01-21 Thread Nahum Wild
We are currently still using Delphi 4 and don't seem to have it. :o( Nahum. > [EMAIL PROTECTED] > wrote on > > MinimiseName in FileCtrl unit... > > Why it's not in the D5 help, I dunno... > > HTH, > > C. > > -Original Message- > From: Nahum Wild [mailto:[E

[DUG]: Installing DCU components

2003-01-21 Thread Ross Levis
I've downloaded a compiled DCU component which has an associated DCR but I can't work out how to install it into the palette. I've installed PAS/DCR files before. Thanks, Ross. --- New Zealand Delphi Users group - Delphi

RE: [DUG]: Ellipsis truncation

2003-01-21 Thread Nahum Wild
Cool, I think that is what I was trying to remember. Might have a write a small funciton that finds out how long the string will be when rendered and slowly shrinking it till it fits with an '...' at the end. Nahum. > [EMAIL PROTECTED] > wrote on > > Its a flag thats

RE: [DUG]: Ellipsis truncation

2003-01-21 Thread Conor Boyd
MinimiseName in FileCtrl unit... Why it's not in the D5 help, I dunno... HTH, C. -Original Message- From: Nahum Wild [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 11:32 a.m. To: Multiple recipients of list delphi Subject: [DUG]: Ellipsis truncation Does anybody know of a

Re: [DUG]: Ellipsis truncation

2003-01-21 Thread vss
Its a flag thats part of the DrawText API callbt thats all I can remember. Take a look a that. Jeremy -Original Message- From: "Nahum Wild" <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Wed, 22 Jan 2003 11:32:17 +1300 Subject: [DUG]: Ellipsis t

[DUG]: Ellipsis truncation

2003-01-21 Thread Nahum Wild
Does anybody know of a good way of shortening a capition shown on screen to X pixels and putting an '...' at the end? I seem to recall that there might be an API call that'll do it, but I can't remember it's name. Cheers, Nahum. --

[DUG]: D5 Internet components

2003-01-21 Thread David O'Brien
I am trying to move an application from D5 to D7. The app uses the TServerSocket component from the Internet tab in D5, is there any way of getting this component into D7? cheers, Dave. --- New Zealand Delphi Users group -

RE: Re: [DUG]: StringGrid in a service form

2003-01-21 Thread David O'Brien
Sorry about the delay. I was originally using the TMS string grid, but have now tried the standard vcl stringgrid with the same result. No keyboard events do anything. I will get rid of the grid and try something else. Dave. -Original Message- From: Alistair George [mailto:[EMAIL PROTECT