Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread zeljko
On Thursday 31 of March 2011 01:06:48 Bart wrote: Hi, Is there any (more or less) reliable way to detect the size of the desktop (that is: on the active screen, the space a form can occupy so that it will take in account the presence of a taskbar etc.) I need something like this to keep a

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Paul Ishenin
31.03.2011 7:06, Bart пишет: Is there any (more or less) reliable way to detect the size of the desktop (that is: on the active screen, the space a form can occupy so that it will take in account the presence of a taskbar etc.) .. I know how to do it on Windows. Linux (GTK2) and MAC would be

Re: [Lazarus] [OT] About licences

2011-03-31 Thread Florian Klaempfl
Am 31.03.2011 04:09, schrieb waldo kitty: On 3/30/2011 08:18, Zaher Dirkey wrote: On Wed, Mar 30, 2011 at 12:52 PM, Marco van de Voort mar...@stack.nl wrote: On Wed, Mar 30, 2011 at 09:23:12AM +0200, Graeme Geldenhuys wrote: The (L)GPL with exception bit absolves you from that.

Re: [Lazarus] Scrolling Wincontrol

2011-03-31 Thread Torsten Bonde Christiansen
On 2011-03-31 01:00, Luiz Americo Pereira Camara wrote: On 29/3/2011 09:15, Paul Ishenin wrote: 29.03.2011 20:08, Torsten Bonde Christiansen wrote: Hi List. After updating to latest trunk version of Lazarus i've experience something quite strange. I'm using: Lazarus 0.9.31 r30067M FPC 2.4.2

Re: [Lazarus] IMGUI example

2011-03-31 Thread Graeme Geldenhuys
On 30/03/2011 21:00, Darius Blaszyk wrote: The TForm.OnKeyDown method is only executed once on Mac. On win32 it is executed all the time, but then again the TOpenGLControl1.OnKeyDown is not executed on win32 but works on Mac. Welcome to GUI toolkit design. :-) Regards, - Graeme - --

Re: [Lazarus] FPC and Lazarus on ARM

2011-03-31 Thread Florian Klaempfl
Am 28.03.2011 13:35, schrieb Felipe Monteiro de Carvalho: On Mon, Mar 28, 2011 at 1:18 PM, Florian Klaempfl flor...@freepascal.org wrote: Am 28.03.2011 11:41, schrieb Felipe Monteiro de Carvalho: If you want to actually develop on the platform, you really need to get rid of Android and

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Bart
On 3/31/11, zeljko zel...@holobit.net wrote: GetMonitorInfo(), GetSystemMetrics() SM_CXSCREEN, SM_CYSCREEN,SM_CXVIRTUALSCREEN,SM_CYVIRTUALSCREEN doesn't help ? On Windows GetSystemMetrics does return the size the (virtual) desktop has, but it does not subtract the space occupied by the Windows

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Bart
On 3/31/11, Paul Ishenin i...@kmiac.ru wrote: TScreen.Monitors[i].WorkareaRect I'll take a look. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Bart
On 3/31/11, Zaher Dirkey parm...@gmail.com wrote: I already have this answer before. this command line params, that mean i must make shortcut for it, and i am not sure if lazarus will take it when rebuild packages and restart. I use Lazarus with the --pcp=SomePath from a Desktop Shortcut under

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Mattias Gaertner
On Thu, 31 Mar 2011 10:17:07 +0200 Bart bartjun...@gmail.com wrote: On 3/31/11, Zaher Dirkey parm...@gmail.com wrote: I already have this answer before. this command line params, that mean i must make shortcut for it, and i am not sure if lazarus will take it when rebuild packages and

Re: [Lazarus] For responsible of luicontrols packages...

2011-03-31 Thread Luiz Americo Pereira Camara
On 31/3/2011 02:03, Vincent Snijders wrote: 2011/3/31 Luiz Americo Pereira Camaraluiz...@oi.com.br: Please report bugs in http://code.google.com/p/luipack/issues/list Added to http://wiki.freepascal.org/Lui_Controls#Bugs Thanks Luiz -- ___

Re: [Lazarus] Lazarus Help

2011-03-31 Thread Marco van de Voort
On Thu, Mar 31, 2011 at 09:21:59AM +0200, Michael Schnell wrote: Again: there is no benefit in using the Delphi stuff in FPC. That it works in Delphi does not mean that we can actually recycle it (both licensewise and technically). This of course is true, but you often do prefer

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: Well, definitely not on Unix. On unix, the EXE directory should never contain config files. I dare to disagree. A SVN checkout is writeable, and this is where the EXE is stored, along with the related source files. Consequently the config should be stored there

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Hans-Peter Diettrich
Vincent Snijders schrieb: 2011/3/30 Hans-Peter Diettrich drdiettri...@aol.com: Can somebody please clarify the intended procedure for configuring multiple parallel Lazarus installations? Always specify the primary config directory, if you have multiple parallel Lazarus installations.

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: The only point I was trying to make is that on UNIX (and only on Unix) looking by default in the directory where the binary is, goes against long-standing unix practise and recommendations. Depends on what you consider UNIX. I understand that ParamStr[0] may get

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Hans-Peter Diettrich
Zaher Dirkey schrieb: You all repeat another discuses, while the end user like me, still have problem to share him config espicialy for IDE. IMO the current config is not shareable, due to the many absolute pathes in it. The real question, without using command line how to share config file

Re: [Lazarus] IMGUI example

2011-03-31 Thread Michael Schnell
On 03/31/2011 09:12 AM, Graeme Geldenhuys wrote: Welcome to GUI toolkit design. :-) Yet another re-implementation of TTimer, TThread.Synchronize, PostMessage, TApplication.QueueAsyncCall etc is due.. -Michael (could not resist ;) ) -- ___ Lazarus

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Martin
On 31/03/2011 12:15, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: No unix tool does this. Not even when it is freshly (re)built from sources. And neither should Lazarus. I claimed no more, no less. I never said that Lazarus should *break* that convention. If the convention is to

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Graeme Geldenhuys
On 31/03/2011 12:22, Hans-Peter Diettrich wrote: Try compiling different versions of any unix application - this is where repository checkouts enter the scene. And then try to use all these versions in parallel... I do this often, and have no problems. Why? Because the apps I use (in this

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Mattias Gaertner
    Hans-Peter Diettrich drdiettri...@aol.com hat am 31. März 2011 um 13:50 geschrieben: [...] http://wiki.freepascal.org/Multiple_Lazarus#The_config_directory Thanks for this link - as is, it fully supports my opinions :-]      The config directory [...] The config directory can be

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Marco van de Voort
On Thu, Mar 31, 2011 at 12:50:05PM +0200, Hans-Peter Diettrich wrote: problem to share him config espicialy for IDE. IMO the current config is not shareable, due to the many absolute pathes in it. Interesting. How did you test this? Did you try the lazarus-dir parameter approach? IIRC one

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Andreas Schneider
On Thursday, March 31, 2011 12:22 Hans-Peter Diettrich wrote: Right, but this is only a workaround, that requires much care in making it work. Did you ever notice the many error messages and warnings, at the first start of a another Lazarus installation, when it tries to initialize itself

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Mattias Gaertner
    Martin laza...@mfriebe.de hat am 31. März 2011 um 13:22 geschrieben: [...] This whole discussion seems to mix 2 issues into one: - problems caused by using the wrong config due to none awareness (imho the main issue)  +1   - convenience of using multiply configs. Searching for config

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Martin
On 31/03/2011 13:09, Mattias Gaertner wrote: Martin laza...@mfriebe.de hat am 31. März 2011 um 13:22 geschrieben: [...] This whole discussion seems to mix 2 issues into one: - problems caused by using the wrong config due to none awareness (imho the main issue) +1 - convenience of using

[Lazarus] another laz-config question

2011-03-31 Thread Martin
If there is no config yet, how does lazarus find the installed fpc? I have several version (under c:\fpc), and the IDE finds each of them (runs compilertest). How does it know? Martin -- ___ Lazarus mailing list

Re: [Lazarus] another laz-config question

2011-03-31 Thread Mattias Gaertner
    Martin laza...@mfriebe.de hat am 31. März 2011 um 14:46 geschrieben: If there is no config yet, how does lazarus find the installed fpc? I have several version (under c:\fpc), and the IDE finds each of them (runs compilertest).  What compilertest do you mean?     How does it know?

Re: [Lazarus] another laz-config question

2011-03-31 Thread Martin
On 31/03/2011 14:05, Mattias Gaertner wrote: Martin laza...@mfriebe.de hat am 31. März 2011 um 14:46 geschrieben: If there is no config yet, how does lazarus find the installed fpc? I have several version (under c:\fpc), and the IDE finds each of them (runs compilertest). What

Re: [Lazarus] another laz-config question

2011-03-31 Thread Mattias Gaertner
    Martin laza...@mfriebe.de hat am 31. März 2011 um 15:27 geschrieben: On 31/03/2011 14:05, Mattias Gaertner wrote:     Martin laza...@mfriebe.de [mailto:laza...@mfriebe.de] hat am 31. März 2011 um 14:46 geschrieben: If there is no config yet, how does lazarus find the

[Lazarus] Lazarus application invalid on ubuntu 64

2011-03-31 Thread Andrea Mauri
Dear all, I loaded a lazarus project on my new Ubuntu 10.10 intel64 (lazarus 0.9.31 r30096 FPC 2.4.2 x86_64-linux-gtk 2). The application is compiled correctly but it won't run. Lazarus give me this message: Caption: Lazarus application invalid Text: The launching application path/exename does

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Lukasz Sokol
On 31/03/2011 13:02, Andreas Schneider wrote: Sorry, but a newbie shouldn't juggle with a bunch of lazarus installations of different versions in the first place. Either you know what you are doing, or you don't. In the latter case: stay away from it until you do :D What

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Bart
On 3/31/11, Paul Ishenin i...@kmiac.ru wrote: TScreen.Monitors[i].WorkareaRect This seems to work for Win and Linux/GTK2. This raises yet another question though. How do I know on which monitor my form is? (I only have one monitor, so I cannot test this) Bart --

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Sven Barth
Am 31.03.2011 16:15, schrieb Bart: On 3/31/11, Paul Ishenini...@kmiac.ru wrote: TScreen.Monitors[i].WorkareaRect This seems to work for Win and Linux/GTK2. This raises yet another question though. How do I know on which monitor my form is? (I only have one monitor, so I cannot test this)

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Martin
On 31/03/2011 15:35, Sven Barth wrote: Am 31.03.2011 16:15, schrieb Bart: On 3/31/11, Paul Ishenini...@kmiac.ru wrote: TScreen.Monitors[i].WorkareaRect This seems to work for Win and Linux/GTK2. This raises yet another question though. How do I know on which monitor my form is? (I only

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Kjow
2011/3/31 Sven Barth pascaldra...@googlemail.com: What about this: Screen.MonitorFromWindow(YourForm.Handle); It returns a TMonitor. Regards, Sven Maybe a little OT, but is it possible to change screen resolution (e.g. on a native 19200x1200 set 800x600) in a crossplatform way? I need

[Lazarus] Rebuild lazarus-0.9.30-i386.deb.tar IDE in Debian Squeeze

2011-03-31 Thread Ismael L. Donis García
Somebody have rebuild lazarus-0.9.30-i386.deb.tar IDE in Debian Squeeze with fpc-2.4.2-0.i386.deb.tar without giving the error: /usr/lib/lazarus/0.9.30/ide/lazconf.pp(1,1) Fatal: Can't find unit DefineTemplates used by LazConf As I could solve this problem? Regards = || ISMAEL ||

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Bart
On 3/31/11, Sven Barth pascaldra...@googlemail.com wrote: What about this: Screen.MonitorFromWindow(YourForm.Handle); It returns a TMonitor. Thanks. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Reimar Grabowski
On Thu, 31 Mar 2011 17:32:10 +0200 Sven Barth pascaldra...@googlemail.com wrote: I'm not really confident in this, but I believe if you tell OpenGL to be fullscreen in that or that resolution it will switch to that automatically. No, it does not, because you don't give such information to

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Paul Ishenin
31.03.2011 22:15, Bart wrote: On 3/31/11, Paul Ishenini...@kmiac.ru wrote: TScreen.Monitors[i].WorkareaRect This seems to work for Win and Linux/GTK2. This was tested on OSX during the development too. This raises yet another question though. How do I know on which monitor my form is? (I

Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread Bart
On 4/1/11, Paul Ishenin webpi...@mail.ru wrote: This was tested on OSX during the development too. Nice. Looks like search does not work on your PC anymore. (Well, it is slow on my 10 year old machine, but is still works most of the time. I also searched the forum and wiki.) Look at

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Hans-Peter Diettrich
Martin schrieb: This whole discussion seems to mix 2 issues into one: - problems caused by using the wrong config due to none awareness (imho the main issue) - convenience of using multiply configs. The first problem disappears as soon as a config resides in the Lazarus directory, next the

Re: [Lazarus] Lazarus config woes

2011-03-31 Thread Martin
On 31/03/2011 21:09, Hans-Peter Diettrich wrote: Martin schrieb: This whole discussion seems to mix 2 issues into one: - problems caused by using the wrong config due to none awareness (imho the main issue) - convenience of using multiply configs. The first problem disappears as soon as a

Re: [Lazarus] Howto link to shared objects

2011-03-31 Thread Rüdiger Ranft
leledumbo schrieb: Do you mean the default linker script doesn't work? Those -lxxx would be linked against libxxx.so, so make sure you have them in PATH (usually /usr/lib). Just create .so symlinks to those .so.0s Ok, I'll try if a .so link farm helps to solve this problem this weekend.

Re: [Lazarus] Lazarus application invalid on ubuntu 64

2011-03-31 Thread Rüdiger Ranft
Andrea Mauri schrieb: Anyway the compilation seems to work well but if I try to launch the executable outside Lazarus I got this message Could not display path/exename. There is no application installed for executable files What does `file executable` and `ldd executable` say? example: