Re: [Lazarus] 1 keypress gives multiple letters ONLY in program written in Lazarus in raspbian jessie Pi 2

2016-04-11 Thread Michael Thompson
On 12 April 2016 at 02:51, Giuliano Colla wrote: > > I took the liberty of editing the Wiki entry, using all the information I > have. > > Please feel free to adjust as you deem proper. > > Nice work. More technical than I was capable of :-) Mike --

Re: [Lazarus] Is it an error to have mutiple help viewers enabled?

2016-04-11 Thread Michael Thompson
On 12 April 2016 at 02:12, Alan Corey wrote: > Just what everybody should carry in their phone as an epub. :-) Ooh! Now I want a copy :-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] 1 keypress gives multiple letters ONLY in program written in Lazarus in raspbian jessie Pi 2

2016-04-10 Thread Michael Thompson
I know this issue is resolved, but I've just stumbled across this: http://wiki.lazarus.freepascal.org/Lazarus_Faq#Typing_under_Ubuntu_in_edit_fields_generate_duplicate_letters We'll need to change Ubuntu now to Linux in general, but before I do that: Giuliano: Do you know if any of the steps

Re: [Lazarus] Trying to work around "Illegal character in format string"

2016-04-09 Thread Michael Thompson
On 10 April 2016 at 03:00, Alan Corey wrote: > I don't know where this illegal character error is coming from, but I > didn't get it when I built and installed initially. > >From the screen shot. Lazarus IDE v1.0,14 is very old. I'm guessing you installed it directly from

Re: [Lazarus] Lazarus Digest, Vol 99, Issue 32

2016-04-09 Thread Michael Thompson
On 9 April 2016 at 22:41, Juha Manninen wrote: > Are you good in drawing diagrams? > :-) Me? I'm useless at drawing and at documentation. When I contributed to mplayer, I came up with three tactics of documentation - expanded comments in code,

Re: [Lazarus] Lazarus Digest, Vol 99, Issue 32

2016-04-09 Thread Michael Thompson
On 9 April 2016 at 22:07, Giuliano Colla wrote: > Because without a minimal amount of documentation all this valuable work > risks to be useless, because: > - nobody except a few core developers know of its existence > - nobody except the developer itself knows how

Re: [Lazarus] *** GMX Spamverdacht *** help writing help [was: Re: Re: Suggestion for TRadioGroup documentation]

2016-04-09 Thread Michael Thompson
I've just spent some time researching a problem that someone posed on the forum. I'm reminded of how powerful open source is. I had no idea how to answer the question. The wiki, the forum and even Mantis provided a veritable wealth of information before I got to even looking at code

Re: [Lazarus] *** GMX Spamverdacht *** help writing help [was: Re: Re: Suggestion for TRadioGroup documentation]

2016-04-09 Thread Michael Thompson
On 9 April 2016 at 20:38, Jürgen Hestermann <juergen.hesterm...@gmx.de> wrote: > Am 2016-04-09 um 13:26 schrieb Michael Thompson: > > What? How's that going to work? I prefer my open source projects alive > and kicking :-( > > I'm not interested in theoretical "w

Re: [Lazarus] 1 keypress gives multiple letters ONLY in program written in Lazarus in raspbian jessie Pi 2

2016-04-09 Thread Michael Thompson
On 9 April 2016 at 18:41, Dennis wrote: > EXCEPT that pressing a key once will gives multiple letters. We've had this before, under Ubuntu from memory. Yup: http://bugs.freepascal.org/view.php?id=23140 (and related) You may find some ideas in there. Mike --

Re: [Lazarus] Lazarus Digest, Vol 99, Issue 32

2016-04-09 Thread Michael Thompson
Am 2016-04-09 um 12:20 schrieb Giuliano Colla: > An answer such as: "Your patch is good, it adds a desirable functionality, > but without proper documentation, nobody will be able to take advantage of it. > Please add some concise comments on variable and procedure usage, and we > will be glad to

Re: [Lazarus] *** GMX Spamverdacht *** help writing help [was: Re: Re: Suggestion for TRadioGroup documentation]

2016-04-09 Thread Michael Thompson
On 9 April 2016 at 19:08, Special wrote: > Am 09.04.2016 um 14:05 schrieb Jürgen Hestermann: > >> >> Do not implement any new features until all existing features are >> documented! >> > Agree. What? How's that going to work? I prefer my open source projects alive and

Re: [Lazarus] *** GMX Spamverdacht *** Re: Suggestion for TRadioGroup documentation

2016-04-08 Thread Michael Thompson
On 9 April 2016 at 01:10, Jürgen Hestermann wrote: > That's a bad idea. > The person who wrote the code is the only person who knows what he > intended. > This person has to write the documentation. > > That's a bad idea :-) Sure, *some* programmers make good

Re: [Lazarus] Suggestion for TRadioGroup documentation

2016-04-08 Thread Michael Thompson
On 8 April 2016 at 22:42, Bart wrote: > This is as it has always been, and as it was even in the Delphi 3 days. > Use the component in the way it is designed to work. > Why you would even drop individual radiobuttons on a TRadioGroup is beyond > me. To be fair, a

Re: [Lazarus] Building Lazarus for QT or GTK2 under windows

2016-03-29 Thread Michael Thompson
On 29 March 2016 at 15:06, Michael Thompson <mike.cornfl...@gmail.com> wrote: > I note a related post from Forum User Blaazen: > > http://forum.lazarus.freepascal.org/index.php/topic,31173.msg199332.html#msg199332 > I should have checked @Blaazen's post more thoroughly. H

[Lazarus] Building Lazarus for QT or GTK2 under windows

2016-03-29 Thread Michael Thompson
G'day, I'm having problems building Lazarus for either QT or GTK2. I'm running Windows 8, using Laz and fpc Trunk. I'm changing the LCL Widget Type from Lazarus -> Tools -> Configure "Build Lazarus". No defines. "Normal IDE". Target OS: Win32, Target CPU: i386 Rebuilding from the Configure

Re: [Lazarus] LCL exports CC-licensed icons to every LCL application

2016-03-23 Thread Michael Thompson
On 23 March 2016 at 23:18, wrote: > thanks for that! will it work for non-GUI console only apps? Hmm. In order to get the LCL information, I needed to include some LCL files... Shouldn't be too hard to modify though and build a version that doesn't report the LCL

Re: [Lazarus] LCL exports CC-licensed icons to every LCL application

2016-03-23 Thread Michael Thompson
On 23 March 2016 at 19:33, Mark Morgan Lloyd < markmll.laza...@telemetry.co.uk> wrote: > > Wandering slightly: I wonder if it would also be possible for the app to > get hold of things like the Lazarus and FPC version numbers and SVN > revisions? I'm currently doing this by fudging paths, but it

Re: [Lazarus] Do I need separate package files for multiple Lazarus versions?

2016-02-21 Thread Michael Thompson
> Do I need separate sources for each Lazarus version Under Windows, I have never had any problems using the same package source for multiple IDEs. Mind you, my two Lazarus's are target different CPUs (win32 and win64) as well as different builds and I have this target name in various compile

Re: [Lazarus] TComboBox.DropDownCount has no effect.

2015-04-04 Thread Michael Thompson
On 5 April 2015 at 06:04, Donald Ziesig don...@ziesig.org wrote: Additionally, in the FormCreate event, try setting ComboBox1.DropDownCount to something less than the number of Items. The new value is totally ignored. I am using Lazarus 1.4RC2 with no modifications on Linux Mint 17. You

Re: [Lazarus] Lazarus famous ?

2015-04-03 Thread Michael Thompson
On 3 April 2015 at 23:16, Giuliano Colla giuliano.co...@fastwebnet.it wrote: Il 03/04/2015 11:23, Graeme Geldenhuys ha scritto: On 2015-04-03 07:36, Michael Van Canneyt wrote: Maybe the whole team should go to the opening night ? :) :-D Brilliant idea! I'm afraid that, as Delphi

Re: [Lazarus] Oscilliscope Control

2015-03-22 Thread Michael Thompson
On 23 March 2015 at 06:00, Marc Santhoff m.santh...@web.de wrote: On So, 2015-03-22 at 08:25 -0500, Paul Breneman wrote: On 03/21/2015 03:56 PM, Michael Thompson wrote: G'day, Over on the forum someone is asking for an oscilloscope control. That vaguely reminded me of something, so

Re: [Lazarus] Oscilliscope Control

2015-03-22 Thread Michael Thompson
On 23 March 2015 at 09:08, Marc Santhoff m.santh...@web.de wrote: As far as requirements in this instance go, new information has come to light for the forum user - looks like TAChart will suit them fine. Exactly, using TAChart it's really easy to get get the x-y-plot working, which is

Re: [Lazarus] Here's an animated oscilloscope overlay widget

2015-03-22 Thread Michael Thompson
On 23 March 2015 at 08:16, Anthony Walter sys...@gmail.com wrote: Video and example code here: http://www.getlazarus.org/forums/viewtopic.php?f=18t=37 Many thanks. FYI I have shared this email at http://forum.lazarus.freepascal.org/index.php?topic=27803 (which was the topic that originally

[Lazarus] Oscilliscope Control

2015-03-21 Thread Michael Thompson
G'day, Over on the forum someone is asking for an oscilloscope control. That vaguely reminded me of something, so I went looking... Indeed, there was a project that might possibly have the required control. Unfortunately, the links on the wiki are either dead, or just not responding from my

[Lazarus] HTML on clipboard

2015-03-11 Thread Michael Thompson
G'day, Just found this code on the wiki... http://wiki.lazarus.freepascal.org/Office_Automation#Copy_HTML_to_the_clipboard On Windows with Microsoft products at least, this doesn't work... What's required is more complex: https://msdn.microsoft.com/en-us/library/aa767917%28v=vs.85%29.aspx

Re: [Lazarus] HTML on clipboard

2015-03-11 Thread Michael Thompson
Mattias Gaertner nc-gaert...@netcologne.de wrote: Michael Thompson mike.cornfl...@gmail.com wrote: Mattias: Do you know or remember which platforms and applications that code worked with? AFAIR an example is Linux, OpenOffice. I don't know if OO still supports this. Sweet. I've left

Re: [Lazarus] Compare record

2015-03-10 Thread Michael Thompson
On 11 March 2015 at 10:23, aradeonas aradeo...@operamail.com wrote: Hi, How can I compare two record? I usually end up writing my own - as per the first answer here: http://stackoverflow.com/questions/11797069/how-to-compare-two-trect-variables-in-d7 I'd be interested in knowing if there

Re: [Lazarus] Play video files in a row without delay

2015-02-18 Thread Michael Thompson
G'day, Hmmm, this was fairly well documented in the Microsoft documentation for DirectShow. If you're on Windoze and don't mind DirectShow, I can dig that out for you. As for VLC/Mplayer, I have no direct experience. I can only suggest you try playlists, seems to me they may help... Mike

Re: [Lazarus] TMPlayerControl

2015-01-11 Thread Michael Thompson
G'day, On 11 January 2015 at 11:44, Andrew Haines andrewd...@aol.com wrote: I played with this for a few minutes and came up with this: MPlayerControl1.OnPlaying has to be assigned for MPlayerControl1.Position to work. Oh. Yes, I see... That was by design - it never occurred to me that

Re: [Lazarus] Filling ListBox without triggering OnSelectionChange

2015-01-07 Thread Michael Thompson
On Thu Jan 08 2015 at 9:08:26 AM Marc Santhoff m.santh...@web.de wrote: Yes, assigning the event handler does work, if it is done in OnActivate. I'm sure you're aware of this, but just in case: Form.OnActivate should fire each time your user switches between forms in your UI. I usually put

Re: [Lazarus] TMPlayerControl

2015-01-06 Thread Michael Thompson
On 6 January 2015 at 17:48, Philippe phili...@quarta.com.br wrote: fs does not appear in http://wiki.freepascal.org/TMPlayerControl Correct. -fs is an input parameter to mplayer. These aren't explicitly covered in the wiki as mplayer documentation covers them elsewhere. And my question is

Re: [Lazarus] TMPlayerControl

2015-01-05 Thread Michael Thompson
G'day, On 5 January 2015 at 23:24, Philippe phili...@quarta.com.br wrote: someone may confirm: TMPlayerControl does not allow fullscreen option. When I extended the control last year I did not test full screen - in fact I didn't even consider it. So long as MPlayer supports this though,

Re: [Lazarus] FPC options - cool!

2014-10-20 Thread Michael Thompson
Just wanted to thank whoever wrote the project options/other tool to select fpc options... very nicely done, including the search functionality. Now I don't need to remember that I need -Xe but can search for linker ;) Oh. This functionality is working for me in 1.2.4, but not in Trunk

Re: [Lazarus] FPC options - cool!

2014-10-20 Thread Michael Thompson
On 20 October 2014 19:17, Vojtěch Čihák vojtech.ci...@atlas.cz wrote: Is there something I need to do to enable this functionality in trunk? You need to fill a bugreport :-). I just tested with Lazarus 1.3 r46582M FPC 2.7.1 x86_64-linux-qt and realy, there is only an empty space instead of

Re: [Lazarus] Charting Component for Organization Charts?

2014-10-15 Thread Michael Thompson
On 15 October 2014 19:30, ADTEC (Pty) Ltd ad...@adtec.co.za wrote: Hi. Does anyone know of a charting component for creating organizational charts (organograms)? I don't know anything directly related, but a screenshot accompanying the Eye Candy controls release caught my eye, might be

Re: [Lazarus] Hiding Code Hints

2014-10-10 Thread Michael Thompson
(*% This hint is shown *) sHint10: String; Fixed. Mattias Confirmed. Many thanks again. Mike -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Hiding Code Hints

2014-10-09 Thread Michael Thompson
G'day, According to the wiki, code comments starting with $ or % will be hidden from the code hint. http://wiki.freepascal.org/Lazarus_IDE_Tools#Comments_shown_in_the_hint Comments starting with *$* and *%* are ignored. Testing with trunk shows that the only form of this that actually works

Re: [Lazarus] Hiding Code Hints

2014-10-09 Thread Michael Thompson
21:09:04 +0200 Michael Thompson mike.cornfl...@gmail.com wrote: G'day, According to the wiki, code comments starting with $ or % will be hidden from the code hint. http://wiki.freepascal.org/Lazarus_IDE_Tools#Comments_shown_in_the_hint Comments starting with *$* and *%* are ignored

[Lazarus] Panel Visibility on QT/Win/Trunk

2014-09-27 Thread Michael Thompson
G'day, I've just got today's latest. I'm now seeing an issue with Panels under QT/Win7. Panels underneath other panels are now visible. Buttons/Labels/Arrows underneath panels are being hidden. Problem is, I've gone through SVN, and I can't see anything even slightly related. So, before I run

Re: [Lazarus] Panel Visibility on QT/Win/Trunk

2014-09-27 Thread Michael Thompson
Ah, so it's always been that way.New to the ways of QT am I :-) Thanks Mike On 27 September 2014 17:46, zeljko zel...@holobit.net wrote: On 09/27/2014 05:40 PM, Michael Thompson wrote: G'day, I've just got today's latest. I'm now seeing an issue with Panels under QT/Win7. Panels

[Lazarus] TArrow Drag Drop functionality

2014-09-21 Thread Michael Thompson
G'day, Does anyone know why TArrow.OnDragDrop/OnDragOver/OnEndDrag/OnStartDrag were commented out in lcl\arrow.pp? I'm working on menu editor drag/drop rearranging. As part of this I uncommented the above. All is working well, but you know that nagging thought at the back of your mind? It's

Re: [Lazarus] TArrow Drag Drop functionality

2014-09-21 Thread Michael Thompson
Just open an issue (feature) about it and I'll fix it asap (add missing events). zeljko Thanks for the offer. I've created the issue, and attached a patch as well if you like... http://bugs.freepascal.org/view.php?id=26756 Mike -- ___ Lazarus

[Lazarus] [Patch] - Menu Designer Drag/Drop Reordering

2014-09-21 Thread Michael Thompson
G'day, I've submitted a patch for reordering menu items in the designer using drag/drop. Tested under Win32, but only by me. http://bugs.freepascal.org/view.php?id=8733 Requires the minor TArrow fixes discussed earlier... http://bugs.freepascal.org/view.php?id=26756 Feedback/ideas/bugs

Re: [Lazarus] TListView OnSelectItem event: Bug or feature?

2014-08-22 Thread Michael Thompson
The implementation of the OnSelectItem event of TListView doesn't appear to me to be correct. With MultiSelect false, selecting a new Item on the list generates, as expected, two events: the unselect of the previous Item, and the select of the new one. But they're generated in the reverse

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Michael Thompson
Is it possible to save an array of string to a single string for storing in a string field within a database? Suspect it'll be something like MyString := ''; For i := Low(MyArray) to High(MyArray) Do MyString := MyString + MyArray[i] + LineEnding; MyStringField.AsString := MyString; On 1

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Michael Thompson
I'm lazy, I'd do it via a TStringList :-) MyStringList := TStringList.Create; MyStringList.Text := MyStringField.AsString; SetLength(MyArray, MyStringlist.Count); For i := 0 To MyStringList.Count-1 Do MyArray[i] := MyStringList[i]; MyStringList.Free; In fact, I'd use a TStringList at both

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Michael Thompson
You can use RUtils plugin: https://github.com/silvioprog/rutils That's brilliant. This answers a question I posted on the forum last week. Mind if I quote your link in there? Mike -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Michael Thompson
That's brilliant. This answers a question I posted on the forum last week. Mind if I quote your link in there? Mike Feel free to send it! :-) Done http://forum.lazarus.freepascal.org/index.php/topic,25017.msg151539.html#msg151539 Many thanks :-) Mike --

Re: [Lazarus] LazUtils - TProcessUTF8 - UTF8 Parameters issue

2014-06-29 Thread Michael Thompson
I answered in the forum. Bart Aye, thanks for that. More information. I have now tried every combination of AnsiToUTF8(), UTF8ToAnsi(), SysToUTF8(), UTF8ToSys() and just simply FFilename in both TProcess and TProcessUTF8. All failed (and you can see my machine gun approach confirms my

Re: [Lazarus] LazUtils - TProcessUTF8 - UTF8 Parameters issue

2014-06-29 Thread Michael Thompson
At some point in time I have thougth about completely re-implementing TProcessUTF8 just for that reason but it would mean so much duplicate code (which is a nightmare for maintainers). And all this would then become obsolete once fpc 2.8 comes around So, I gave up. By 2am last night I

[Lazarus] LazUtils - UTF8Process.pp - CommandLine/ApplicationName not deprecated

2014-06-28 Thread Michael Thompson
In Process.pp several properties are marked deprecated (ApplicationName and CommandLine). This tells me they're going to disappear one day, though I suspect not soon. I've just noticed in the UTF8 wrapper for TProcess ( TProcessUTF8), the corresponding properties are not marked deprecated, in

[Lazarus] LazUtils - TProcessUTF8 - UTF8 Parameters issue

2014-06-28 Thread Michael Thompson
Can anyone confirm if TProcessUTF8 handles unicode parameters under windows? I'm using Win 8 64bit/Laz 32 bit trunk/FPC Trunk. I'm struggling here with no unicode background, reading madly and hunting away... http://wiki.lazarus.freepascal.org/LCL_Unicode_Support makes it clear FPC is not

Re: [Lazarus] Lazarus-CCR - mplayer package

2014-06-14 Thread Michael Thompson
I've spent a few days now playing with it, and there's a fair amount I'd like to extend it with. I want to make sure I'm not taking the architecture of the control in a direction away from anyone else's planned design. You are welcome. Many thanks :-) Once I'm happy with my

[Lazarus] Lazarus-CCR - mplayer package

2014-06-13 Thread Michael Thompson
G'day, Does anyone have long term plans for the development and the design of the mplayer package? If so, can they send me details? I've spent a few days now playing with it, and there's a fair amount I'd like to extend it with. I want to make sure I'm not taking the architecture of the

Re: [Lazarus] Console App Development

2011-08-12 Thread Michael Thompson
OMG. Then we really need to discover what the gtk2 glue is doing so wrong. I noticed a few weeks ago that, in at at least one unit, we don't appear to free'ing g_list's consistently. I queried this in the forums with no response - as I stated in that post I have no idea if the glib has a

Re: [Lazarus] Console App Development

2011-08-12 Thread Michael Thompson
OMG. Then we really need to discover what the gtk2 glue is doing so wrong. It's not just LCL-GTK2, the same thing happens with Lazarus IDE compiled for LCL-Qt4 too. Just tested. Opening a blank project, Lazarus IDE (using LCL-Qt4) uses 69MB already. Open a 100 units and the memory usage

[Lazarus] GTK TlistView

2011-08-11 Thread Michael Thompson
type // for {$mode objfpc} TIntegerList = specialize TFPGListInteger; My question is, are you guys happy if I go ahead and implement code inside gtk2wscustomlistview.inc that uses this functionality, or should I just stay on the safe side and implement a specific TIntegerList for this

[Lazarus] GTK TlistView

2011-08-11 Thread Michael Thompson
including the entire IDE vanishing twice), so I'm thinking generics shouldn't be added to the LCL until the IDE fully supports them. Can you test this with the current SVN version of Lazarus and create bug reports if it still causes crashes? Good call. None of the issues I experienced

[Lazarus] GTK TlistView

2011-08-07 Thread Michael Thompson
G'day, Apologies if this is the wrong place to ask this question - the forum seems quiet on related questions I've asked there. I've been playing with the GTK TListView code, and I'm happy I can solve most of the selection issues outstanding in Mantis, and a few more to boot. Problem is the

Re: [Lazarus] GTK TlistView

2011-08-07 Thread Michael Thompson
The more I play with the gtk2 TListView, the more I realise what a superb, but extremely difficult, job other people have done making the gtk2 widget conform to the win32 api structure. All the ComCtrls are tightly bound to the Win32 platform/widgetset, see my recent problems with

[Lazarus] Many thanks for a superb product

2011-07-24 Thread Michael Thompson
G'day, I've been using Lazarus as a hobbyist for a year or two now - having moved away from being a professional Delphi programmer some years ago, lurking here and on the forums. I've started getting comfortable with the idea of attempting to contribute - initially by reporting bugs, all the