[Lazarus] Displaying system menu

2010-11-25 Thread Mark Morgan Lloyd
Is there an easy and portable way of telling a form to display its system menu, for example in rsponse to a right-click? I'm trying to do something without border etc. (to suppress all sizeability and the title bar) but still want an easy way of moving it. Is there an easy and portable way of

Re: [Lazarus] Applying optimization to the project units

2010-11-25 Thread michael . vancanneyt
On Thu, 25 Nov 2010, Max Vlasov wrote: On Thu, Nov 25, 2010 at 12:26 AM, Michael Van Canneyt mich...@freepascal.org wrote: On Thu, 25 Nov 2010, Max Vlasov wrote: Hi, sometimes it takes time for a Delphi developer to understand the logic of fpc/lazarus packages and it's indeed content

Re: [Lazarus] Displaying system menu

2010-11-25 Thread michael . vancanneyt
On Thu, 25 Nov 2010, Mark Morgan Lloyd wrote: Is there an easy and portable way of telling a form to display its system menu, for example in rsponse to a right-click? I'm trying to do something without border etc. (to suppress all sizeability and the title bar) but still want an easy way of

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-25 Thread Mark Morgan Lloyd
Martin Schreiber wrote: Firebird has the ability for 'named transactions'. It is possible to run multiple transactions in parallel on a single connection. PostgreSQL does not offer this possibility. In PQ there is for every transaction a separate connection and even an additional server

Re: [Lazarus] Displaying system menu

2010-11-25 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Thu, 25 Nov 2010, Mark Morgan Lloyd wrote: Is there an easy and portable way of telling a form to display its system menu, for example in rsponse to a right-click? I'm trying to do something without border etc. (to suppress all sizeability and the title

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-25 Thread Martin Schreiber
On Thursday, 25. November 2010 09.37:05 Mark Morgan Lloyd wrote: Martin Schreiber wrote: Firebird has the ability for 'named transactions'. It is possible to run multiple transactions in parallel on a single connection. PostgreSQL does not offer this possibility. In PQ there is for every

Re: [Lazarus] Displaying system menu

2010-11-25 Thread Paul Ishenin
25.11.2010 15:39, Mark Morgan Lloyd wrote: Is it possible to lock down a form's dimensions even if the title bar is displayed? So far with GTK2 I've had little success. Use constraints propery. Best regards, Paul Ishenin -- ___ Lazarus mailing

Re: [Lazarus] GUI development for web UI

2010-11-25 Thread Michael Schnell
On 11/24/2010 07:00 PM, ABorka wrote: According to the linked ExtJS licensing FAQ, you have obligations to publish the ExtJS JavaScript code that YOU have modified AND(!) you are distributing it. This seems to mean that just distributing the unmodified ExtJS code is no problem whatsoever.

Re: [Lazarus] GUI development for web UI

2010-11-25 Thread ik
On Thu, Nov 25, 2010 at 10:41, Michael Schnell mschn...@lumino.de wrote: On 11/24/2010 07:00 PM, ABorka wrote: According to the linked ExtJS licensing FAQ, you have obligations to publish the ExtJS JavaScript code that YOU have modified AND(!) you are distributing it. This seems to mean

Re: [Lazarus] Applying optimization to the project units

2010-11-25 Thread Max Vlasov
On Thu, Nov 25, 2010 at 1:50 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 25 Nov 2010 00:44:52 +0300 Max Vlasov max.vla...@gmail.com wrote: On Thu, Nov 25, 2010 at 12:36 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 25 Nov 2010 00:03:09 +0300 Max

Re: [Lazarus] Displaying system menu

2010-11-25 Thread Mark Morgan Lloyd
Paul Ishenin wrote: 25.11.2010 15:39, Mark Morgan Lloyd wrote: Is it possible to lock down a form's dimensions even if the title bar is displayed? So far with GTK2 I've had little success. Use constraints propery. Thanks Paul, should have thought of that. I guess that's what comes of being

Re: [Lazarus] Displaying system menu

2010-11-25 Thread Paul Ishenin
25.11.2010 16:43, Mark Morgan Lloyd wrote: I wonder if I could ask something related: I'm setting forms to poDefaultPosOnly but they're still appearing in the designed location. Am I missing something obvious here as well? :-) Either a bug or gtk2 does not know how to place at default

Re: [Lazarus] GUI development for web UI

2010-11-25 Thread Michael Schnell
On 11/25/2010 10:29 AM, ik wrote: http://www.sencha.com/products/license.php I don't see how the Open source (GPL) license should affect the Pascal code of an application that uses ExtJS (the pascal code same is obviously not based on / derivative work of the GPLed Java script code.) and

Re: [Lazarus] Displaying system menu

2010-11-25 Thread Mark Morgan Lloyd
Paul Ishenin wrote: 25.11.2010 16:43, Mark Morgan Lloyd wrote: I wonder if I could ask something related: I'm setting forms to poDefaultPosOnly but they're still appearing in the designed location. Am I missing something obvious here as well? :-) Either a bug or gtk2 does not know how to

Re: [Lazarus] Reading std::ostream from dll

2010-11-25 Thread Marco van de Voort
On Tue, Nov 23, 2010 at 05:18:38PM -0300, Leonardo M. Ram? wrote: Hi, I'm working with a dll/so created with C++, that has a function which fills an std::ostream, and I need to read it from a FreePascal app using a buffer or TStream. The C++ method is similar to this: void

Re: [Lazarus] Reading std::ostream from dll

2010-11-25 Thread Leonardo M . Ramé
On 2010-11-25 12:43:08 +0100, Marco van de Voort wrote: On Tue, Nov 23, 2010 at 05:18:38PM -0300, Leonardo M. Ram? wrote: Hi, I'm working with a dll/so created with C++, that has a function which fills an std::ostream, and I need to read it from a FreePascal app using a buffer or TStream.

Re: [Lazarus] How to tell lazarus the location of a used package?

2010-11-25 Thread Mattias Gaertner
On Thu, 25 Nov 2010 12:09:16 +0100 Bo Berglund bo.bergl...@gmail.com wrote: [...] Each package/project should have its own directories. This ensures that a package does not depend on a project, so it can work with many projects. Not if they evolve and we must maintain old code when we

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-25 Thread michael . vancanneyt
On Thu, 25 Nov 2010, Alexsander Rosa wrote: I've ported my OPF from DBExpress to Zeos IFDEF'ing less than 10 lines. As DBExpress, Zeos supports a single transaction per connection. My OPF uses a single connection with 3 TSQLQuery/TZQuery for different purposes. It's very rare to have the

Re: [Lazarus] Applying optimization to the project units

2010-11-25 Thread Mattias Gaertner
On Thu, 25 Nov 2010 12:43:09 +0300 Max Vlasov max.vla...@gmail.com wrote: On Thu, Nov 25, 2010 at 1:50 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 25 Nov 2010 00:44:52 +0300 Max Vlasov max.vla...@gmail.com wrote: On Thu, Nov 25, 2010 at 12:36 AM, Mattias Gaertner

Re: [Lazarus] How to tell lazarus the location of a used package?

2010-11-25 Thread Max Vlasov
On Thu, Nov 25, 2010 at 2:09 PM, Bo Berglund bo.bergl...@gmail.com wrote: This is exactly why I get worried about the packages being totally IDE global no matter where they are stored. Bo, you could notice the discussion about optimization recently, it was also package-related and today I

Re: [Lazarus] How to tell lazarus the location of a used package?

2010-11-25 Thread Lukasz Sokol
On 25/11/2010 11:09, Bo Berglund wrote: This is exactly why I get worried about the packages being totally IDE global no matter where they are stored. Maybe we should not use packages at all, that would at least solve this problem. Hi, from outsiders' perspective : how about storing your

Re: [Lazarus] Applying optimization to the project units

2010-11-25 Thread Max Vlasov
On Thu, Nov 25, 2010 at 3:47 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 25 Nov 2010 12:43:09 +0300 Max Vlasov max.vla...@gmail.com wrote: On Thu, Nov 25, 2010 at 1:50 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 25 Nov 2010 00:44:52 +0300 Max

Re: [Lazarus] Applying optimization to the project units

2010-11-25 Thread Mattias Gaertner
On Thu, 25 Nov 2010 16:17:31 +0300 Max Vlasov max.vla...@gmail.com wrote: On Thu, Nov 25, 2010 at 3:47 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 25 Nov 2010 12:43:09 +0300 Max Vlasov max.vla...@gmail.com wrote: On Thu, Nov 25, 2010 at 1:50 AM, Mattias Gaertner

Re: [Lazarus] Applying optimization to the project units

2010-11-25 Thread Max Vlasov
On Thu, Nov 25, 2010 at 5:10 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: Create a project that uses this package and conditionalunit, place a button, call ShowProjDependentMessage. If we did nothing, the message will be This is second version'. If I go the the project

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-25 Thread Alexsander Rosa
Well, DBExpress is the de facto standard for Delphi apps since D6. IMHO sqldb should have used its architecture as inspiration. 2010/11/25 michael.vancann...@wisa.be On Thu, 25 Nov 2010, Alexsander Rosa wrote: I've ported my OPF from DBExpress to Zeos IFDEF'ing less than 10 lines. As

Re: [Lazarus] Applying optimization to the project units

2010-11-25 Thread Mattias Gaertner
On Thu, 25 Nov 2010 18:42:40 +0300 Max Vlasov max.vla...@gmail.com wrote: On Thu, Nov 25, 2010 at 5:10 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: Create a project that uses this package and conditionalunit, place a button, call ShowProjDependentMessage. If we did

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-25 Thread michael . vancanneyt
On Thu, 25 Nov 2010, Alexsander Rosa wrote: Well, DBExpress is the de facto standard for Delphi apps since D6. IMHO sqldb should have used its architecture as inspiration. It was. Partially. Because it doesn't offer full transaction support for Firebird, and I require that, I changed the

Re: [Lazarus] GUI development for web UI

2010-11-25 Thread ABorka
On 11/25/2010 02:21, Michael Schnell wrote: On 11/25/2010 10:29 AM, ik wrote: http://www.sencha.com/products/license.php I don't see how the Open source (GPL) license should affect the Pascal code of an application that uses ExtJS (the pascal code same is obviously not based on / derivative

Re: [Lazarus] Applying optimization to the project units

2010-11-25 Thread Max Vlasov
On Thu, Nov 25, 2010 at 7:21 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: compile, return to project, compile the project, the phrases change in this case in the program I run - The route only works if I change the property, go to package, press Fixed. - An observation

[Lazarus] Component Palette Image

2010-11-25 Thread Marco Aurelio Ramirez Carrillo
I have 2 trivial questions about the images that appear in the component palette. After download the last version of Lazarus (Windowze), I noticed that the component's palette image for TDataset/TTable related components, show an image that looks more that a database than a table. (1) Is its

Re: [Lazarus] Component Palette Image

2010-11-25 Thread Paul Ishenin
26.11.2010 7:15, Marco Aurelio Ramirez Carrillo wrote: (1) Is its posible to change that images in the general Lazarus ? If you draw a better image and share it with us we will replace. (2) How could I change those images in my own downloaded source code, without disturbing the rest of the

[Lazarus] TBitmap magnifying glass effect

2010-11-25 Thread Leonardo M . Ramé
Hi, I'm can anyone point me to an example on how to do a simple magnifying glass over a TImage?. What I want to do is to draw a zoomed area over a TImage at mouse position, then, when I move the mouse, the area is updated showing the new position, just like Virtual Magnifying Glass, but for

Re: [Lazarus] How to tell lazarus the location of a used package?

2010-11-25 Thread waldo kitty
On 11/25/2010 06:09, Bo Berglund wrote: Now, the description on how packages work in lazarus leads me to believe that any given package can only exist in one single copy and this location is not inside the project code space. Each package/project should have its own directories. This ensures

Re: [Lazarus] GUI development for web UI

2010-11-25 Thread ABorka
On 11/25/2010 02:21, Michael Schnell wrote: On 11/25/2010 10:29 AM, ik wrote: http://www.sencha.com/products/license.php I don't see how the Open source (GPL) license should affect the Pascal code of an application that uses ExtJS (the pascal code same is obviously not based on /