Re: [Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Bart via Lazarus
On 10/18/16, Landmesser John via Lazarus wrote: > But UTF8ToAnsi(String) fails. Maybe Utf8ToWinCP(AString) helps? It's in unit LazUtf8. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Teaching Pascal at College

2016-10-18 Thread Jürgen Hestermann via Lazarus
Am 2016-10-18 um 16:47 schrieb Michael Schnell via Lazarus: > If you start with complex stuff that does not yield immediate success (i.e. a working program that does something that might be useful) The students will loose interest and run away, unless they are nerds like ourselves. Yes, therefo

Re: [Lazarus] Teaching Pascal at College

2016-10-18 Thread Michael Schnell via Lazarus
On 18.10.2016 15:23, Jürgen Hestermann via Lazarus wrote: IMO the order is extremly important! If you start with the fundamental informations (how does the processor work in general, how are variables stored (stack/heap/etc.), what does the processor do in loops, etc.) then this information is r

Re: [Lazarus] Teaching Pascal at College

2016-10-18 Thread Mehmet Erol Sanliturk via Lazarus
On Tue, Oct 18, 2016 at 6:23 AM, Jürgen Hestermann via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > Am 2016-10-18 um 12:53 schrieb Mehmet Erol Sanliturk via Lazarus: > > Order of teaching is not so critical : As you say , write a GUI program > for events : Say : "Now it is necessary to define

[Lazarus] ActiveX, TOLEControl

2016-10-18 Thread LacaK via Lazarus
Hi *, I need help with OCX component (not visual I guess), which I need use in Lazarus application (to control another application, which supplies this OCX control). I have imported type library using importtl.exe (new unit was created successfully) Then in program I have created instance:

Re: [Lazarus] Teaching Pascal at College

2016-10-18 Thread Jürgen Hestermann via Lazarus
Am 2016-10-18 um 12:53 schrieb Mehmet Erol Sanliturk via Lazarus: > Order of teaching is not so critical : As you say , write a GUI program for events : Say : "Now it is necessary to define what will be done for the events ? ... Its way is the following : Write your program parts in that way ...

[Lazarus] Trunk - Index Out Of Bounds error

2016-10-18 Thread Graeme Geldenhuys via Lazarus
Hi, I've just upgraded to Lazarus Trunk. If I now add a package dependency to my project I get an index out of bounds error. I don't see the package add - in the Project Inspector window either, but apparently it is there. If I quit and restart Lazarus IDE, then the package dependency magically ap

Re: [Lazarus] Creating a component Guide ?

2016-10-18 Thread Vojtěch Čihák via Lazarus
Yes, see:   http://wiki.freepascal.org/How_To_Write_Lazarus_Component   V. __ Od: Josh via Lazarus Komu: "Lazarus mailing list" Datum: 18.10.2016 12:12 Předmět: [Lazarus] Creating a component Guide ? Hi Is there a guide to creating

[Lazarus] ANN: Procedure List enhancement

2016-10-18 Thread Graeme Geldenhuys via Lazarus
Hi, I thought I would mention that Markus implemented an enhanced search feature in the Procedure List dialog. This became available at the end of July in Lazarus Trunk. I've used it extensively since then, and it is super handy. So kudos to Markus for than very nice addition. So what is the new

Re: [Lazarus] Teaching Pascal at College

2016-10-18 Thread Mehmet Erol Sanliturk via Lazarus
On Tue, Oct 18, 2016 at 1:11 AM, Michael Schnell via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 17.10.2016 21:05, Lars via Lazarus wrote: > >> The big issue with teaching using a RAD tool, is welding the program logic >> into the onclick events, instead of decoupling the logic in separat

Re: [Lazarus] Teaching Pascal at College

2016-10-18 Thread Mehmet Erol Sanliturk via Lazarus
On Tue, Oct 18, 2016 at 12:48 AM, Travis Ayres wrote: > I'm all for this effort, and hope it leads to new and modern tutorials, > books or notes that would be useful for others that use FreePascal/Lazarus > to convey graphical system interactions. If there's any need to proofread > such materials

Re: [Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Landmesser John via Lazarus
Thanks guys for your effort ... i stay with PWideChar(UTF8Decode(String)) that works for me :-)) At the moment there is no need to know the details of character encoding history in computer science. -- ___ Lazarus mailing list Lazarus@lists.lazarus

Re: [Lazarus] Lazmint

2016-10-18 Thread Michael Schnell via Lazarus
On 18.10.2016 12:01, Graeme Geldenhuys via Lazarus wrote: That should probably read 'x86_64', not 'x64_64'. Works ! I could successfully compile and run as well fpc 3.1.1 (from svn) as Lazarus. Thanks, -Michael (aka docu beta tester) -- ___ Lazaru

[Lazarus] Creating a component Guide ?

2016-10-18 Thread Josh via Lazarus
Hi Is there a guide to creating my own component ( s ), I am thinking of creating a knob / slide bar component that uses an imagelist as its animation. Is there such a guide? Thanks Josh This email and any files

Re: [Lazarus] Lazmint

2016-10-18 Thread Mattias Gaertner via Lazarus
On Tue, 18 Oct 2016 10:19:50 +0200 Michael Schnell via Lazarus wrote: > This Document > > http://www.freepascal.org/~michael/articles/lazmint/lazmint.pdf > > Wants to show that "This is not as scary or difficult as it may seem". > > Unfortunately the step > > wget $BASEURL/x84_64-linux/fpc-3.

Re: [Lazarus] Lazmint

2016-10-18 Thread Graeme Geldenhuys via Lazarus
On 2016-10-18 09:19, Michael Schnell via Lazarus wrote: > wget $BASEURL/x84_64-linux/fpc-3.0.0.x64_64-linux.tar ^^^ That should probably read 'x86_64', not 'x64_64'. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http:/

Re: [Lazarus] Lazmint

2016-10-18 Thread Michael Schnell via Lazarus
So I fetched the current fpc from svn. Trying to make same I get a similar error: Linking fpmake fpmake.pp(47,1) Warning: "crti.o" not found, this will probably cause a linking failure fpmake.pp(47,1) Warning: "crtn.o" not found, this will probably cause a linking failure /usr/bin/ld: skipping

Re: [Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Jürgen Hestermann via Lazarus
Am 2016-10-18 um 11:31 schrieb Mattias Gaertner via Lazarus: > Did you start the csv file with the UTF8 BOM, so that Excel knows that > the file is UTF-8 encoded? > UTF8BOM = #$EF#$BB#$BF In https://en.wikipedia.org/wiki/Comma-separated_values it says: "Also, many regional versions of Excel wi

Re: [Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Mattias Gaertner via Lazarus
On Tue, 18 Oct 2016 10:46:59 +0200 Landmesser John via Lazarus wrote: > Am 18.10.2016 um 09:36 schrieb Mattias Gaertner via Lazarus: > > That is NOT the same as PWideChar(UTF8Decode(String))? > > Obviously, because one produces an 8-bit string and the other a 16-bit > > string. How do you compare

Re: [Lazarus] Lazmint

2016-10-18 Thread Michael Schnell via Lazarus
Seemingly "make bigide" on a 64 Bit Mint does not work this simply with the 32 bit fpc: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o when searching for /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o /usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.8/cr

Re: [Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Landmesser John via Lazarus
Am 18.10.2016 um 09:36 schrieb Mattias Gaertner via Lazarus: That is NOT the same as PWideChar(UTF8Decode(String))? Obviously, because one produces an 8-bit string and the other a 16-bit string. How do you compare the result? I compare the results by open the *.csv file in Excel 2003 and see

[Lazarus] Lazmint

2016-10-18 Thread Michael Schnell via Lazarus
This Document http://www.freepascal.org/~michael/articles/lazmint/lazmint.pdf Wants to show that "This is not as scary or difficult as it may seem". Unfortunately the step wget $BASEURL/x84_64-linux/fpc-3.0.0.x64_64-linux.tar does not work (file not found). By wget $BASEURL/i386-linux/fpc-

Re: [Lazarus] Teaching Pascal at College

2016-10-18 Thread Michael Schnell via Lazarus
On 17.10.2016 21:05, Lars via Lazarus wrote: The big issue with teaching using a RAD tool, is welding the program logic into the onclick events, instead of decoupling the logic in separate procedures that can be reused elsewhere. As you point out in the text this is as well a pro (easy fast solvi

Re: [Lazarus] Teaching Pascal at College

2016-10-18 Thread Travis Ayres via Lazarus
I'm all for this effort, and hope it leads to new and modern tutorials, books or notes that would be useful for others that use FreePascal/Lazarus to convey graphical system interactions. If there's any need to proofread such materials, I'll gladly help out! On Oct 17, 2016 6:32 PM, "Mehmet Erol S

Re: [Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Mattias Gaertner via Lazarus
On Tue, 18 Oct 2016 09:15:15 +0200 Landmesser John via Lazarus wrote: > I know how to deal with german Umlauts but I would like to understand. > > Think of a *.csv file that contains strings like "Grünberg" and that > has to be opened in Excel ( Office 2003 ). > > It works if i use PWideChar(

[Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Landmesser John via Lazarus
I know how to deal with german Umlauts but I would like to understand. Think of a *.csv file that contains strings like "Grünberg" and that has to be opened in Excel ( Office 2003 ). It works if i use PWideChar(UTF8Decode(String)). Got this tipp here in the mailinglist! But UTF8ToAnsi(Str