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
You might like to quess the answer to the following question.
Given:
var
StrArray : Array of String;
x : String;
const
FS = #29;
Routine 1
for i := 0 to high(StrArray) do
x := x + StrArray[i] + FS;
Routine 2
for i := 0 to high(StrArray) do
begin
x := x + StrArray[i];
Does any one have any suggestions, we are
stumped?
RobSoftware engineerWild Software Ltd [EMAIL PROTECTED]
- Original Message -
From:
Robert Martin
To: Multiple recipients of list delphi
Sent: Tuesday, July 03, 2001 3:02
PM
Subject: [DUG]: Printing
I have a
Hi
We want to start an external program from within an Delphi app. The only way
we have found how to do it so far is via
WINEXEC but this we can get this to work properly is but physically putting
the full programs exe path in for it to start.
The file type under explorer indicates that the
Is there another way, or other command, to available to start this app
without having to have the full exe path in the program,
as the application may not be in the same location on every PC.
take a look at ShellExecute()
-ns
You can do a call using the Shell API (ShellExecute()) to open a file eg
pass in the file name index.html and it will open it with the application
defined for that file extension (or print) etc. I have used it once - worked
great.
Myles.
-Original Message-
From: Eion McIntosh (CHCH)
I use the TLMDStarter component from LMD tools. (I forget where I got this
from.)
Using this you can set the command, directory, parameters etc.
If I want to run something from the same directory the app is running from I
use the 'application.exename' property and run it through a little
Rob,
In the old days of WinAPI programming, I used to draw into a metafile and
draw the metafile on both the printer and screen. Perhaps this might work
better for you. In any case, personally, I will not use CopyRect because
the screen and printer resolutions are different and even if it
Sorry about the lack of quoting... stupid email program doesn't handle
quoting HTML posts (time for a change), but...
In your example code you create a TImage, but don't give it a size.
Have you tried copying it to a on-screen canvas to see what it looks
like? I suspect that it's got no
Couldn't you just utilise the extension-association built into Windows and
simply WinExe() the document -- not the application with the document as a
parameter? Assuming that the document has the right extension and Acrobat
Reader is the only application installed and associated with PDF files,
10 matches
Mail list logo