Re: [fpc-pascal] How to use the `signals` unit?

2015-10-23 Thread silvioprog
On Fri, Oct 23, 2015 at 3:05 AM, Sven Barth 
wrote:

> Am 23.10.2015 06:29 schrieb "silvioprog" :
> >
> > On Thu, Oct 22, 2015 at 6:40 AM, Sven Barth 
> wrote:
> >>
> >> Am 22.10.2015 09:23 schrieb "silvioprog" :
> >> > What is the secret to use this it on Windows?
> >>
> >> The secret is to not use it. It's only real use is in the textmode IDE
> and maybe there it should be checked whether it can be replaced.
> >
> > So is there some alternative for signals? ( SetConsoleCtrlHandler() on
> Windows, but, what in Linux? )
> >
>
> Currently you need to do this for each platform separately.
>
It isn't a problem for me, because my app needs to run just on Windows and
Linux. =)

-- 
Silvio Clécio
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Basic Windows tutorial

2015-10-23 Thread Ryan Joseph
Ok, I did some reading and found out there is an anchoring plugin you can 
install that makes it one window, which is great.

Some questions:

I started a project using the “simple application” template which made a 
console window I don’t really want. Is there a way to remove that window? I 
don’t see any code which is creating it.

Can I route STDOUT (does that exist on Windows?) from writeln to the message 
window in Lazarus? That’s pretty typical for development and I can’t see where 
it’s going right now.

Do I need to do anything in Lazarus to package application resources (like 
images, data files) or do I just include them in the same directory as the 
executable? That’s just a general Windows question I guess but Lazarus seems to 
have a guy for this.

Thanks.

> On Oct 23, 2015, at 1:04 PM, Sven Barth  wrote:
> 
> You don't need to use Lazarus as RAD. After all you can use it for example 
> for console applications as well (like the compiler) which definitely aren't 
> RAD. For your purposes you'd just need to start with the correct project 
> template and the IDE would still assist you with its powerful codetools.
> 
> 

Regards,
Ryan Joseph

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to use the `signals` unit?

2015-10-23 Thread Sven Barth
Am 23.10.2015 06:29 schrieb "silvioprog" :
>
> On Thu, Oct 22, 2015 at 6:40 AM, Sven Barth 
wrote:
>>
>> Am 22.10.2015 09:23 schrieb "silvioprog" :
>> > What is the secret to use this it on Windows?
>>
>> The secret is to not use it. It's only real use is in the textmode IDE
and maybe there it should be checked whether it can be replaced.
>
> So is there some alternative for signals? ( SetConsoleCtrlHandler() on
Windows, but, what in Linux? )
>

Currently you need to do this for each platform separately.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Basic Windows tutorial

2015-10-23 Thread Sven Barth
Am 23.10.2015 03:36 schrieb "Ryan Joseph" :
>
>
> > On Oct 23, 2015, at 2:03 AM, Sven Barth 
wrote:
> >
> > Out of curiosity: in how far aren't you a fan of Lazarus' layout? Many
parts can be configured. Especially the code tools that Lazarus provides
makes navigating/writing code rather easy.
>
>
> I don’t use the RAD tools so those are in the way but the biggest problem
is how everything is broken up into separate windows. Could that be changed?

You don't need to use Lazarus as RAD. After all you can use it for example
for console applications as well (like the compiler) which definitely
aren't RAD. For your purposes you'd just need to start with the correct
project template and the IDE would still assist you with its powerful
codetools.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal