RE: [fpc-pascal]How to set focus to graph window?

2003-03-13 Thread Matt D. Emson
> > 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

RE: [fpc-pascal]Re: How to resize window under win32? (Jeff Pohlmeyer)

2003-02-28 Thread Matt D. Emson
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

RE: [fpc-pascal]FPC Error! :(

2003-02-14 Thread Matt D. Emson
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

RE: [fpc-pascal]Classes and copying

2003-02-12 Thread Matt D. Emson
> 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

RE: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-10 Thread Matt D. Emson
> 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

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-10 Thread Matt D. Emson
-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

RE: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-10 Thread Matt D. Emson
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

RE: [fpc-pascal]Linking to Windows

2003-02-05 Thread Matt D. Emson
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