Re: [Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Sat, 07 Nov 2015 12:35:28 +0100, Bo Berglund wrote: - Now I get a pop-up error box saying: Access violation. Press OK to ignore and risk data corruption. Press Cancel to kill the program. I should have waited a while... If I do not click

Re: [Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Bo Berglund
On Sat, 07 Nov 2015 14:37:18 +, Michael Van Ham wrote: >On Sat, Nov 7, 2015, 06:35 Bo Berglund wrote: > >Access violation. > >Running on a Raspberry Pi2 with Raspbian Jessie and FPC3.1.1 and >Lazarus 1.5. > >You might experience fewer

Re: [Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Michael Van Ham
On Sat, Nov 7, 2015, 06:35 Bo Berglund wrote: Access violation. Running on a Raspberry Pi2 with Raspbian Jessie and FPC3.1.1 and Lazarus 1.5. You might experience fewer frustrations using a released version of lazarus (1.4.4) instead of the in development version

Re: [Lazarus] How to find out the public IP in code?

2015-11-07 Thread fecske fecske
or see this http://forum.lazarus.freepascal.org/index.php/topic,17506.msg110917.html#msg110917 On Sat, Nov 7, 2015 at 1:07 PM, Mark Morgan Lloyd wrote: > Bo Berglund wrote: >> >> I would like to be able to find out the public IP address of the Pi in >> a Lazarus

Re: [Lazarus] How to find out the public IP in code?

2015-11-07 Thread fecske fecske
forexample http://wiki.lazarus.freepascal.org/Internet_Tools#Get_external_IP_address On Sat, Nov 7, 2015 at 1:07 PM, Mark Morgan Lloyd wrote: > Bo Berglund wrote: >> >> I would like to be able to find out the public IP address of the Pi in >> a Lazarus program.

Re: [Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: I have a Lazarus project inside the IDE, which uses LNet. Now I want to close that and open one of the LNet examples in order to see how that works. So I did this: - Project/Close project - This pops up a dialog asking me to do one of a list of actions - I select the button

Re: [Lazarus] How to find out the public IP in code?

2015-11-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: I would like to be able to find out the public IP address of the Pi in a Lazarus program. How can this be accomplished? It is either connected to a wired or WiFi network router. in my browser I can go to http://checkip.dyndns.com/ and it will print a message with my IP

[Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Bo Berglund
I have a Lazarus project inside the IDE, which uses LNet. Now I want to close that and open one of the LNet examples in order to see how that works. So I did this: - Project/Close project - This pops up a dialog asking me to do one of a list of actions - I select the button Open Project - Now I

Re: [Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Bo Berglund
On Sat, 07 Nov 2015 12:35:28 +0100, Bo Berglund wrote: >- Now I get a pop-up error box saying: > >Access violation. > >Press OK to ignore and risk data corruption. >Press Cancel to kill the program. > >At this point in the background the IDE is pointing to the following

Re: [Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Bo Berglund
On Sat, 07 Nov 2015 12:04:36 +, Mark Morgan Lloyd wrote: >Bo Berglund wrote: >> I have a Lazarus project inside the IDE, which uses LNet. >> Now I want to close that and open one of the LNet examples in order to >> see how that works. >> So I did this: >> -

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-07 Thread Florian Klaempfl
Am 07.11.2015 um 06:40 schrieb Alexander Klenin: > On Sat, Nov 7, 2015 at 5:58 AM, Florian Klaempfl > wrote: >> Am 06.11.2015 um 20:22 schrieb Luca Olivetti: >>> El 06/11/15 a les 18:10, Martin Schreiber ha escrit: >>> You are joking, no? It has been discussed on

Re: [Lazarus] StringGrid1.LoadFromCSVFile problem

2015-11-07 Thread Mattias Gaertner
On Sat, 7 Nov 2015 06:25:45 +0100 fecske fecske wrote: > I use CodeTyphon (ver 5.60 revision 005512) with Lazarus SVN Rev 50211 > I changed it here in the lcsvutils.pas line 193 > (System.Move(leadPtr^,W[1],length(W)*2);) and I compiled in the my > project. > > You fixed a

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-07 Thread Florian Klaempfl
Am 07.11.2015 um 06:42 schrieb Ondrej Pokorny: > > Do not forget that you can overload operators! In particular you can > overload the comparison operator to return a record, so your > "with a=somerecord do" can already be a valid pascal code now: > > *type** > ** TMyRec = record** > **I:

[Lazarus] Qt events

2015-11-07 Thread Gabor Boros
Hi All, I miss some events on Linux. For example LM_NC*, LM_WINDOWPOSCHANGING. See NonClientAreaMouse* and SlotNCMouse in qtwidgets.pas. SlotNCMouse is a TForm thing? Tried but never called. Gabor -- ___ Lazarus mailing list

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-07 Thread Jürgen Hestermann
Am 2015-11-06 um 18:26 schrieb Ondrej Pokorny: > So yes, let's not use with :) > ... There is no problem with long variable names at all. There are CodeTools :) CodeTools do not help you *read* the code. I prefer to have this: - with PathArray[High(PathArray)]^ do

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-07 Thread Mattias Gaertner
On Sat, 7 Nov 2015 11:39:44 +0100 Jürgen Hestermann wrote: >[...] > CodeTools do not help you *read* the code. It can help you writing the code more readable and helps to read (i.e. understand) the code by hints and find declaration. >[...] >

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-07 Thread Michael Van Canneyt
On Sat, 7 Nov 2015, Alexander Klenin wrote: On Sat, Nov 7, 2015 at 5:58 AM, Florian Klaempfl wrote: Am 06.11.2015 um 20:22 schrieb Luca Olivetti: El 06/11/15 a les 18:10, Martin Schreiber ha escrit: You are joking, no? It has been discussed on fpc-pascal/fpc-devel

Re: [Lazarus] How to find out the public IP in code?

2015-11-07 Thread Aradeonas
So much clean answer Slivio. Regards, Ara -- http://www.fastmail.com - Or how I learned to stop worrying and love email again -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] How to find out the public IP in code?

2015-11-07 Thread silvioprog
On Sat, Nov 7, 2015 at 12:13 PM, fecske fecske wrote: > or see this > > http://forum.lazarus.freepascal.org/index.php/topic,17506.msg110917.html#msg110917 If you just want to get your external IP using some service like dyndns, you should use pure FCL: === begin code ===

[Lazarus] Error building androidlcltest Cannot find Gtk2

2015-11-07 Thread Dale Corning
I have Lazarus V1.4.4 installed and in use one my system. I recently installed Laz4android (Lazarus V1.5) following the android tutorial on wiki.lazarus When I attempt to build the test application androidlcltest I receive the following error. Cannot find gtk2 used by Gtk2CellRenderer of

[Lazarus] Getcurrentdir in Linux Mint

2015-11-07 Thread Larry Dalton
I need to know the function to get the current directory in Linux Mint Sent from my iPhone -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Getcurrentdir in Linux Mint

2015-11-07 Thread Anthony Walter
pwd -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Resizing Widgets

2015-11-07 Thread Anthony Walter
I've added code to Cross.Codebot allowing for resizing and moving of desktop widgets directly with the mouse. The clock example has been converted to use this functionality: http://www.getlazarus.org/apps/vclock/ -- ___ Lazarus mailing list

Re: [Lazarus] Resizing Widgets

2015-11-07 Thread Aradeonas
Dear Anthony, Thanks for update but as I said before please update repository with new changes or prepare a Windows version so people like me In Windows can test and work on it. This one apply to of your recent works and widgets like CPU widget. Regards, Ara -- http://www.fastmail.com - Or how

Re: [Lazarus] Resizing Widgets

2015-11-07 Thread Anthony Walter
I will update with Windows side of things after I apply these new changes to the CPU Usage application. It'll be a few days. IF you want to speed things up/contribute you could write something efficient which polls (every 250ms) Windows CPU cores returning a timestamp (double in seconds, see