Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread zeljko via Lazarus
On 10/14/2016 08:28 AM, Mehmet Erol Sanliturk via Lazarus wrote: I consider QT a very big trap . Please be careful about its license if you want to develop commercial software and also if you want to teach computer programming to the students that they will work for commercial companies . I am

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Mehmet Erol Sanliturk via Lazarus
On Thu, Oct 13, 2016 at 3:13 PM, Erwin van den Bosch via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > Although I use Free Pascal/Lazarus a lot (because we have a lot of > existing pascal code) I think C++ and some GUI framework like QT might be a > better option. C/C++ is the number one used

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

2016-10-13 Thread LacaK via Lazarus
I am aware of it. I have not added all other MBCS because ! I doubt, which are realy used nowadays. My guess is that UTF-8 is far most used / supported as client character set. No problem to add them if there will be real demand from users ... Perhaps the correct answer is to let the databas

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Paul Breneman via Lazarus
On 10/13/2016 05:13 PM, Erwin van den Bosch via Lazarus wrote: ... Another problem with the RAD way is that a lot is stored in forms (.lfm files) and it's difficult to see/notice changes to those files. They can be very big and it's difficult to see if some control is missing, for example, an eve

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread DougC via Lazarus
On Thu, 13 Oct 2016 18:13:58 -0400Erwin van den Bosch via Lazarus wrote Although I use Free Pascal/Lazarus a lot (because we have a lot of existing pascal code) I think C++ and some GUI framework like QT might be a better option. C/C++ is the number o

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

2016-10-13 Thread Luiz Americo Pereira Camara via Lazarus
I have a component that needs to poll a SimpleIPC server repeatedly (at each 1s or so). Currently i'm using a TTimer with a OnTimer handler that calls FIPCServer.PeekMessage(1, True);. Wondering if using TIdleTimer, Application.OnIdle(or AddIdleHandler) or a separated TThread will be more efficie

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Erwin van den Bosch via Lazarus
Although I use Free Pascal/Lazarus a lot (because we have a lot of existing pascal code) I think C++ and some GUI framework like QT might be a better option. C/C++ is the number one used programming language. C/C++ code is much more portable to other systems. There are more compilers. QT has a

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 22:11, Giuliano Colla via Lazarus wrote: > One should be aware of what > is available, of course, but then one should always select the most > "appropriate" technology, and not be influenced by what is "modern". Very wise words! Regards, Graeme -- ___

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 21:13, Martin Collins via Lazarus wrote: > My coding is just a hobby that I enjoy, but I would like to be able to > do it well and also somehow know that I am. Unfortunately I come from a > marine (ships) background not from an IT one. No formal training in > programming. You back

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Giuliano Colla via Lazarus
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 applications). ^^ I find very unlikely that civil, environmental and bio engineers will find

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Martin Collins via Lazarus
Darn it, sounds like Graeme is describing me! I wandered into Lazarus/Free Pascal a few years ago after enjoying writing VBA code in Excel. Admittedly I always found my (VBA) code sloppy and wrote some odd code just to make things work! My coding is just a hobby that I enjoy, but I would like

[Lazarus] LCL Cocoa: Overriding delegate protocols

2016-10-13 Thread Zoƫ Peterson via Lazarus
I need to handle some delegate protocols in our application layer, which will require overriding things that the LCL Cocoa layer already implements in classes like TCocoaWindow. In the Carbon interface, the equivalent was fairly easy, since TCarbonWSCustomForm.CreateHandle just creates a TCarb

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Mehmet Erol Sanliturk via Lazarus
On Thu, Oct 13, 2016 at 7:04 AM, Michael Schnell via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 13.10.2016 15:32, Mehmet Erol Sanliturk via Lazarus wrote: > >> When a problem tends to be very large , Pascal is losing its power >> because of its non-standard ( actually related standards a

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Reimar Grabowski via Lazarus
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 students will be civil, environmental or bio engineers but > not

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Martin Schreiber via Lazarus
On Thursday 13 October 2016 16:27:44 Martin Schreiber wrote: A better screenshot who shows what the binary value displays do: http://mseide-msegui.sourceforge.net/pics/rechenkunst.png Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org htt

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Michael Schnell via Lazarus
On 13.10.2016 15:37, Adrian De Armas via Lazarus wrote: The second part will introduce: * GUI environment. Dropping components on a form and arrange them. Changing properties. Thanks to RAD, creating a GUI is extremely simple in Lazarus (any of the students you described can learn to c

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Tony Whyman via Lazarus
On 13/10/16 14:37, Adrian De Armas via Lazarus wrote: # GUI environment. Dropping components on a form and arrange them. Changing properties. # Be careful to explain carefully the separate components that Lazarus brings together: The LCL The Compiler/Linker The Debugger The Text and Form Edi

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Martin Schreiber via Lazarus
On Thursday 13 October 2016 15:37:53 Adrian De Armas via Lazarus wrote: [...] > > In GUI a, b, and c will be spinedits with a "value" integer property so I > can write: > > spineditc.value := spinedita.value+spineditb.value; > > instead of > > editc.Text := IntToStr(StrToInt(Edita.Text)+StrToInt(Ed

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Chris Kelling via Lazarus
Because there are some basic controls that use array logic (lists, combo boxes, even edit boxes when dealing with positions of characters in a string), I'd introduce the concept with the variables. If the student can make the connection between the visual controls and concept of array logic, th

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Michael Schnell via Lazarus
On 13.10.2016 15:32, Mehmet Erol Sanliturk via Lazarus wrote: When a problem tends to be very large , Pascal is losing its power because of its non-standard ( actually related standards are dead and not maintained and not adhered ) structure . I do know several very large systems done in Delphi.

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Mehmet Erol Sanliturk via Lazarus
On Thu, Oct 13, 2016 at 3:02 AM, Graeme Geldenhuys via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 2016-10-13 10:04, Michael Schnell via Lazarus wrote: > > IMHO it's a shame, but new > > projects in Pascal seem to be declining, > > That's got nothing to do with the Object Pascal being mod

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Adrian De Armas via Lazarus
First of all, Thank you all who spent your time reading and suggesting about this subject. First, some clarifications. When I wrote "modern" my comparison was againts console applications. Even those students who won't do a line of code except in my class realize that console applications are not w

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 10:04, Michael Schnell via Lazarus wrote: > IMHO it's a shame, but new > projects in Pascal seem to be declining, That's got nothing to do with the Object Pascal being modern or not (I think it is modern enough). The decline is about marketing and popularity contests, and management

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Michael Schnell via Lazarus
On 12.10.2016 20:10, Adrian De Armas via Lazarus wrote: teach how to create rich GUI Applications and to my surprise the idea was well recieved. Now I have to make suggestions about how to prepar The GUI development in Lazarus is not "modern" at all (but IMHO a *very* decent way to do a GUI).

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Michael Schnell via Lazarus
On 12.10.2016 20:10, Adrian De Armas via Lazarus wrote: "Why don't we do something more modern?". I don't think Pascal is "modern" at all. IMHO it's a shame, but new projects in Pascal seem to be declining, even though, or maybe exactly because, the quality of the language is great and enfor

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Graeme Geldenhuys via Lazarus
On 2016-10-12 19:52, Chris Kelling via Lazarus wrote: > I would love to know what you think about making the transition from > console to GUI. All kids/students love games, so introducing programming with games in mind helps keep their attention. Here is a link to some online and free course mate

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 06:33, LacaK via Lazarus wrote: > I understand, that black/white window does not look modern. You can > introduce 2 courses: > 1. Introduction to Pascal (Object Pascal) > 2. GUI programing +1 That would be the best solution. GUI programming is based on fundamentals than need to be