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

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

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

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

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

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

Re: [Lazarus] Calling DrawFocusRect() outside the Paint() event

2016-10-10 Thread Graeme Geldenhuys via Lazarus
On 2016-10-10 11:11, Mattias Gaertner via Lazarus wrote: > Draw to a bitmap and in OnPaint draw that. Similar to a TImage. > Then you can also use aggpas. Incidently, that is how fpGUI's latest 'develop' branch overcomes the painting outside the Paint method problems. Seeing as AggPas is used as

Re: [Lazarus] Calling DrawFocusRect() outside the Paint() event

2016-10-10 Thread Graeme Geldenhuys via Lazarus
On 2016-10-10 11:50, Michael Van Canneyt via Lazarus wrote: > I thought lazarus did double buffering by default, so this should be so > automatically ? I don't believe LCL uses double buffering by default (for some reason or another). At least that is what I was told in the Lazarus Forums.

Re: [Lazarus] TColor($RRGGBB) -> TColor($BBGGRR)

2016-09-27 Thread Graeme Geldenhuys via Lazarus
On 2016-09-27 16:20, Graeme Geldenhuys via Lazarus wrote: > I can do the following myself with a simple function, but does LCL > already contain a function that swaps the Red and Blue channel values? I searched all of Graphics and GraphUtils and couldn't find anything revelant, so I c

Re: [Lazarus] TColor and Alpha channel support

2016-09-26 Thread Graeme Geldenhuys via Lazarus
On 2016-09-26 13:52, Martin Schreiber via Lazarus wrote: > Or: > " > Alpha := ...; // property Alpha: TColor > " > for alpha per colour channel. In that case I would make it a record type with RedAlpha, GreenAlpha and BlueAlpha: Byte. Why?, Because TColor's range is way to large, with most of

Re: [Lazarus] TColor and Alpha channel support

2016-09-26 Thread Graeme Geldenhuys via Lazarus
On 2016-09-26 13:50, Ondrej Pokorny via Lazarus wrote: > Aah, I see now what you mean. Then ColorAlpha :) An then you start getting the contradicting properties. For example: Label1.Color := clRed; Label1.ColorAlpha := 170; Label1.Transparent := True; or, what to do if Label1.Transparent

Re: [Lazarus] TColor and Alpha channel support

2016-09-26 Thread Graeme Geldenhuys via Lazarus
On 2016-09-26 12:33, Mattias Gaertner via Lazarus wrote: >> Does TColor support the Alpha channel, > > No. Wow, that's surprising. > The idea is to use the FPColor property for alpha, but that is not > implemented yet by the LCL interfaces. Hmm, I wonder how hard it would > be... Does that

Re: [Lazarus] Scrollbars on form ?

2016-09-25 Thread Graeme Geldenhuys via Lazarus
On 2016-09-25 09:01, Michael Van Canneyt via Lazarus wrote: > I use GTK. Can you make a demo that shows this ? Michael, I just tried with a brand new project, dropped a large TMemo on the form, resized the form smaller, then set AutoScroll = True, and it worked with LCL-GTK2. So you seem to be in

Re: [Lazarus] Scrollbars on form ?

2016-09-24 Thread Graeme Geldenhuys via Lazarus
On 2016-09-24 23:06, Michael Van Canneyt via Lazarus wrote: > I tried AutoScoll true and false. I wouldn't be surprised if it only works with a specific LCL widgetset (eg: LCL-Win32). Could a TScrollBox (aligned alClient) be used as a work-around? Regards, Graeme -- fpGUI Toolkit - a

Re: [Lazarus] Mailinglist issues

2016-09-24 Thread Graeme Geldenhuys via Lazarus
On 2016-09-24 14:06, Andrew Haines via Lazarus wrote: > Now lets see if I get a copy of my email back. I can confirm that I received your message via the mailing list Andrew. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My

<    1   2   3   4   5