Re: [Lazarus] code format selection only

2015-11-30 Thread Rik van Kekem
Graeme Geldenhuys wrote: As far as I understand the code formatter included with Lazarus is the Jedi Code Formatter. Does anybody know if it supports formatting only a selection (eg: the body of a method) - or does it always require whole unit formatting? As far as I could see in the source the J

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Rik van Kekem
Graeme Geldenhuys wrote: Oops, my mistake. Yes, only { and } is removed in tiOPF code. Why are the { and } actually removed? As far as I know they can be part of a filename on all OSes (or am I wrong?) Grtz, Rik (rvk) -- ___ Lazarus mailing list Laz

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Rik van Kekem
Rik van Kekem wrote: (I'm not sure if FPC 2.6.4 also some helpers for creating GUIDs) This will work in FPC 2.6.4: var GUID : TGUID; begin if CreateGUID(GUID) = 0 then begin MyFileName := GuiDToString(Guid); end; You could strip the {, } and - if you want. Grtz, Rik

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Rik van Kekem
Aradeonas wrote: > I used GetTempFileName in a multi thread system and it causes problems > as you guess already. I wasn't aware that GetTempFileName isn't threadsafe. (Are you sure your code is correct?) Graeme Geldenhuys wrote: On 2015-11-25 13:51, Aradeonas wrote: So the best way in my mind

Re: [Lazarus] TFPWriterJPEG quality

2015-11-18 Thread Rik van Kekem
Norbert Crettol wrote: On 18/11/15 15:32, Lukasz Sokol wrote: There are numerous reasons why it is so, feel free to search the Net for 'Netiquette' ;) Thanks for the reminder. I'll do that Also strip all non-relevant quoting from your reply :) Grtz, Rik -- _

Re: [Lazarus] TFPWriterJPEG quality

2015-11-18 Thread Rik van Kekem
Aradeonas wrote: Maximum 100 I think.At least it is better that 75. More is better ;) Doesn't 100% create a (much) bigger file as a result? I think some other programs are using 90% as default. (always presented to the user to change !!) http://photo.stackexchange.com/questions/30243/what-qual

Re: [Lazarus] GZip issues

2015-11-16 Thread Rik van Kekem
Werner Pamler wrote: Another question: I would prefer to avoid Abbrevia altogether and use the standard zip support in fpc. There are examples in the wiki on how to use the TDecompressionStream for inflating gzip files. But I always get a "data error"at least with the mailinglist archive files

[Lazarus] AnchorDockingDsgn with multi-monitor setup

2015-11-06 Thread Rik van Kekem
We've already discussed some of this on the forum. See topic for extra background: http://forum.lazarus.freepascal.org/index.php/topic,30226.msg192660.html#msg192660 My left monitor is primary monitor but it's numbered 2 in Windows. See image at http://forum.lazarus.freepascal.org/index.php/top

Re: [Lazarus] Embedded/small database

2015-02-20 Thread Rik van Kekem
leledumbo wrote: Not changing anything doesn't mean nothing supplied. You still have to distribute it. No, you don't *need* to distribute one. But that wasn't your original argument. Your original argument was that you needed to *specify* a config file and *set* some environment variable before

Re: [Lazarus] Embedded/small database

2015-02-18 Thread Rik van Kekem
FreeMan wrote: that configuration file is firebird.conf, on firebird root folder. small info in there too. this file system optimization, usage memory block etc. thats about indexes for examp. parameter's detail infos can found in firebird docs On 18.02.2015 10:52, Rik van Kekem wrote:

Re: [Lazarus] Embedded/small database

2015-02-18 Thread Rik van Kekem
leledumbo wrote: I didn't say it's difficult, but certainly sqlite is much easier. You use sqlite just like any other libraries, no setup required, just supply a single dll/so (or nothing if you statically linked it). With firebird embedded, you need to: - supply a bunch of dll/so (firebird doesn

Re: [Lazarus] Having more than 32 elements in a set (TGridOptions of TCustomGrid)

2014-11-05 Thread Rik van Kekem
On 05-11-2014 20:11, Howard Page-Clark wrote: I think you meant: "... cannot have a default value if the upper or lower bounds of the set's (or array's) base type have ordinal values *outside* the range 0..31." Yep That would be better ;) (That's what you get when you try to merge two oppo

Re: [Lazarus] Having more than 32 elements in a set (TGridOptions of TCustomGrid)

2014-11-05 Thread Rik van Kekem
On 05-11-2014 19:31, Frederic Da Vitoria wrote: So the error message is not misleading at all ;) Error: Property can’t have a default value Set properties or indexed properties cannot have a default value. This may be me misunderstanding English, but I feel that it is

Re: [Lazarus] Having more than 32 elements in a set (TGridOptions of TCustomGrid)

2014-11-05 Thread Rik van Kekem
So it's not that the set can't hold more than 32 items... It's just you can't use *default* for a property if the set's base has more than 32 values. This is from the Delphi manual (but I'm sure it also applies to FPC): The default and nodefault directives are supported only for ordinal types

Re: [Lazarus] Getting the last modified date of a directory

2014-10-27 Thread Rik van Kekem
Maybe it's just me but what's the use of "Date modified" for a folder? It *does not* (like TS expects) reflect the date of the last file *changed* in the folder. Only when files are removed or added the "Date modified" of the folder changes. If you also want the time of the last changes in the

Re: [Lazarus] IDE key shortcut file

2014-10-01 Thread Rik van Kekem
Jürgen Hestermann wrote: As already written in my other mail I confused editoroptions.xml with environmentoptions.xml (both start with an e and end on .xml ;-)) Aaaah, your mails arrived here in the wrong order ;) -- ___ Lazarus mailing list Lazarus@

Re: [Lazarus] IDE key shortcut file

2014-10-01 Thread Rik van Kekem
Jürgen Hestermann wrote: Is there a file that stores the current IDE editor keyboard shortcuts so that I can migrate them from one machine to another? I think they should be in editoroptions.xml in your config-directory. (In the section) My editoroptions.xml has no KeyMapping section although

Re: [Lazarus] IDE key shortcut file

2014-10-01 Thread Rik van Kekem
Jürgen Hestermann wrote: Is there a file that stores the current IDE editor keyboard shortcuts so that I can migrate them from one machine to another? I think they should be in editoroptions.xml in your config-directory. (In the section) -- ___ Lazar

Re: [Lazarus] Cannot open a non-select statement.

2014-09-26 Thread Rik van Kekem
Izac Kruger wrote: if I clicked on the second button who is to removed all the data on the fields, then after refield again the information and clicked on the INSERT button, I received a funny message: SQLQeuryLite: Cannot open a non-select statement. ... else begin //DB connections.

Re: [Lazarus] Anchordocking

2014-09-25 Thread Rik van Kekem
"Leonardo M. Ramé" wrote: I also wouldn't care about docked windows if at least the ide could remember window position. Is it possible to save the window positions?. Did you try Tools -> Save window layout as default. (As already stated this has problems with a second monitor but on your main/f

Re: [Lazarus] white popup hint box

2014-09-15 Thread Rik van Kekem
On 16 september 2014 01:17:55 CEST, waldo kitty wrote: >as noted previously, i don't use any installer... i pull trunk from the > >repository and compile it as per my previously posted command lines... Isn't Lazarus 1.3 r42488 a really old version? (November 2013?) Or am I seeing this wrong?

Re: [Lazarus] white popup hint box

2014-09-15 Thread Rik van Kekem
On 16-09-2014 00:26, Juha Manninen wrote: Run "make clean bigide" at cmd line. If it still is not there, then we have a bug. YES... It did come with bigide. I guess it's not the target of fpcup. Always used fcpup but maybe it's time to switch to svn and do the make myself (and learn what i'm d

Re: [Lazarus] white popup hint box

2014-09-15 Thread Rik van Kekem
On 15-09-2014 23:24, Juha Manninen wrote: Yes it is. As I explained it is now part of bigide. The next version 1.4 installer will have it by default. This afternoon i did a complete reinstall (on another machine) and did NOT get turbopoweriprodsgn. I did get TurboPowerIPro by default. (And i gu

Re: [Lazarus] white popup hint box

2014-09-15 Thread Rik van Kekem
On 15-09-2014 22:09, Juha Manninen wrote: Right, Waldo's screenshot does not have a border, it only has a shadow. In my Windows 7 there is both a border and a shadow. Now i see what you mean !! But for this to work you need the package turbopoweriprodsgn.lpk installed. And this is not done wi

Re: [Lazarus] white popup hint box

2014-09-15 Thread Rik van Kekem
On 15-09-2014 22:09, Juha Manninen wrote: Right, Waldo's screenshot does not have a border, it only has a shadow. In my Windows 7 there is both a border and a shadow. I'm missing the border too on my machine. Lazarus 1.3 r46221:46236M FPC 2.7.1 i386-win32-win32/win64 Windows 7 Ultimate 64 bit

Re: [Lazarus] white popup hint box

2014-09-15 Thread Rik van Kekem
On 15-09-2014 22:02, Juha Manninen wrote: I also see a distinctive yellow color. Waldo Kitty, you should go to see an eye doctor, you are suffering from color blindness. :) I take it you're not working with a laptop ;) I know for a fact laptops show these subtle colors differently. (Even my seco

Re: [Lazarus] white popup hint box

2014-09-15 Thread Rik van Kekem
waldo kitty wrote: i'm also quite confused how you saw that image with that section yellowed... i've looked at the same image on several machines and see only white on white :/ Like Anthony already found out, even if it's white on screen it really is a very light shade of yellow. You can see thi

Re: [Lazarus] white popup hint box

2014-09-14 Thread Rik van Kekem
On 14-09-2014 23:22, Rik van Kekem wrote: On 14-09-2014 20:56, waldo kitty wrote: i've just updated both of my trunk FPC and LAZ... it has been four months since my last update... when i hovor over something and lazarus pops up a hint box, it is all white except for the shadow border o

Re: [Lazarus] white popup hint box

2014-09-14 Thread Rik van Kekem
On 14-09-2014 20:56, waldo kitty wrote: i've just updated both of my trunk FPC and LAZ... it has been four months since my last update... when i hovor over something and lazarus pops up a hint box, it is all white except for the shadow border on the right and bottom... Are you sure you're seeing

Re: [Lazarus] Selection issues in class derived from TCustomDrawGrid

2014-09-14 Thread Rik van Kekem
On 14-09-2014 17:17, Werner Pamler wrote: Or just run "spready" which starts with an empty spreadsheet, activate editing... It does not work for me. When setting ExtendedSelect to true for the WorksheetGrid it works like expected (that's why it worked for me with a clean project because it's de

Re: [Lazarus] Help system questions

2014-09-14 Thread Rik van Kekem
On 13-09-2014 07:00, Reinier Olislagers wrote: 1. function TChmHelpViewer.ShowNode(Node: THelpNode; var ErrMsg: string ): TShowHelpResult; in components\chmhelp\packages\idehelp\lazchmhelp.pas has if Pos('file://', Node.URL) = 1 then begin Result := PassTheBuck(Node, ErrMsg); E

Re: [Lazarus] Selection issues in class derived from TCustomDrawGrid

2014-09-14 Thread Rik van Kekem
On 13-09-2014 19:59, Werner Pamler wrote: In fpspreadsheet I am using a TsWorksheetGrid to display the contents of spreadsheet files. This grid is derived from TCustomDrawGrid, it gets all data and formats from the underlying TsWorkbook. One thing which annoys me is that the grid can no longer s