<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div><span></span></div><div> </div><div>[]s Daniel<br><br>Conheça o <a rel="nofollow" target="_blank" href="http://acbr.sourceforge.net/">Projeto ACBr - Automaçao Comercial Brasil</a><br><a rel="nofollow" target="_blank" href="http://www.djsystem.com.br/"><span style="font-weight:bold;">DJSystem</span> a Loja Patrocinadora do ACBr</a><br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial" size="2"> <b><span style="font-weight:bold;">De:</span></b> Sven Barth <pascaldragon@googlemail.com><br> <b><span
style="font-weight: bold;">Para:</span></b> lazarus@lists.lazarus.freepascal.org <br> <b><span style="font-weight: bold;">Enviadas:</span></b> Sábado, 13 de Abril de 2013 18:49<br> <b><span style="font-weight: bold;">Assunto:</span></b> Re: [Lazarus] Linux GUI Application define CONSOLE<br> </font> </div> <div class="y_msg_container"><br>On 13.04.2013 18:48, Daniel Simoes de Ameida wrote:<br>> I´m confusing... I always find out that the "CONSOLE" directive exists<br>> only for applications that does not require a GUI.... or in other words,<br>> applications that does not require a X server<br>><br>> How can I distinguish applications in Text mode (CONSOLE) from Graphics<br>> Applications (GUI) ?<br><br>You can't as leledumbo wrote already. The compiler will even warn if you <br>use "$apptype ..." in the main program file on Unix systems, because it <br>is simply not supported there.<br><br>As a sidenote: checking for "ifdef console"
or "ifdef gui" is <br>problematic, because you will only be aware of a change if your units <br>are completely recompiled. If you change the setting (e.g. by not using <br>the IDE dialogs, but by manually adding "apptype console" to your <br>program file) the compiler will only recompile the main program unit and <br>your units won't detect a change.<br><br>Regards,<br>Sven<br><br>--<br>_______________________________________________<br>Lazarus mailing list<br><a ymailto="mailto:Lazarus@lists.lazarus.freepascal.org" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br><a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br><br></div> </div> </div> </blockquote></div> </div></body></html>