Re: [Lazarus] TDBEdit, TStringField Size, DataSize, DisplayWidth and MaxLength

2016-10-14 Thread Tony Whyman via Lazarus
On 14/10/16 06:43, LacaK via Lazarus wrote: I do not know IBX, but don't you use overriden TDataSet.InternalInitFieldDefs ? It will allow you put extra info into FieldDef and then use overriden TDataSet.CreateFields, which will allow you pass extra info from TIBFieldDef into TIBStringField for

Re: [Lazarus] Most efficient way for polling (TTimer, OnIdle, TIdleTimer, TThread)

2016-10-14 Thread Michael Schnell via Lazarus
On 14.10.2016 00:18, Luiz Americo Pereira Camara via Lazarus wrote: I have a component that needs to poll a SimpleIPC server repeatedly (at each 1s or so). While I do think that polling once a second will not do any noticeable harm, a better design might be to push some kind of message from the

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Michael Schnell via Lazarus
On 13.10.2016 10:20, Graeme Geldenhuys via Lazarus wrote: +1 That would be the best solution. GUI programming is based on fundamentals than need to be understood first. -1 !! The OP explained that his main purpose is to introduce more fun in the education. That can be done by plunging into p

Re: [Lazarus] TDBEdit, TStringField Size, DataSize, DisplayWidth and MaxLength

2016-10-14 Thread LacaK via Lazarus
Dňa 14.10.2016 o 10:08 Tony Whyman via Lazarus napísal(a): On 14/10/16 06:43, LacaK via Lazarus wrote: I do not know IBX, but don't you use overriden TDataSet.InternalInitFieldDefs ? It will allow you put extra info into FieldDef and then use overriden TDataSet.CreateFields, which will allow

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Michael Schnell via Lazarus
On 14.10.2016 00:13, Erwin van den Bosch via Lazarus wrote: I'm not a big fan of the RAD development way any more. (I was years ago). The problem is that you should separate your business logic and the GUI. This is absolutely true especially when doing large systems or (embedded) systems that

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Mark Morgan Lloyd via Lazarus
On 14/10/16 08:30, Michael Schnell via Lazarus wrote: Of course there are decent drawbacks regarding relying too much on RAD and about not really understanding the fundamentals behind it. But in the end the addressees are non-computer engineers. Seconded. If I could make a general observation:

[Lazarus] Windows 10 force any non-white background color to White

2016-10-14 Thread Dennis via Lazarus
I have a program written in lazarus running normally in windows 7. When run in windows 10, the green color of the Frame/Form is changed by Windows 10 to white. Now my customer is complaining the bright white is hurting his eyes. Can anyone help? I googled and the only articles is about changin

Re: [Lazarus] Windows 10 force any non-white background color to White

2016-10-14 Thread Giuliano Colla via Lazarus
Il 14/10/2016 11:10, Dennis via Lazarus ha scritto: I have a program written in lazarus running normally in windows 7. When run in windows 10, the green color of the Frame/Form is changed by Windows 10 to white. My best suggestion is to encourage your customer to downgrade to Windows 7. Hewle

[Lazarus] TPageControl cannot change parent

2016-10-14 Thread Torsten Bonde Christiansen via Lazarus
Hi List. In the designer it is not posible to use the builtin feature of "Change Parent" (from the context menu) with a TPageControl. Other controls seems to work fine (although i have not tested all of them). To recreate the problem slap a TPanel and a TPageControl on the mainform and add a

Re: [Lazarus] Windows 10 force any non-white background color to White

2016-10-14 Thread shoKwave via Lazarus
Am 14.10.2016 um 11:10 schrieb Dennis via Lazarus: I have a program written in lazarus running normally in windows 7. When run in windows 10, the green color of the Frame/Form is changed by Windows 10 to white. Hi, I can't confirm that for Windows 10 1610 32bit with Lazarus 1.6/ FPC 3.0 and

Re: [Lazarus] Windows 10 force any non-white background color to White

2016-10-14 Thread shoKwave via Lazarus
Am 14.10.2016 um 11:10 schrieb Dennis via Lazarus: Can anyone help? I googled and the only articles is about changing the title bar color, not the form's color. Dennis Maybe a TPanel can help. Ingo -- ___ Lazarus mailing list Lazarus@lists.laz

Re: [Lazarus] Windows 10 force any non-white background color to White

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 11:01, Giuliano Colla via Lazarus wrote: > My best suggestion is to encourage your customer to downgrade to Windows 7. Yeah right - that will never happen! All that effort just for one application, because LCL doesn't support the most basic of theming. Regards, Graeme -- _

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Mehmet Erol Sanliturk via Lazarus
On Fri, Oct 14, 2016 at 1:18 AM, Michael Schnell via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 13.10.2016 10:20, Graeme Geldenhuys via Lazarus wrote: > >> +1 >> That would be the best solution. GUI programming is based on >> fundamentals than need to be understood first. >> > > -1 !! >

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Mehmet Erol Sanliturk via Lazarus
On Fri, Oct 14, 2016 at 1:50 AM, Michael Schnell via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 14.10.2016 00:13, Erwin van den Bosch via Lazarus wrote: > >> >> I'm not a big fan of the RAD development way any more. (I was years ago). >> The problem is that you should separate your busin

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 23:13, Erwin van den Bosch via Lazarus wrote: > The problem is that you should separate your business logic and > the GUI. With Delphi like RAD it's very difficult to do that. (but it is > possible) Everything is coded in events and connected to database aware > GUI controls. (In t

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 09:18, Michael Schnell via Lazarus wrote: > The OP explained that his main purpose is to introduce more fun in the > education. That can be done by plunging into programming directly with > GUI development. So for somebody that doesn't know anything about programming, then suddenl

Re: [Lazarus] Windows 10 force any non-white background color to White

2016-10-14 Thread Mattias Gaertner via Lazarus
On Fri, 14 Oct 2016 17:10:38 +0800 Dennis via Lazarus wrote: > I have a program written in lazarus running normally in windows 7. > When run in windows 10, the green color of the Frame/Form is changed by > Windows 10 to white. > > Now my customer is complaining the bright white is hurting his ey

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 12:01, Graeme Geldenhuys via Lazarus wrote: > and maybe incite them every now and again Oops, that meant to read: "...and maybe entice them..." Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.laza

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Mehmet Erol Sanliturk via Lazarus
On Fri, Oct 14, 2016 at 3:48 AM, Graeme Geldenhuys via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 2016-10-13 23:13, Erwin van den Bosch via Lazarus wrote: > > The problem is that you should separate your business logic and > > the GUI. With Delphi like RAD it's very difficult to do that.

Re: [Lazarus] Fast-small utilities for common javascript tasks, anyone?

2016-10-14 Thread Leonardo M. Ramé via Lazarus
El 12/10/16 a las 10:50, Michael Van Canneyt escribió: On Wed, 12 Oct 2016, Leonardo M. Ramé via Lazarus wrote: El 08/10/16 a las 05:18, Michael Van Canneyt via Lazarus escribió: Hi Michael, could you post jsmin.pas here?. I added it to FPC SVN. packages/fcl-js, unit jsminifier. I included

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 12:08, Mehmet Erol Sanliturk wrote: > program can not be compiled as a Lazarus program or an fpGUI program as it > is like compiling the same program by Delphi ( with required compiler > directives ) . It is necessary either use Lazarus or fpGUI programming . I am yet to see that in

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Martin Schreiber via Lazarus
On Friday 14 October 2016 10:50:28 Michael Schnell via Lazarus wrote: > > With a more careful design it's absolutely possible to do "non RAD" > programs by doing "GUI units" and "business code Units" that interact > via Objects with functions, properties and events (callback-properties) . > Separat

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Martin Schreiber via Lazarus
On Friday 14 October 2016 13:08:13 Mehmet Erol Sanliturk via Lazarus wrote: > > In previous years > > https://sourceforge.net/projects/mseide-msegui/ > > was limited to Linux . MSEide+MSEgui runs on Windows and Linux from start at 1999. Since several years it runs on FreeBSD too. Martin -- ___

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Reimar Grabowski via Lazarus
On Thu, 13 Oct 2016 23:11:31 +0200 Giuliano Colla via Lazarus wrote: > Il 13/10/2016 16:48, Reimar Grabowski via Lazarus ha scritto: > > > If you want modern, teach them Java and let the programs run on their > > phones or keep doing console programs and do the GUI in JS (aka web > > applicati

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Mehmet Erol Sanliturk via Lazarus
On Fri, Oct 14, 2016 at 5:05 AM, Martin Schreiber via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Friday 14 October 2016 13:08:13 Mehmet Erol Sanliturk via Lazarus wrote: > > > > > In previous years > > > > https://sourceforge.net/projects/mseide-msegui/ > > > > was limited to Linux . > >

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread wkitty42--- via Lazarus
On 10/14/2016 07:04 AM, Graeme Geldenhuys via Lazarus wrote: On 2016-10-14 12:01, Graeme Geldenhuys via Lazarus wrote: and maybe incite them every now and again Oops, that meant to read: "...and maybe entice them..." incite works, too :) -- NOTE: No off-list assistance is given without pri

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Michael Schnell via Lazarus
On 14.10.2016 13:01, Graeme Geldenhuys via Lazarus wrote: They will be thrown into the deep end and sink. I don't think so. You can learn to drive a car even if you don't know how the engine is constructed. At first you can just *use* the GUI and later you can find out how it works. -Michae

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Mehmet Erol Sanliturk via Lazarus
On Fri, Oct 14, 2016 at 6:52 AM, Michael Schnell via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 14.10.2016 13:01, Graeme Geldenhuys via Lazarus wrote: > > They will be thrown into the deep end and sink. > > I don't think so. You can learn to drive a car even if you don't know how > the e

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Jürgen Hestermann via Lazarus
Am 2016-10-14 um 15:52 schrieb Michael Schnell via Lazarus: > On 14.10.2016 13:01, Graeme Geldenhuys via Lazarus wrote: >> They will be thrown into the deep end and sink. > I don't think so. You can learn to drive a car even if you don't know how the engine is constructed. > At first you can just

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Santiago A. via Lazarus
El 13/10/2016 a las 23:11, Giuliano Colla via Lazarus escribió: > but then one should always select the most "appropriate" technology, > and not be influenced by what is "modern". More modern means maybe with a few extra features. And in this context I suppose that "modern" also means more popula

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 15:10, Jürgen Hestermann via Lazarus wrote: > desperately click on this and that and some have luck and suddenly it works > (more or less). > But they do not know why and they also do not know why the performance is so > bad, > but hey, as long as it more or less works Straigh

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Lukasz Sokol via Lazarus
On 13/10/16 15:48, Reimar Grabowski via Lazarus wrote: > On Thu, 13 Oct 2016 10:37:53 -0300 Adrian De Armas via Lazarus > wrote: > >> Introducing GUI is an efford to make the module more attractive to >> the students (the droupout rate is high). The module is taught as a >> basic science. All my

[Lazarus] Watch List shows absolute rubbish

2016-10-14 Thread Graeme Geldenhuys via Lazarus
Hi, Is it a known issue that the Watch List shows absolute rubbish from time to time??? Or at least that you can't trust the details is does show? Take a look at the screenshot attached. Look at the code, and the Watch window. Note the value of "i" and "FShowDeleted" in the Watch window. It is t

Re: [Lazarus] Watch List shows absolute rubbish

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 16:48, Graeme Geldenhuys via Lazarus wrote: > How the hell is one supposed to do debugging like this?? I guess the answer is to simply use MSEide to debug LCL applications (and all other applications too). Attached is a screenshot of the same watch list and also in the first iteratio

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Reimar Grabowski via Lazarus
On Fri, 14 Oct 2016 16:24:04 +0100 Lukasz Sokol via Lazarus wrote: > D'oh, really. > D'oh, really? (fixed that for you) Answer: No (well actually the part about matlab I meant serious) Reminder to myself: The interwebz dozn't get sarcazm The interwebz dozn't get sarcazm The interwebz dozn't get

Re: [Lazarus] TPageControl cannot change parent

2016-10-14 Thread Mattias Gaertner via Lazarus
On Fri, 14 Oct 2016 12:16:25 +0200 Torsten Bonde Christiansen via Lazarus wrote: >[...] > In the designer it is not posible to use the builtin feature of "Change > Parent" (from the context menu) with a TPageControl. Other controls > seems to work fine (although i have not tested all of them).

Re: [Lazarus] Windows 10 force any non-white background color to White

2016-10-14 Thread Sven Barth via Lazarus
Am 14.10.2016 11:10 schrieb "Dennis via Lazarus" < lazarus@lists.lazarus-ide.org>: > > I have a program written in lazarus running normally in windows 7. > When run in windows 10, the green color of the Frame/Form is changed by Windows 10 to white. Can you reproduce this in a small example program

Re: [Lazarus] Watch List shows absolute rubbish

2016-10-14 Thread Martin Frb via Lazarus
On 14/10/2016 17:02, Graeme Geldenhuys via Lazarus wrote: On 2016-10-14 16:48, Graeme Geldenhuys via Lazarus wrote: How the hell is one supposed to do debugging like this?? I guess the answer is to simply use MSEide to debug LCL applications (and all other applications too). Attached is a scree

Re: [Lazarus] Watch List shows absolute rubbish

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 18:45, Martin Frb via Lazarus wrote: > And the same compiler settings? Both have the exact same compiler settings... -l -Mobjfpc -Sh -Sc -Si -gl -O- -gh -dUseCThreads -viewn I excluded the unit paths from the above list of compiler options. Regards, Graeme -- fpGUI Toolkit -

Re: [Lazarus] Watch List shows absolute rubbish

2016-10-14 Thread Martin Frb via Lazarus
On 14/10/2016 19:14, Graeme Geldenhuys via Lazarus wrote: On 2016-10-14 18:45, Martin Frb via Lazarus wrote: And the same compiler settings? Both have the exact same compiler settings... -l -Mobjfpc -Sh -Sc -Si -gl -O- -gh -dUseCThreads -viewn I excluded the unit paths from the above list of

Re: [Lazarus] Watch List shows absolute rubbish

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 20:45, Martin Frb via Lazarus wrote: > Ok, thats a first, never seen that before. I finally found the cause of the problem. I don’t use build modes in Lazarus, so only ever looked at the “Project Options -> Compiler Options -> Compilation and Linking” screen. That’s where I set the -