> > Is there a way to set the focus to the freshly opened graph window
> > from within my program? (eg: open a graph window and define this as
> > the foremost window, in front even of the opening program)
> >
> > Any help appreciated, thanks in advance
>
> Hmmm, I wrote the graph unit for wi
I sent more or less this info yesterday, but it bounced (my ISP doesn't
like redirecting email from my work IP address!!!) I think the
CreateProcess idea is better than this one, but just in case...
Assuming you have a window with the caption 'Untitled - Notepad'
(running notepad.exe will get
James,
This is not a personal attack, just some comments about style and some
shortcomings of the code you present.
//You should alter this a bit. It's a very strange mix between
TurboPascal and Delphi syntax
>TNicks = class(TObject) //Delphi style syntax
Public // the default is visib
> This indeed only copies the pointer. if you want to do more
> than that, then you need to implement this yourself.
>
> TPersistent implements the 'Assign' method for this. You can
> create a descendent from TPersistent, override the Assign
> method, and then copy fields as necessary in the ne
> Basically, the
> first step towards objects is ENCAPSULATION, which is PURE
> SYTNAX, i. e. there are no constructors / destructors required.
An Object is an Instance of a Class. A class needs to be constructed.
Even C++ stack based instances have a constructor. What you want is for
the cons
-Original Message-
From: Matt Emson [mailto:[EMAIL PROTECTED]]
Sent: 10 February 2003 13:29
To: '[EMAIL PROTECTED]'
Subject: RE: [fpc-pascal]Classes/Objects/Pointers / Pointer Help
This is where Classes are better than objects... This will only work if you don't
reference any thing th
James,
One important question... If you are using Delphi source (as you implied
in the pointers thread), why use Turbo Pascal style objects in your
conversion? If you used classes, it would be much easier on yourself. No
pointer notation needed etc, could use the Tinifile class (I assume this
is i
function OpenPrinter(pPrinterName: PChar; var phPrinter: THandle; pDefault:
PPrinterDefaults): BOOL; stdcall;external 'winspool.drv' name 'OpenPrinterA';
Will work.
Matt
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of
> Hans MÃ¥rtensson
> Se