Re: [fpc-pascal] (no subject)

2010-04-12 Thread Bihar Anwar
Thanks very much Bart, Thomas, and Graeme, they're precious information. I even didn't notice about the built-in feature within FPC and Lazarus IDE. Thanks again. - Original Message From: Graeme Geldenhuys To: FPC-Pascal users discussions Sent: Mon, April 12, 2010 8:09:42 PM Subject

Re: [fpc-pascal] X-Window get position, restore position

2010-04-12 Thread Graeme Geldenhuys
On 12 April 2010 14:56, Rainer Stratmann wrote: >> You can use XGetGeometry . > Do you have sample code, I can not get it work. Regards, Rainer When in doubt, try codase.com :-) http://www.codase.com/search/call?name=xgetgeometry -- Regards, - Graeme - ___

Re: [fpc-pascal] (no subject)

2010-04-12 Thread Graeme Geldenhuys
On 12 April 2010 14:27, Tomas Hajny wrote: > > These are obviously all valid. There's also another possibility though > (having advantages and disadvantages compared to this) - you could have an > include file specifying this define and reference this include file from > all (relevant) source file

Re: [fpc-pascal] X-Window get position, restore position

2010-04-12 Thread Rainer Stratmann
Am Monday 12 April 2010 14:16:56 schrieb ik: > You can use XGetGeometry . Do you have sample code, I can not get it work. Regards, Rainer > Ido > http://ik.homelinux.org/ > > > On Mon, Apr 12, 2010 at 15:08, Rainer Stratmann > > > wrote: > > > > How to do that? > > best regards, Rainer > > ___

Re: [fpc-pascal] (no subject)

2010-04-12 Thread Tomas Hajny
On Mon, April 12, 2010 14:03, Graeme Geldenhuys wrote: > On 12 April 2010 13:25, Bart wrote: >> >> Commandline: >> fpc -dNOFORMSPLEASE myprogram.pp >> >> Not sure if this can be done from within FP IDE or Lazarus though. > > Yes they do... > > FP IDE: > Option > Compiler > Conditional Defines

Re: [fpc-pascal] X-Window get position, restore position

2010-04-12 Thread ik
You can use XGetGeometry . Ido http://ik.homelinux.org/ On Mon, Apr 12, 2010 at 15:08, Rainer Stratmann wrote: > How to do that? > best regards, Rainer > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mail

[fpc-pascal] X-Window get position, restore position

2010-04-12 Thread Rainer Stratmann
How to do that? best regards, Rainer ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] (no subject)

2010-04-12 Thread Graeme Geldenhuys
On 12 April 2010 13:25, Bart wrote: > > Commandline: > fpc -dNOFORMSPLEASE myprogram.pp > > Not sure if this can be done from within FP IDE or Lazarus though. Yes they do... FP IDE: Option > Compiler > Conditional Defines Lazarus IDE: Project > Project Options > Compiler Options > Other

Re: [fpc-pascal] (no subject)

2010-04-12 Thread Bart
On Sun, Apr 11, 2010 at 4:22 PM, Bihar Anwar wrote: > Yes it works, but the {$DEFINE NOFORMSPLEASE} clause must be put in the unit > itself. If I put the clause in the first line of my console project, the unit > won't catch it. > > How can I define a compiler directive that can be understood by

Re: [fpc-pascal] Accessing static field using properties.

2010-04-12 Thread Jonas Maebe
On 12 Apr 2010, at 13:00, Torsten Bonde Christiansen wrote: After spending a good deal of time trying to figure out why my program crashed at runtime, I narrowed it down to accessing a static field in a class through a property. Although there were no compile time warning/error the program

[fpc-pascal] Accessing static field using properties.

2010-04-12 Thread Torsten Bonde Christiansen
Hi List After spending a good deal of time trying to figure out why my program crashed at runtime, I narrowed it down to accessing a static field in a class through a property. Although there were no compile time warning/error the program crashed the very instant i tried to access the static

Re: [fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4

2010-04-12 Thread Jonas Maebe
On 12 Apr 2010, at 10:49, Roberto Padovani wrote: I didn't intend to be a moralist, I was just pointing it out. With this very same purpouse, I'll point out another one. Even though I own a Mac, so I was only moved by curiosity, I also thought that such a restriction might not be valid in my co

Re: [fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4

2010-04-12 Thread Roberto Padovani
2010/4/11 Graeme Geldenhuys : > On 11 April 2010 21:47, Roberto Padovani wrote: >> >> for the virtualization, the problem is the absence of the drivers for >> most of the pc hardware unless you happen to have a pc with the >> very few types of devices used in macs. > > Well, virtualization sof