[Lazarus] Determine OS at runtime

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jan 27 19:36:22 CET 2009


On Tue, 27 Jan 2009 13:01:04 -0500
Lee Jenkins <lee at datatrakpos.com> wrote:

> 
> Dumb question:
> 
> What is the best way to determine the OS platform at runtime?

You can already at compile time.

http://wiki.lazarus.freepascal.org/Code_Conversion_Guide#Useful_compiler_variables_.2F_defines_.2F_macros


> 
> I would like to be able to position things like dialog form buttons
> dependent on the OS.

For common buttons you can use TButtonPanel.

Mattias



More information about the Lazarus mailing list