Re: [fpc-pascal] Bitcounting

2016-03-05 Thread Philippe Lévi
sorry ... need change intToStr in my suggestion by something like intToStrBin length( strChange( intToStrBin( N, '0', '')); but it is just for fun! De: fpc-pascal-boun...@lists.freepascal.org em nome de Bart Enviado: sábado, 5 de março de 2016 15:03 Pa

Re: [fpc-pascal] Bitcounting

2016-03-05 Thread Philippe Lévi
pseudocode length( strChange( intToStr( N), '0', '')); De: fpc-pascal-boun...@lists.freepascal.org em nome de Bart Enviado: sábado, 5 de março de 2016 15:03 Para: FPC-Pascal users discussions Assunto: [fpc-pascal] Bitcounting Hi, Does FreePascal have a

Re: [fpc-pascal] Lazarus Release 1.6

2016-02-20 Thread Philippe Lévi
, 2016 at 2:28 AM, Philippe Lévi wrote: > I still do not understand the reason why the size is 10 times bigger after > rebuilding Lazarus ... Open Tools -> Configure "Build Lazarus" ... dialog. Select profile "Optimized IDE". You can also use -O3 optimization in opt

Re: [fpc-pascal] Lazarus Release 1.6

2016-02-20 Thread Philippe Lévi
... Thanks and sorry for may be useless messages! Philippe De: fpc-pascal-boun...@lists.freepascal.org em nome de Philippe Lévi Enviado: sábado, 20 de fevereiro de 2016 16:14 Para: FPC-Pascal users discussions Assunto: Re: [fpc-pascal] Lazarus

Re: [fpc-pascal] Lazarus Release 1.6

2016-02-20 Thread Philippe Lévi
Lazarus Release 1.6 On 20/02/2016 13:30, Philippe Lévi wrote: > I may have missed something > > I installed lazarus from lazarus-1.6.0-fpc-3.0.0-win64.exe > > everything seem to have been installed well. > > but when I start Lazarus ... it requires "C:\lazarus

Re: [fpc-pascal] Lazarus Release 1.6

2016-02-20 Thread Philippe Lévi
Release 1.6 On 20/02/2016 13:30, Philippe Lévi wrote: > I may have missed something > > I installed lazarus from lazarus-1.6.0-fpc-3.0.0-win64.exe > > everything seem to have been installed well. > > but when I start Lazarus ... it requires "C:\lazarus64\fpc\2.7.1\so

Re: [fpc-pascal] Lazarus Release 1.6

2016-02-20 Thread Philippe Lévi
13:30, Philippe Lévi wrote: > I may have missed something > > I installed lazarus from lazarus-1.6.0-fpc-3.0.0-win64.exe > > everything seem to have been installed well. > > but when I start Lazarus ... it requires "C:\lazarus64\fpc\2.7.1\source" ... > but 2.6.4 h

Re: [fpc-pascal] Lazarus Release 1.6

2016-02-20 Thread Philippe Lévi
I may have missed something I installed lazarus from lazarus-1.6.0-fpc-3.0.0-win64.exe everything seem to have been installed well. but when I start Lazarus ... it requires "C:\lazarus64\fpc\2.7.1\source" ... but 2.6.4 has been installed! what is the best (easiest) solution to clean this

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-01 Thread Philippe Lévi
tly from the language if-then-else What about using another word suggesting a choice? j := Switch(i < 32, 48, 21); j := Select(i < 32, 48, 21); j := Which(i < 32, 48, 21); They look to me as a goog compromise between expressiveness (IfThen) and typing-laziness (iif). Roberto

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-01 Thread Philippe Lévi
iif ... sounds good to me! +1 ! Philippe De: fpc-pascal-boun...@lists.freepascal.org em nome de Marco van de Voort Enviado: segunda-feira, 1 de fevereiro de 2016 16:22 Para: FPC-Pascal users discussions Assunto: Re: [fpc-pascal] New feature: IfThen() in

Re: [fpc-pascal] fpGUI Toolkit v1.4.1 released

2015-09-04 Thread Philippe Lévi
:42, Philippe Lévi wrote: > > what about emails I sent a week ago? I'll get back to you as soon as I can... the weekend. > (some stuffs could have been inserted in the release ... may be!). There is *always* extra stuff that could make it into any release. :) I didn't want

Re: [fpc-pascal] fpGUI Toolkit v1.4.1 released

2015-09-02 Thread Philippe Lévi
lorwheel and valuebar Change saturation and value to 0-100 and value name to brightness Allow tabtext color setting Anchors label "Height" in case of resizing Philippe Lévi (2): richview: correctly typecast result in TLayoutLineList.GetItem() richview: fi

[fpc-pascal] TBGRABitmap / bounds

2015-07-21 Thread Philippe Lévi
bmp := TBGRABitmap.Create(1024,1024, clBlack); bmp.FontHeight := 30; bmp.FontAntialias := true; bmp.FontStyle := [fsBold]; bmp.TextOut( 0, 0, textonaovazio, ColorToBGRA(ColorToRGB( clWhite)), taLeftJustify); bounds := bmp.GetImageBounds; bounds contains 0,1024 0,1024 and I need bo

Re: [fpc-pascal] Use sleep in thread

2015-02-25 Thread Philippe Lévi
synchronising tools do not do what you want? De: fpc-pascal-boun...@lists.freepascal.org em nome de Xiangrong Fang Enviado: quarta-feira, 25 de fevereiro de 2015 12:33 Para: FPC-Pascal users discussions Assunto: Re: [fpc-pascal] Use sleep in thread 2015-02-25

Re: [fpc-pascal] TThread.Queue vs TThread.Synchronize

2015-02-23 Thread Philippe Lévi
what you want to do makes sense? I don't think so. Thread code "may not" access stack values of calling code ... De: fpc-pascal-boun...@lists.freepascal.org em nome de silvioprog Enviado: segunda-feira, 23 de fevereiro de 2015 15:32 Para: FPC-Pascal users dis

Re: [fpc-pascal] TThread.Queue vs TThread.Synchronize

2015-02-23 Thread Philippe Lévi
I "thought" it was not possible to use local procedure address as parameter like in queue( @SyncOnPrint); as Clecio showed ... De: fpc-pascal-boun...@lists.freepascal.org em nome de Sven Barth Enviado: segunda-feira, 23 de fevereiro de 2015 15:23 Para: