Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread Alan Rose
Sadly by the time they release Delphi 64 bit I will have been fully converted into a dot net programmer and using VS. Sad but true in my case. > > Of course, should we ever get a 64-bit compiler, you can be > pretty damned sure you are running on 64-bit Windows if/when > you are compiling t

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread Alan Rose
FWIW I found what I needed regarding 64 bit detection with this code I found online class function TOSInfo.IsWOW64: Boolean; type TIsWow64Process = function( Handle: THandle; var Res: BOOL ): BOOL; stdcall; var IsWow64Result: BOOL; IsWow64Process: TIsWow64Process; begin IsWow64Process :=

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread Alan Rose
hat if you intend writing code that will port > to Win64 (should Embarcadero ever > deliver) and still correctly identify 64-bit-ness. > > > -Original Message- > From: delphi-boun...@delphi.org.nz > [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Alan Rose >

[DUG] Help Detecting Windows Version

2010-12-12 Thread Alan Rose
Hi, has anyone got a function they can share that will detect all current versions of Windows out there? F.i. My old routine cant detect Windows Server 2008 64 bit Tried googling but can only find outdated code like mine. ___ NZ Borland Developers Group

Re: [DUG] What is the future for Delphi programmer? - summary

2010-01-21 Thread Alan Rose
> > Regards > Leigh > -Original Message- > From: delphi-boun...@delphi.org.nz > [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Alan Rose > Sent: Friday, 22 January 2010 11:42 a.m. > To: NZ Borland Developers Group - Delphi List > Subject: Re: [DUG] What is the futu

Re: [DUG] What is the future for Delphi programmer? - summary

2010-01-21 Thread Alan Rose
I think a quick play with seek co nz will tell you the story of where Delphi is heading here in NZ. "Delphi" keyed in as a keyword only returned 6 entries (in Auck only) and I doubt most are referring to Delphi as a major language as well. Forget how good Delphi is as a RAD tool I think its sad it

Re: [DUG] IPC with an elevated program

2010-01-18 Thread Alan Rose
If you want to to use shared memory in Vista and above its best to write a service to create global shared memory that all users can access. The key here is global shared memory and with the right security bits set. Best to Google global shared memory for more info. heres one link I found that ma

Re: [DUG] HELP! : Windows7 64 bits - Delphi install issues

2009-11-10 Thread Alan Rose
FWIW I installed D7 on Vista Ok. From memory I ignored messages about compatibility and installed to a custom directory off the root directory as opposed to the default program files. Maybe not a needed step but was just playing safe with Vistas UAC feature. Apart from a few visual minor quirks in

Re: [DUG] Program screen video capture

2009-08-23 Thread Alan Rose
I'll second that. Easy to learn and free. It even creates the html script to run your flash movie so all you have to do is create a nice little html intro to present your movie(s). > > > I strongly recommend Wink. It does all I want and for best > price (free). > http://www.debugmode.com/wink

Re: [DUG] Can anyone explain this?

2009-08-02 Thread Alan Rose
I'll just add to my last post, if the field is actually a timestamp then use { ts '-mm-dd hh:nn:ss'} > -Original Message- > From: delphi-boun...@delphi.org.nz > [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jeremy Coulter > Sent: Monday, 3 August 2009 11:25 a.m. > To: 'NZ Borla

Re: [DUG] Can anyone explain this?

2009-08-02 Thread Alan Rose
It just a guess but with ADO it might pay to use the ODBC Canonical form of the date or timestamp in your filter. This avoids any misunderstanding due to localization when using dates. The date format is {d '-mm-dd'}e.g { d '2009-03-01'} no idea if it works in a filter > -Original Mes

Re: [DUG] Future of us Delphi programmer in New Zealand?

2009-04-08 Thread Alan Rose
Probably because Delphi came out before Visual Studio and they didn't see the need to change. On the Delphi thing, I only see the Net getting bigger, faster, and more secure. So it heaps of new cheap low power devices slowly but surely encroaching over the PC's domain in business and especially at

Re: [DUG] RAD Studio launch

2008-11-16 Thread Alan Rose
Haven't you heard. Wellington is only the third largest city in NZ, so it doesn't count. :-) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of That Job Sent: Monday, 17 November 2008 11:09 a.m. To: delphi@delphi.org.nz

[DUG] Keep DCOM Server Alive

2008-08-25 Thread Alan Rose
Anyone know a trick to keep a dcom server alive after its been started by a client then that client exits. I don't want to have to start the server first and I dont what to have to write a external guardian or some other external app. Any ideas. Somehow I need to increase the reference count intern

Re: [DUG] Delphi update 7.1

2008-07-28 Thread Alan Rose
FWIW I'm pretty sure I've used 7.1 with no problems. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Garton Sent: Tuesday, 29 July 2008 4:13 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG]

Re: [DUG] [Off topic] How to become an IT Architect?

2008-07-28 Thread Alan Rose
Probably * Move to Wellington and buy a black suit. * Be good at drawing diagrams and listing requirements. * Finally pass on task to those below you to implement, then take full credit from CEO. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Beha

RE: [DUG] Delphi PHP

2008-05-19 Thread Alan Rose
Hi John I have just started looking into PHP and recently downloaded PHP for Delphi. Its too early for me to give any real feedback, however I did get a socket error when trying to open a project. I clicked the box to send the error back to HQ and to their credit I got a response the next day with

RE: [DUG] Developers not upgrading

2008-05-08 Thread Alan Rose
Hi Phil, I have found the Delphi 2007 IDE (win32 only) to be an improvement over D2006 for reliability, however still some glitches. It seems however if you can hold out for Tiburon released later this year you will get your Unicode support as well. Personally I'll be looking for a sign that Codege

RE: [DUG] Menus

2008-04-23 Thread Alan Rose
Add them to an Actionlist then they can share -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rohit Gupta Sent: Thursday, 24 April 2008 2:28 p.m. To: NZ Borland Developers Group - Delphi List Subject: [DUG] Menus My brain is not working today. Is there

[DUG] FYI Roadmap Updated

2008-04-23 Thread Alan Rose
http://dn.codegear.com/article/36620 ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

RE: [DUG] Change Service Startup Type to Disabled

2007-05-13 Thread Alan Rose
l, nil, nil, nil) then ShowMessage(SysErrorMessage(GetLastError)); end else ShowMessage(SysErrorMessage(GetLastError)); end else ShowMessage(SysErrorMessage(GetLastError)); > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Ros

[DUG] Change Service Startup Type to Disabled

2007-05-13 Thread Alan Rose
Anyone know how to change a Service "Startup Type" from Automatic to Disabled in code? ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMA

RE: [DUG] Sending data between process on same computer on windows

2007-05-07 Thread Alan Rose
You can still however share memory between a service and desktop app if you create global shared memory. If you have the service create the memory then you dont have to worry about the desktop app running at admin level. From: [EMAIL PROTECTED] [mailt

[DUG] Program Filer Directory

2007-05-07 Thread Alan Rose
Just wondering if anyone has held of a directory called "Program Filer" most likely found on a Norwegian version of Windows XP. Is it a system folder etc. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://de

RE: [DUG] Vista and Ini files

2007-05-01 Thread Alan Rose
I think anyone who is thinking of going against the tide by bypassing or sidestepping the new security features with Vista should think twice. File virtualization (FV) for system folders and registry are only there for legacy support. Eventually MS will turn FV and other legacy features off and may

RE: [DUG] Cannot attach to service manager

2007-04-23 Thread Alan Rose
Wasn't as bad as I first thought, just needed to change protocol to TCP. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Rose > Sent: Monday, 23 April 2007 4:32 p.m. > To: NZ Borland Developers Group - Delphi List >

[DUG] Cannot attach to service manager

2007-04-22 Thread Alan Rose
I'm running a firebird 2.0 backup util on Vista using IBBackupService and also doing a validation using TIBValidationService. This runs fine on XP and I've had no problems connecting to FB normally on vista using localhost protocol, however the backup keeps coming up "Options Error" "Cannot attach

RE: [DUG] Vista Summary Link

2007-04-19 Thread Alan Rose
Oops here is a more friendlier link with the i.ppt appended :) http://bdntv.borland.com/pix/fhaglund/VistaUACandDelphi/VistaUACandDelph i.ppt If it happens again paste this bdntv.borland.com/pix/fhaglund/VistaUACandDelphi/VistaUACandDelphi.ppt > > http://bdntv.borland.com/pix/fhaglund/VistaUACa

[DUG] Vista Summary Link

2007-04-19 Thread Alan Rose
I can see there are going to be a lot more Vista questions coming up on this NG and its hard to find good Delphi documentation on these topics. Here's a link I found yesterday which gives a nice summary of issues that I thought was worth sharing. Note it's a 4mb PowerPoint doc http://bdntv.borland

RE: [DUG] Weird behavior in Vista

2007-04-19 Thread Alan Rose
I was suspecting our spam filters on our server because I get the occasional DUG message in my spam folder. Kind of takes that quick interactive aspect away when there are huge delays. If its not the news group then I'll have to solve it here another day. Thanks to Phil Scadden for your suggestio

RE: [DUG] Weird behavior in Vista

2007-04-19 Thread Alan Rose
Yeah, I asked this question back on the 12/4 as I to found this entry was causing my app to run slow. I believe Iv'e used this tool as well in the past, but never again :) FWIW am I the only one who has to wait up to ten minutes to see my post appear. Its only this newsgroup that this happens to m

RE: [DUG] Weird behavior in Vista

2007-04-19 Thread Alan Rose
Is there an entry for x.exe under [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options] > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Nick > Sent: Friday, 20 April 2007 11:07 a.m. > To: NZ Borland Develope

RE: [DUG] Vista Services

2007-04-17 Thread Alan Rose
I think this link should work. Our web services are down this morning so I can't check. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=748596&SiteID=1 >From the quick read I had yesterday its a new security feature in Vista to stop malicious software from creating havoc in shared memory. A

RE: [DUG] Vista Services

2007-04-17 Thread Alan Rose
FWIW I think the service has to create the global shared memory first on Vista. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Paul > Sent: Tuesday, 17 April 2007 6:29 p.m. > To: NZ Borland Developers Group - Delphi List > Subject: Re: [DUG] Vista

RE: [DUG] Vista Services

2007-04-17 Thread Alan Rose
Yeap I read up about that yesterday. I've found an interesting link that talks about the problem I have with (Vista) Global shared memory between services and apps so hopefully I'll have that resolved today. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On B

RE: [DUG] Vista Services

2007-04-16 Thread Alan Rose
Ok it appears to be more of an issue with shared memory now. Vista appears to be a bit more fussy with shared memory security etc Ive found some good reference on the net and working through it > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behal

RE: [DUG] Vista Services

2007-04-16 Thread Alan Rose
t; Does it have a XP manifest? No, good idea > > Can you see it in task manager? Yeap, just creating a new simple test service now for easier debugging. If I find out anything interesting I'll let you know. > > Myles. > > -Original Message- > From: [EMAIL P

[DUG] Vista Services

2007-04-16 Thread Alan Rose
Anyone else having trouble getting a service they have written to work on Vista? My service runs fine on XP and debug code fails to even execute at servicestart procedure. Computer management tool reports started Ok? Suspect new security feature at play. ___

[DUG] Image File Execution Options- App running slow

2007-04-11 Thread Alan Rose
Does anyone know if theres a relationship between Delphi and entries in the registry under [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options] I noticed in the last day or two my app was running slow and whats more if I renamed the exec file it would r

[DUG] Vista Question

2007-04-04 Thread Alan Rose
Hi, I'm just getting to grips with Vista today and UAC. I see application data is supposed to be written to the common Appdata folder which on Vista is c:\programdata. However this folder appears to be a hidden system folder. Anyone know why this is. Makes it awkward if you want a user to grab a fi

RE: [DUG] d2007 trial now available

2007-04-04 Thread Alan Rose
Is this an online install via your download manager? I'd like to install trial on a standalone machine. (ie no internet connection) If so is there an install executable I can download. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Richard Vowles

[DUG]: Can not close db connection

2003-04-01 Thread Alan Rose
I have a piece of code that uses IBXpress and Firebird to insert 25 thousand records into an empty database The process will put the records into four new tables and create four update store procedures as well. The problem is when I go to call IBDatabase1.connected := False; It just hangs there and

[DUG]: 3DS files

2003-04-01 Thread Alan Rose
If anyone on this list knows of someone who can alter 3DS files (3D object) can they please email me direct. Thank you. Alan > This electronic message, together with any attachments, is confidential > and intended to be read by the named recipient. It may contain information > that is confidentia

RE: [DUG]: Large Fonts

2003-03-20 Thread Alan Rose
Thanks for that Max. >> The only remaining issue is that Delphi, by design, does not scale the actual form, only all the components on it. I did read on one of the other newsgroups that this behaviour was only with resizable forms. ie dialogs and single borderstyles do resize. But don't quote me

[DUG]: Large Fonts

2003-03-20 Thread Alan Rose
Third party resizing components aside. I would be keen to hear from anyone how they dealt with resizing issues between large and small fonts. The typical problem you see is a form border covering components placed at the edge of the form when viewed on a PC using large fonts. I did a search on some

RE: [DUG]: Formating integer

2003-01-26 Thread Alan Rose
From Delphi help about format strings"%" [index ":"] ["-"] [width] ["." prec] typed   Decimal. The argument must be an integer value. The value is converted to a string of decimal digits. If the format string contains a precision specifier, it indicates that the resulting string must co

RE: [DUG]: Hint delay

2002-12-27 Thread Alan Rose
Application.HintHidePause -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alistair George Sent: Saturday, 28 December 2002 1:31 p.m. To: Multiple recipients of list delphi Subject: [DUG]: Hint delay Anyone know if there is a method to increase the displa

RE: Re: Re: [DUG]: .net vs websnap

2002-08-02 Thread Alan Rose
Peter Wrote: Delphi 7 has a lot of enhancements aimed at the move to .NET.  Thecompiler works very well.  A simple app was demonstrated that ran on aWindows PC and a Compac IPac running Windows CE.  Looked the same, andthe code was just the same as we all know and love.Fantastic! Can't wait

[DUG]: Mail Merge

2001-11-13 Thread Alan Rose
Hi, I have an application in which I wish to create a mail merge feature and the contact information is held in a Access db. Can anyone suggest a way they have handled this in the past. My initial idea's include doing something with a word document though I believe this would mean they would need

RE: [DUG]: Stringgrid not repainting

2001-10-17 Thread Alan Rose
Ok my mistake it was firing just a logic problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Rose Sent: Thursday, October 18, 2001 3:29 PM To: Multiple recipients of list delphi Subject: [DUG]: Stringgrid not repainting Hi , I am using the

[DUG]: Stringgrid not repainting

2001-10-17 Thread Alan Rose
Hi , I am using the ownerdraw method on a stringgrid and anything works fine until I scroll the grid. for some reason the drawcell event is not firing when a new section is scrolled into view. If I call the repaint method manually (temp button) then that corrects the problem. However I should not

RE: [DUG]: Pocket Studio Trial

2001-10-10 Thread Alan Rose
Yeah I have been watching these guys over the last few months and have been frequently getting their newsletters. Haven't done anything about it yet as I've been waiting for an excuse to use it. If you have tried the trial version I'd be keen to hear your comments and how well the install went.

[DUG]: [OffTopic] Work Wanted

2001-10-10 Thread Alan Rose
Hi, For Whom It May Concern. We have two experienced Delphi contractors looking for work. All areas of NZ considered. For more details please email me at [EMAIL PROTECTED] Thank you. --- New Zealand Delphi Users group -

[DUG]: Quality Icons

2001-09-04 Thread Alan Rose
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.

RE: [DUG]: Wrap text

2001-08-24 Thread Alan Rose
If you dont mine no source code try http://www.marcocantu.com/tools/cantools.htm (Freeware) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Osborne Sent: Saturday, August 25, 2001 1:49 PM To: Multiple recipients of list delphi Subject: [DUG]: Wrap te

RE: [DUG]: DB Grids

2001-08-15 Thread Alan Rose
Use the DBGrids DrawColumnCell event Example procedure TfrmMain.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); begin with (Sender as TDBGrid).Canvas do begin // here we are testing if this row is selected I

RE: [DUG]: DB Grids

2001-08-15 Thread Alan Rose
TFields has a readonly property. This will allow you to make some columns readonly. Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Martin Sent: Tuesday, October 16, 2001 10:13 AM To: Multiple recipients of list delphi Subject: [DUG]: DB Grids Hi

RE: [DUG]: Destroying Objects

2001-07-18 Thread Alan Rose
I agree with what you say, no arguments there, but it's a very good question. As I have often wondered if these memory leaks only relate to the life time of the application. Somewhere in the past I am sure I read that Windows will release all associate memory with that application (very confusing)

RE: [DUG]: Sharing a bitmap between processes

2001-07-16 Thread Alan Rose
How about a resource dll. Heres an example from the delphi3000.com site Create and build an empty DLL project, that contains a resource link reference to the .res file that contains your resources. library ResTest; uses SysUtils; {$R MYRES.RES} begin end. To use you resource only DLL, simp

RE: RE: [DUG]: Speaking of things massive...

2001-07-16 Thread Alan Rose
For what it is worth Luke I have used a TListView in virtual mode before for displaying a large number of records. It is well worth the effort. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Luke Pascoe Sent: Tuesday, July 17, 2001 9:15 AM To: Multiple r

RE: [DUG]: Operation must be an updateable query

2001-07-15 Thread Alan Rose
Are you doing batch updates? ie Lock type ltBatchOptimistic. Else if it's a direct update maybe your SQL is not returning a live result set (due to conditions you put on it). You can check this with the Canmodify method -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

RE: [DUG]: If you had to choose (win98se or WinMe)

2001-07-08 Thread Alan Rose
No. I think anyone who has already been on Win2000 will tell you the 9x series is nothing compared to the new Win architecture for stability. I dont believe there is anything to gain from going from 98 to ME. I would go for Win2000 or wait for XP. Cheers. PS This is from a programming perspective.

RE: [DUG]: Printing

2001-07-03 Thread Alan Rose
A while back I had a similar problem displaying a logo on a print out. I ended using StrectchDraw cause I knew the size of the output I wanted. It went somthing like this. (Might be of some help)   // Get the number of pixels along the X and Y axis    FPixInInchX := GetDeviceCaps(Printer.Ca

RE: [DUG]: if case else

2001-06-27 Thread Alan Rose
Oops sticky fingers. Second reply was trying fix my spelling mistake. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Rose Sent: Thursday, June 28, 2001 4:24 PM To: Multiple recipients of list delphi Subject: RE: [DUG]: if case else I feel like

RE: [DUG]: if case else

2001-06-27 Thread Alan Rose
No price for spelling contests wrong though --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of

RE: [DUG]: if case else

2001-06-27 Thread Alan Rose
I feel like I've just been in one of those radio contents where the ninth caller gets a prise. :) --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To

RE: [DUG]: if case else

2001-06-27 Thread Alan Rose
You missed the end cause for the first begin. eg if InputIsCDG then begin case WriteRadioGroup.itemindex of 0: BINbuffer := EmptyWAV; 1: BINbuffer := CDGbuffer; 2: BINbuffer := EmptyWAV+CDGbuffer; end; end else begin case WriteRadioGroup.itemindex of

RE: [DUG]: The Long and Winding Road

2001-06-25 Thread Alan Rose
Peter try this link. It may be of interest to you. http://xtra.co.nz/technology/0,,818-537322,00.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Harrop Sent: Tuesday, June 26, 2001 11:34 AM To: Multiple recipients of list delphi Subject: Re: [D

RE: [DUG]: TToolbar button resize glitch - clarification

2001-06-12 Thread Alan Rose
That's the toolbars normal behaviour with a ttoolbutton. For unique button sizes try using tspeedbuttons instead -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of James Low Sent: Wednesday, June 13, 2001 9:00 AM To: Multiple recipients of list delphi Subjec

RE: [DUG]: HP Printer - CPU Window via ( F12 - CPU debug window)

2001-06-07 Thread Alan Rose
dll's listed in the Delphi exception reside in C:\WINNT\system32\spool\drivers\w32x86\2 Therefore I was able to add the following line to the autoexec.bat file: PATH=C:\WINNT\system32\spool\drivers\w32x86\2;%PATH% -Original Message- From: Alan Rose [mailto:[EMAIL PROTECTED]] Sent: T

RE: [DUG]: F12 - CPU debug window

2001-06-07 Thread Alan Rose
I dont see the relationship between the F12 (hotkey) problem reported and getting the CPU window on calling the printer unit. I checked the key HKLM\SOFTWARE\Microsoft\Windows\NT\CurrentVersion\AeDebug and the value was 0. I wonder if it had something to do with the justintime debugger option on i

RE: [DUG]: F12 - CPU debug window

2001-06-06 Thread Alan Rose
On the subject of the CPU window popping up. I posted awhile back a problem of the CPU window popping up every time I called the printer unit. e.g. printer.begindoc Someone recently emailed me to see if I found an answer, as they too had this problem. The only way to stop it was to turn off debugg

RE: [DUG]: getting date/time

2001-06-06 Thread Alan Rose
just incase it was the file datetime you where interested in memo1.Lines.Add(FormatDateTime('d-mmm-yyy h:nn am/pm',FileDateToDateTime((FileAge('bla.txt'); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Rose Sent: Thursday

RE: [DUG]: getting date/time

2001-06-06 Thread Alan Rose
assuming the datestamp line is there on load this updates memo1.Lines[Memo1.lines.Count-1] := FormatDateTime('d-mmm- h:nn am/pm',now); else to put it there for the first time memo1.lines.Add(''); // put in extra line memo1.Lines.Add(FormatDateTime('d-mmm- h:nn am/pm',now)); -Ori

RE: [DUG]: Exe Size

2001-06-05 Thread Alan Rose
Shame you can't debug the program on one of these machines. As the guys have already mentioned you are limited in Windows resources with win95,98. You could try putting showmessages at each step of your form creation to help narrow down where it is blowing it's resources (watch the memory usage as

[DUG]: D6 Product Launch

2001-05-30 Thread Alan Rose
Having seen the D6 product launch today in Chch I'd be keen to hear what other people on this list felt about the new D6. I'd like to start off by saying thank you to Borland for putting the event on today. The speaker John K. (Sorry name escapes me) did a wonderful job of demonstrating D6. That i

RE: [DUG]: Checkboxs in TListview

2001-05-24 Thread Alan Rose
False then if Item.Checked <> Boolean(Item.StateIndex) then // checkbox state changed begin Item.StateIndex := Integer(Item.Checked); // post change to DB here as we know which item has changed end; end; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMA

RE: [DUG]: TDateTimePicker/Win32

2001-05-23 Thread Alan Rose
Cheers Dennis that works. The chocolate fish is yours. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dennis Chuah Sent: Wednesday, May 23, 2001 3:55 PM To: Multiple recipients of list delphi Subject: RE: [DUG]: TDateTimePicker/Win32 Have you tried ho

RE: [DUG]: TDateTimePicker/Win32

2001-05-22 Thread Alan Rose
Another good use is to set the format to 'h:mm tt' for the time mode to get rid of those stupid seconds. You obviously also figured out you need commctrl in uses clause which I left out. After writing this I thought to myself I really should see if I could put code into a enhanced component of T

RE: [DUG]: TDateTimePicker/Win32

2001-05-22 Thread Alan Rose
Where there's a will there's a way. Try this Peter. uses ComCtrls var DFormat : String; DFormat := 'ddd dd/MMM/'; DateTimePicker1.Perform( DTM_SETFORMAT , DWORD(NIL) , DWORD(DFormat) ); This needs to be execute in the forms show event to work. -Original Message- From: [EMA

RE: [DUG]: Annoyance: Auto Create form list

2001-05-22 Thread Alan Rose
Are you saying if you use the "Add to project" (Shift+F11) button to add your form to the project. The form still wont appear in the list? In your project file (.dpr) there should be a reference to this forms pas file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]O

RE: [DUG]: how to generate an event

2001-05-21 Thread Alan Rose
stringgrid1.repaint I believe should fire off that event (not tested). If thats what you are asking. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Damien Long Sent: Monday, May 21, 2001 5:27 PM To: Multiple recipients of list delphi Subject: [DUG]: how

RE: [DUG]: Listview Question: where is itemdata.

2001-05-01 Thread Alan Rose
If am using the listview in report mode and I am not assigning icons to the records then I sometimes use the imageindex or stateindex property to hold my database key record value (both properties of type integer) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Beh

RE: [DUG]: ownerdraw on Listviews

2001-05-01 Thread Alan Rose
:[EMAIL PROTECTED]]On Behalf Of Alan Rose Sent: Wednesday, May 02, 2001 8:39 AM To: Multiple recipients of list delphi Subject: RE: [DUG]: ownerdraw on Listviews I see the listview has the ownerdraw property so set this to True and use the oncustomdraw event. Delphi's help on oncustomdraw s

RE: [DUG]: ownerdraw on Listviews

2001-05-01 Thread Alan Rose
I see the listview has the ownerdraw property so set this to True and use the oncustomdraw event. Delphi's help on oncustomdraw should then help you out. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy Coulter Sent: Wednesday, May 02, 2001 8:24 AM

RE: [DUG]: TTreeView Update

2001-04-29 Thread Alan Rose
Oops. Fourth Column would be Listview1.Items.Item[0].SubItems.Strings[2] as caption is first column then substrings -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Rose Sent: Sunday, April 29, 2001 9:00 PM To: Multiple recipients of list delphi

RE: [DUG]: TTreeView Update

2001-04-29 Thread Alan Rose
You mean something like this example that is appending the charactor 'X' to the value in the fourth column on the first row of the listview Listview1.Items.Item[0].SubItems.Strings[3] := Listview1.Items.Item[0].SubItems.Strings[3] + 'X'; -Original Message- From: [EMAIL PROTECTED] [mailto:

RE: [DUG]: TTreeView Update

2001-04-29 Thread Alan Rose
Something like for i := 0 to Listview1.Items.Count - 1 do begin Listview1.Items.Item[i].Caption := 'bla'; Listview1.Items.Item[i].SubItems.Strings[0] := 'bla2'; Listview1.Items.Item[i].SubItems.Strings[1] := 'bla3'; end; -Original Message- From: [EMAIL PROTECTE

RE: [DUG]: Access DateTime

2001-04-22 Thread Alan Rose
even - Original Message - From: Alan Rose <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Sent: Monday, 23 April 2001 10:15 Subject: RE: [DUG]: Access DateTime > No luck. My only solution to date has been to use a parametised dataset. But >

RE: [DUG]: Access DateTime

2001-04-22 Thread Alan Rose
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Neven MacEwan Sent: Monday, April 23, 2001 10:03 AM To: Multiple recipients of list delphi Subject: Re: [DUG]: Access DateTime Alan What about Update tablename set field = '2001-04-23 14:23:00' - Original Mess

[DUG]: Access DateTime

2001-04-22 Thread Alan Rose
Hi, I have been using the following syntax to update a datetime field in a Access 2000 table Update tablename set field = #23-APR-2001# I'd now like to add a timestamp as well, but have had no luck in figuring out the syntax. e.g. Update tablename set field = #23-APR-2001 02:23:00 PM# Can someo

RE: [DUG]: GUID

2001-04-01 Thread Alan Rose
uot;Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Sunday, 1 April 2001 12:41 Subject: RE: [DUG]: GUID > On 1 Apr 2001, at 9:40, Alan Rose wrote: > > > Hi, me again. On reading your question again I'm wondering if you > > where simply asking is hardwa

RE: [DUG]: GUID

2001-03-31 Thread Alan Rose
Hi, me again. On reading your question again I'm wondering if you where simply asking is hardware a factor when generating a GUID. I did read once that hardware was involved but can't confirm. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rohit Gupta Se

RE: [DUG]: GUID

2001-03-31 Thread Alan Rose
Should have also mentioned each time you generate a GUID (Ctrl-Shift-G in Delphi). A randomly generated number is assigned and apparently the odds are like winning Lotto or higher of getting the same GUID as someone else. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: [DUG]: GUID

2001-03-31 Thread Alan Rose
Can't tell you how they are constructed. But they are typically used in com objects to eliminate naming conflicts between different versions of a product or different products. They are also assigned at design time and can be viewed in your code, hence they remain static. What are you trying to do

RE: [DUG]: System Directory

2001-03-28 Thread Alan Rose
Nahum Wild Sent: Thursday, March 29, 2001 10:00 AM To: Multiple recipients of list delphi Subject: RE: [DUG]: System Directory Sticking those in the windows system directory makes sense. Nahum. > -Original Message- > From: Alan Rose [mailto:[EMAIL PROTECTED]] > Sent: Thursday,

RE: [DUG]: System Directory

2001-03-28 Thread Alan Rose
7;m using the packages as plugins so it makes much more sense to do it this way so the user can get access to their location easily to do appropriate 'stuff'. Nahum. > -----Original Message- > From: Alan Rose [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 29, 2001 09:46

[DUG]: System Directory

2001-03-28 Thread Alan Rose
Hi, I have created a install program that was putting my packages into the windows system directory which I obtained by the api call GetSystemDirectory. Typically this was c:\windows\system32 . I just assumed that this path was on the system path list. But I found on my win95 machine it wasn't, bu

RE: [DUG]: Mapi...What is the most painless way to get started.

2001-03-26 Thread Alan Rose
Hi Steve, I went to www.delphi3000.com and typed mapi into their search engine. There where two examples there that should help you on your way. If you have not used this site before, you need to become a member first. Which simply involves registering your name etc. -Original Message- Fr

[DUG]: Mobile Development

2001-03-22 Thread Alan Rose
Thanks guys for those links. I can't believe Borland have over looked the potential of this market. After all it was in their poll last year. Maybe they are keeping it all under wraps but I dont see why as Kylix was announced well in advance. Many programmers are turning to languages like Java tha

  1   2   >