Delphi-7 on Vista 64 bit

2009-07-31 Thread -K2RFP-
I ported a program written in Delphi-3 on a Windows-9x platform to a new computer with Delphi-7 on a Windows Vista 64 bit platform. It took a while to get it to work but then the computer insists on overlaying a four color shield over the icon for the final application. Can someone tell me what

Re: Delphi-7 on Vista 64 bit

2009-07-31 Thread -K2RFP-
is the name of your executable - certain words in the name can trigger the OS to think this. On Sat, Aug 1, 2009 at 1:23 AM, -K2RFP-rn...@verizon.net wrote: I ported a program written in Delphi-3 on a Windows-9x platform to a new computer with Delphi-7 on a Windows Vista 64 bit platform. It took a while

ExitWindowsEX and pchar

2009-08-14 Thread -K2RFP-
Is there a constant to use with ExitWindowsEX to produce the Sleep state with Vista? I'm using Delphi-7 and the help files don't mention it. When porting programs from Delphi-3 to Delphi-7 In get warnings about pchar being unsafe. If the programs are meant to run on Windows only is it safe to

Find Dialog

2009-09-14 Thread -K2RFP-
I'm using a Find Dialog with a Rich Edit component. The code correctly finds the text but most times it is out of view. How do I scroll the Rich Edit test so the found text is in view? __ Delphi-Talk mailing list - Delphi-Talk@elists.org

Package Problem

2009-09-18 Thread -K2RFP-
When I start up Delphi to work on a project I get the message: Can not access package information for dclusr70.bpl How can I fix this? __ Delphi-Talk mailing list - Delphi-Talk@elists.org

RichEdit Component, D7

2010-01-04 Thread -K2RFP-
I have a large plain text file I want to load into a simple editor form. The file is too big to fit into a simple TMemo so I chose a TRichEdit. The problem is it does not let me edit the text, my keystrokes are ignored. It works okay for small text files. I'm using D7 and the RichEdit that comes

Multiple Instances of A Program

2010-01-08 Thread -K2RFP-
I'm using a Mutex to prevent running multiple instances of a program. However, sometimes while running the program I want to run a second instance by setting a checkbox to allow that to happen. How do I code the program to do that? __ Delphi-Talk

Re: Multiple Instances of A Program

2010-01-11 Thread -K2RFP-
from the first instance program from the second one before checking for mutex? Regards, SZ On Fri, Jan 8, 2010 at 5:28 PM, -K2RFP-rn...@verizon.net wrote: I'm using a Mutex to prevent running multiple instances of a program. However, sometimes while running the program I want to run a second

D-7 Rich Edit

2010-01-23 Thread -K2RFP-
I'm using the RichEdit component that ships with Delphi-7. I'm using it to display plain text files. Most of the time I want the files to be read only so I set the RichEdit to read only. I included a checkbox on the form to toggle the read only state to allow/dis-allow editing. This works fine

Color?

2010-06-06 Thread -K2RFP-
On drawing on an image I have two Brush colors, C1 and C2. How do I choose a third brush color C3 such that (C3C1) and (C3C2) and C3 is a valid Brush color? __ Delphi-Talk mailing list - Delphi-Talk@elists.org

Compiler Warnings

2010-09-07 Thread -K2RFP-
I get [Warning] Unsafe typecast messages for these statements D:=integer(ListM.Objects[k]); ... ListM.Objects[k]:=TObject(D); The program works fine. The question is what are [Warnings] all about? __ Delphi-Talk mailing list -

Processing Order

2010-09-12 Thread -K2RFP-
My application has a main form in UnitA and a supporting auto-created UnitB. Both units have initialization and OnCreate procedures. What is the processing order of events when this program starts up? Similarly, with finalization and OnClose procedures, what is the order when the program

USB Serial Port

2010-11-09 Thread -K2RFP-
I have a USB device which works with a serial port. When I plug it into one computer it gets assigned to COM3. On another computer it is COM4. How can my Delphi program tell which COM port it gets assigned to? __ Delphi-Talk mailing list -

Re: USB Serial Port

2010-11-10 Thread -K2RFP-
Francois: Thank you for the reply. I know how to find the info from the device manager. What I really want to know is how to code in Delphi how to enumerate the COM ports or how to search down the registry tree. On 11/9/2010 3:19 AM,

Random Numbers

2011-01-22 Thread -K2RFP-
I have a program that uses the random number generator and there is no Randomize statement in it. From the help files this should produce the same sequence of random numbers every time the program runs. The question is, is the sequence the same for all operating systems that the program runs on?

Re: Random Numbers

2011-01-23 Thread -K2RFP-
. I thought that it would work as I want but I just wanted to make sure. Thanks for the reply. Dick, k2rfp On 1/22/2011 7:39 AM, Rory Daulton wrote: -K2RFP-, I have a program that uses the random number generator and there is no Randomize statement in it. From the help files this should produce

DPI Scaling?

2011-05-15 Thread -K2RFP-
Where can I get the DPI or scaling factor that is in use for the font size used on the screen? __ Delphi-Talk mailing list - Delphi-Talk@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Re: DPI Scaling?

2011-05-15 Thread K2RFP
for from your description. Can you provide some more details on just what it is you're trying to accomplish? Stephen Posey stephenlpo...@earthlink.net -Original Message- From: -K2RFP-rn...@verizon.net Sent: May 12, 2011 1:15 PM To: Delphi-Talk Discussion Listdelphi-talk@elists.org Subject

Run Program outside of Delphi IDE

2011-11-08 Thread -K2RFP-
I wrote a simple program to list the Com Ports available on my computer. It uses the Registry unit. It works fine when run from the Delphi IDE. I want to run it on my laptop which does not have Delphi installed. How do I get it to run? __

ShellExecute

2012-02-14 Thread -K2RFP-
If I start a process with ShellExecute, how do I close the process and its window programatically? __ Delphi-Talk mailing list - Delphi-Talk@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Re: ShellExecute

2012-02-15 Thread -K2RFP-
Okay. Got it. Thanks. On 2/14/2012 12:43 PM, François Piette wrote: If I start a process with ShellExecute, how do I close the process and its window programatically? Use ShellExecuteEx instead. You get the process handle which can be used to kill the process. Note that it is far better to

Printing Labels

2012-10-03 Thread -K2RFP-
I want to print individual 1-inch labels on fan-fold tractor feed paper. The label prints okay but the EndDoc statement causes thepaper to move to the next page. How do I get it tomove to the next label? The printer does not have any setting for labels.

Re: Printing Labels

2012-10-03 Thread K2RFP
-Original Message- From: -K2RFP- rn...@verizon.net Sent: Oct 2, 2012 1:25 PM To: Delphi-Talk Discussion List delphi-talk@elists.org Subject: Printing Labels I want to print individual 1-inch labels on fan-fold tractor feed paper. The label prints okay but the EndDoc statement causes

Re: Printing Labels

2012-10-03 Thread K2RFP
the printer after each page (PITA). HTH Stephen Posey stephenlpo...@earthlink.net BTW, I prefer Stephen please. -Original Message- From: K2RFP rn...@verizon.net Sent: Oct 3, 2012 10:32 AM To: Delphi-Talk Discussion List delphi-talk@elists.org Subject: Re: Printing Labels Steve: Writing

Re: Printing Labels

2012-10-06 Thread -K2RFP-
Thanks Andre. This looks promising. I'll give it a try when I get some time. Dick. k2rfp On 10/4/2012 12:53 PM, Andre van Zuydam wrote: Hi K2RFP Just occured to me I had a similar problem, my client had pages of vouchers that needed to be printed, minimum of 5 per line, each page has 20

Reading the System Registry

2012-11-05 Thread K2RFP
I'm writing a little program that includes a procedure to enumerate the com ports by reading from the registry at HKey_Local_Machine\Hardware\DeviceMap\SerialComm. The procedure works fine from the IDE but when the program runs outside the IDE I get nothing found. Why, and how do I work around

Delphi-3 Installation

2009-02-08 Thread PAV-K2RFP
I have my original Delphi-3 Installation CD and I would like to install it on a portable USB drive so I can take it from computer to computer. The problem is the installation writes stuff to the system registry of the computer doing the installation. There are references to the drive letter of the