Re: [Lazarus] lazcontrols filters
On 10.10.2015 18:47, Juha Manninen wrote: Rekonq uses both QT and KDE libs. Not directly usable for LCL implementation but a nice idea anyway. It was not exactly an idea to implement it in the LCL but more an argument that it is possible to do advanced stuff (custom painting, text area moving etc.) even on Linux and not only on Windows. So that means that it is possible to custom paint an edit at least on Qt. It is another problem that we (me definitely) don't know how to do it. Rekonq source is available on the internet https://projects.kde.org/projects/extragear/network/rekonq/repository so somebody with Qt knowledge could check how they do it and if it is possible to use a similar approach in the LCL. The fact that TextHint uses the "normal" Text property in TEdit sounds more a hack to me. Such custom painting could be safely used for TComboBox as well. Safari is able to do the same on OSX, so I assume that custom painting is available on every widgetset. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] lazcontrols filters
On 10/11/15, Ondrej Pokornywrote: > The fact that TextHint uses the "normal" Text property in TEdit sounds > more a hack to me. Such custom painting could be safely used for > TComboBox as well. Yes it is. We did it that way because not all widgetsets natively support such a feature (or at least we were not aware of this). And we were not willing to make TCustomEdit "custom painted". TextHint is natively supported on Windows (and most likely on WinCE) via a system API. If (and only if) this can be achieved via all other widgetsets (QT, GTK2, Carbon, Cocoa) the hack can be removed and the code can be moved to the widgetset implementation. So, does anybody know wether the other widgetsets offer this functionalitly natively? Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Suggestion about environmentoptions.xml
Hello, Why all settings in environmentoptions.xml ? for example, New desktop settings added, its good think, But why all value in environmentoptions.xml ? My suggestion is different file for each setting grup. PackageEditor_* can be separate xml file. So user (like me) when any conflict, just remove that file, and IDE create default values. At this style, I mean each settings in separated file, can copy settings to different os or user(s) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] lazcontrols filters
On 10/10/2015 06:38 PM, Ondrej Pokorny wrote: This is exactly what I was thinking. The rekonq browser has the same. It is even able to put a button in front of the text in the edit and start the text after the edit + the hint text is centered. I admit that I don't know if rekonq uses Qt or Gtk2. That's because rekonq uses kdelibs which have their own implementation of QLineEdit. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Built Lazarus on RPi2, warning on every project build
Mark Morgan Lloyd wrote: wkitt...@windstream.net wrote: Warning: "crtbegin.o" not found, this will probably cause a linking failure Warning: "crtend.o" not found, this will probably cause a linking failure Why does this happen? And what can be done about it? I /think/ that somebody pointed out elsewhere that those were spurious, but I'd need to check. If it causes issues then for Wheezy 2015 try adding -Fl/usr/lib/gcc/arm-linux-gnueabihf/4.6 to your /etc/fpc.cfg, or for Jessie add -Fl/usr/lib/gcc/arm-linux-gnueabihf/4.9 Note there's no space in there. Remember that for configuration files like this you'll usually need to use a unix/Linux editor, since the line-ending convention is different for DOS. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] lazcontrols filters
On 10/11/2015 08:38 AM, Ondrej Pokorny wrote: On 10.10.2015 18:47, Juha Manninen wrote: Rekonq uses both QT and KDE libs. Not directly usable for LCL implementation but a nice idea anyway. It was not exactly an idea to implement it in the LCL but more an argument that it is possible to do advanced stuff (custom painting, text area moving etc.) even on Linux and not only on Windows. So that means that it is possible to custom paint an edit at least on Qt. It is another problem that we (me definitely) don't know how to do it. Yes, it's possible to achieve that goal with Qt. In event filter of TQtLineEdit add QPaintEvent, and: 1.Paint QLineEdit by Qt - use QObject_event(Widget, Event); 2.Now call SlotPaint() which creates TQtDeviceContext and passes it to LCL ... if TEdit have Canvas and OnPaint you can do whatever in that case. 3.Now set Result := True in QPaintEvent, so Qt won't paint it again. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Built Lazarus on RPi2, warning on every project build
wkitt...@windstream.net wrote: On 10/10/2015 03:13 PM, Bo Berglund wrote: I have successfully compiled and installed fpc and lazarus from trunk sources retrieved by svn on a Raspberry Pi2 unit. Versions are 3.1.1 and 1.5 respectively I can run Lazarus in the RPi2 and simple programs that I have tested work as expected. But nevertheless on every single compile there are two warnings shown: Warning: "crtbegin.o" not found, this will probably cause a linking failure Warning: "crtend.o" not found, this will probably cause a linking failure Why does this happen? And what can be done about it? i cannot help with the problem but i wanted to point out that those two are "C Run Time" and not "CRT" items... many mistake those types of names as CRT related and go looking in that direction instead of in the "C" direction... a possible help is that you have to tell the system where to find the C runtime developer's library code... i don't know how this is done but the topic has been spoken of numerous times in either the FPC or Lazarus lists... i'm sure that others will have the real info if they haven't answered you already... I /think/ that somebody pointed out elsewhere that those were spurious, but I'd need to check. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus eats comment characters using Swedish keyboard
Bo Berglund wrote: A problem surfaced just a moment ago... I was writing code in Lazarus ver 1.5 running on a Raspberry Pi2 with Raspbian Jessie. I wanted to comment out a number of lines so I hit the key combination to produce the { } pair. But nothing was printed in the Lazarus editor. If I switched to the text editor in the GUI the keys produced the wanted characters. So something in Lazarus eats the key presses needed in Sweden to produce the braces (RightAlt-7 and RightAlt-0). Is there a configuration somewhere to stop this from happening so one can enter comments in Lazarus? Is it only those, or are any of the other keys that require affected? This sounds unfortunate since some things only with with { } comment markers rather than (* *). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Literature about REST
Op 08-10-15 om 17:23 schreef Luiz Americo Pereira Camara: > Hi, > > I would like to know more about web-programming with REST. Can anyone recommend books or web-sites to read about it ? I virtually know nothing about it. I read this book http://shop.oreilly.com/product/mobile/9780596805838.do Its a good one, with a few shortcomings: It uses examples with XML Has a focus in HATEOAS. Particularly i dont buy HATEOS stuff, so i read only until the CRUD service chapter. I have some free books/resources about it. I can send later Luiz Hi Luiz, I would like those extra resources you mentioned. Meanwhile I read some articles on the web, but I need more knowledge about html. Thanks, Koenraad. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Suggestion for IDE
Hello, fpc r32000 & lazarus r50023 osx el capitan qtx64 1- Is it possible to add new form for opened windows list, like under Main menu --> Window. This is so useful if use docking style IDE. Because all tool window is not stay on top, so when click main (usually source form) all non docked form(s) go under this and looking for it. 2- This slider not using but always there, no resizing, not moving. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus eats comment characters using Swedish keyboard
On 10/10/2015 23:33, Bo Berglund wrote: I wanted to comment out a number of lines so I hit the key combination to produce the { } pair. But nothing was printed in the Lazarus editor. If I switched to the text editor in the GUI the keys produced the wanted characters. So something in Lazarus eats the key presses needed in Sweden to produce the braces (RightAlt-7 and RightAlt-0). Is there a configuration somewhere to stop this from happening so one can enter comments in Lazarus? This sometimes happens, if the key combo matches a configured shortcut. You can check this in tools > options> editor > keyboard Right Alt = AltGr ? that is usually seen as equal to ctrl-alt. Though I am not aware of anything an ctrl-alt 7 or 0 by default. Bookmarks are on ctrl-0 to 9. Maybe test this, set bookmark 7 and see if your key combo jumps there. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Codetools question
On Sat, 10 Oct 2015 13:12:15 +0200 Ondrej Pokornywrote: > On 10.10.2015 13:00, Michael Van Canneyt wrote: > > This is definitely not so :-( > > I compile lazarus with 2.6.4, but work with compiler set to 3.0 or > > even jvm. > > > > That is how I bumped into the problem to begin with... :-) > > CodeTools know what compiler constants are defined in the target tool. > You have to check if FPC_HAS_CPSTRING is defined. This should be > possible but I don't know how to do it. You'll have to wait for Mattias' > answer. if Scanner.Values.IsDefined('FPC_HAS_CPSTRING') then ... Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
It is movable in the fixes branch at r50025. The main toolbar and component palette (together the main form) is resizeable by moving it... 2015-10-11 14:21 keltezéssel, FreeMan írta: > Hello, > fpc r32000 & lazarus r50023 osx el capitan qtx64 > > 1- Is it possible to add new form for opened windows list, like under > Main menu --> Window. This is so useful if use docking style IDE. > Because all tool window is not stay on top, so when click main (usually > source form) all non docked form(s) go under this and looking for it. > > 2- > This slider not using but always there, no resizing, not moving. > > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Péter Gábor p...@freemail.hu -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus eats comment characters using Swedish keyboard
On Sun, 11 Oct 2015 14:40:50 +0100, Martin Frbwrote: >On 10/10/2015 23:33, Bo Berglund wrote: >> I wanted to comment out a number of lines so I hit the key combination >> to produce the { } pair. But nothing was printed in the Lazarus >> editor. >> If I switched to the text editor in the GUI the keys produced the >> wanted characters. >> >> So something in Lazarus eats the key presses needed in Sweden to >> produce the braces (RightAlt-7 and RightAlt-0). >> Is there a configuration somewhere to stop this from happening so one >> can enter comments in Lazarus? >> >This sometimes happens, if the key combo matches a configured shortcut. >You can check this in tools > options> editor > keyboard > >Right Alt = AltGr ? that is usually seen as equal to ctrl-alt. > >Though I am not aware of anything an ctrl-alt 7 or 0 by default. >Bookmarks are on ctrl-0 to 9. Maybe test this, set bookmark 7 and see if >your key combo jumps there. Yes, what I meant was the AltGr key to the right of the space key. I have investigated further now and when I use the Pi directly (monitor connected to Pi and keyboard/mouse too) then the {} keys do work. When I noticed the problem I was using TightVNC to remotely access the GUI. So somehow VNC might be involved here. OTOH, to safeguard against that I tried with the Raspbian text editor in the VNC controlled GUI and there were no problems in that editor. Only the Lazarus code editor shows this. Another observation: If I select a button on a form and go to the Caption property (n.b. inside Lazarus) the { can be entered as a caption character! I guess that there must be some key mapping in Lazarus that does this, but I have not even looked at any customization of Lazarus yet... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
On 11.10.2015 18:17, Péter Gábor wrote: ...The slider is required (to be movable) when the main form is not wide enough to display all components in a single row on the active page of component palette. Otherwise the editor can go down too much. Is it possible that the main form is not resizeable manually or anchor docking does something wrong? Actually, it's not a bug. There is an option that does it: Options->Environment->Window->Automatically adjust IDE main windows height. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
On 11.10.2015 20:31, Ondrej Pokorny wrote: On 11.10.2015 19:19, FreeMan wrote: Ondrej, Visible always True, just resizing or not. I mean, if /"Environment" option checked, not resize but visible True. /if /"Environment" option NOT checked, visible True and resize. Thank you/ Sorry. I don't understand you. Was your first suggestion a) "do not show the splitter if it cannot move" Yes or b) "make the splitter move, it does nothing" ? >> suggestion: Can add max resize value for heigth. I myself don't think something like this is needed. Ask Lazarus developers for their meaning and if they think it is a good enhancement, create a patch. Ondrej/ / I'm writing mail list 'cos All lazarus developers read here, for create patch, If I finish my project maybe I can, but I lost enthusiasm Thank you -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Codetools question
On Sun, 11 Oct 2015 19:00:28 +0200 Ondrej Pokornywrote: > On 11.10.2015 18:58, Ondrej Pokorny wrote: > > I added the procedure name to the list (see patch). > Forgot the file... Thanks. Applied. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
On 11.10.2015 18:52, FreeMan wrote: I hide component palette, I don't need it every time, When I need any component "alt + P" show component search, its much easy and useful. of course for me. And Editor toolbar, add much used menu item on one line. This mean, Much more Source editor area and can see much source line without scroll. For me better then huge unuseful IDE main toolbar. This huge bulky view style similar from delphi 1 Yes, I do the same. The splitter can be hidden if "/Options->Environment->Window->Automatically adjust IDE main window height/" is enabled. If the option is disabled, the splitter has to be visible. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus eats comment characters using Swedish keyboard
On 11/10/2015 17:33, Bo Berglund wrote: I have investigated further now and when I use the Pi directly (monitor connected to Pi and keyboard/mouse too) then the {} keys do work. When I noticed the problem I was using TightVNC to remotely access the GUI. So somehow VNC might be involved here. http://bugs.freepascal.org/view.php?id=17820 Never had time to work on it, and probably wont have anytime soon. See note in bug. I dont know if same timestamp is allowed or if that is an issue in VNC. But in the LCL (for any custom control) it is interpreted as, this is the same keystroke, therefore it was already handled. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Built Lazarus on RPi2, warning on every project build
On Sun, 11 Oct 2015 11:48:55 +, Mark Morgan Lloydwrote: >> I /think/ that somebody pointed out elsewhere that those were spurious, >> but I'd need to check. > >If it causes issues then for Wheezy 2015 try adding > >-Fl/usr/lib/gcc/arm-linux-gnueabihf/4.6 > >to your /etc/fpc.cfg, or for Jessie add > >-Fl/usr/lib/gcc/arm-linux-gnueabihf/4.9 > >Note there's no space in there. Remember that for configuration files >like this you'll usually need to use a unix/Linux editor, since the >line-ending convention is different for DOS. Where in the file do I add this line? Or does it not matter? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Google Docs for help documentation
Hi All, I was wondering what people thought about using a Google Doc as a help file? It looks like you can have a contents, use anchors and obviously have pictures. Any thoughts? Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
...The slider is required (to be movable) when the main form is not wide enough to display all components in a single row on the active page of component palette. Otherwise the editor can go down too much. Is it possible that the main form is not resizeable manually or anchor docking does something wrong? 2015-10-11 18:01 keltezéssel, Péter Gábor írta: > It is movable in the fixes branch at r50025. > The main toolbar and component palette (together the main form) is > resizeable by moving it... > > > 2015-10-11 14:21 keltezéssel, FreeMan írta: >> Hello, >> fpc r32000 & lazarus r50023 osx el capitan qtx64 >> >> 1- Is it possible to add new form for opened windows list, like under >> Main menu --> Window. This is so useful if use docking style IDE. >> Because all tool window is not stay on top, so when click main (usually >> source form) all non docked form(s) go under this and looking for it. >> >> 2- >> This slider not using but always there, no resizing, not moving. >> >> >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> > -- Péter Gábor p...@freemail.hu -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
I hide component palette, I don't need it every time, When I need any component "alt + P" show component search, its much easy and useful. of course for me. And Editor toolbar, add much used menu item on one line. This mean, Much more Source editor area and can see much source line without scroll. For me better then huge unuseful IDE main toolbar. This huge bulky view style similar from delphi 1 On 11.10.2015 19:01, Péter Gábor wrote: It is movable in the fixes branch at r50025. The main toolbar and component palette (together the main form) is resizeable by moving it... 2015-10-11 14:21 keltezéssel, FreeMan írta: Hello, fpc r32000 & lazarus r50023 osx el capitan qtx64 1- Is it possible to add new form for opened windows list, like under Main menu --> Window. This is so useful if use docking style IDE. Because all tool window is not stay on top, so when click main (usually source form) all non docked form(s) go under this and looking for it. 2- This slider not using but always there, no resizing, not moving. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Codetools question
On 11.10.2015 17:38, Mattias Gaertner wrote: On Sat, 10 Oct 2015 13:12:15 +0200 Ondrej Pokornywrote: On 10.10.2015 13:00, Michael Van Canneyt wrote: This is definitely not so :-( I compile lazarus with 2.6.4, but work with compiler set to 3.0 or even jvm. That is how I bumped into the problem to begin with... :-) CodeTools know what compiler constants are defined in the target tool. You have to check if FPC_HAS_CPSTRING is defined. This should be possible but I don't know how to do it. You'll have to wait for Mattias' answer. if Scanner.Values.IsDefined('FPC_HAS_CPSTRING') then ... Great! I added the procedure name to the list (see patch). It is shown without problems in the identifier completion window but it doesn't show any parameter hint help (ctrl+shift+space). I tried to register the procedure in "KeywordFuncLists.InternalInit" but it didn't help. Still no hint. What could be the problem? Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
On 11.10.2015 19:19, FreeMan wrote: Ondrej, Visible always True, just resizing or not. I mean, if /"Environment" option checked, not resize but visible True. /if /"Environment" option NOT checked, visible True and resize. Thank you/ Sorry. I don't understand you. Was your first suggestion a) "do not show the splitter if it cannot move" or b) "make the splitter move, it does nothing" ? >> suggestion: Can add max resize value for heigth. I myself don't think something like this is needed. Ask Lazarus developers for their meaning and if they think it is a good enhancement, create a patch. Ondrej/ / -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
On 11.10.2015 18:17, Péter Gábor wrote: ...The slider is required (to be movable) when the main form is not wide enough to display all components in a single row on the active page of component palette. Otherwise the editor can go down too much. Is it possible that the main form is not resizeable manually or anchor docking does something wrong? It should not be movable/resizable. If it is so, it's a bug. If you want to show all components in the component pallette, use Options->Environment->Window->Show complete component palette Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Codetools question
On 11.10.2015 18:58, Ondrej Pokorny wrote: I added the procedure name to the list (see patch). Forgot the file... Index: components/codetools/identcompletiontool.pas === --- components/codetools/identcompletiontool.pas(revision 50030) +++ components/codetools/identcompletiontool.pas(working copy) @@ -1353,6 +1353,8 @@ AddCompilerFunction('Seg','var X','LongInt'); AddCompilerProcedure('SetLength','var S:String;NewLength:Integer'); AddCompilerProcedure('SetLength','var A:Array;NewLength:Integer'); +if Scanner.Values.IsDefined('FPC_HAS_CPSTRING') then + AddCompilerProcedure('SetString','out S:RawByteString;Buf:PAnsiChar;Len:SizeInt'); AddCompilerFunction('SizeOf','Identifier','Integer'); AddCompilerFunction('Slice','var A:Array;Count:Integer','Array'); AddCompilerProcedure('Str','const X[:Width[:Decimals]];var S:String'); -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
Ondrej, Visible always True, just resizing or not. I mean, if /"Environment" option checked, not resize but visible True. /if /"Environment" option NOT checked, visible True and resize. suggestion: Can add max resize value for heigth. Thank you / On 11.10.2015 20:08, Ondrej Pokorny wrote: On 11.10.2015 18:52, FreeMan wrote: I hide component palette, I don't need it every time, When I need any component "alt + P" show component search, its much easy and useful. of course for me. And Editor toolbar, add much used menu item on one line. This mean, Much more Source editor area and can see much source line without scroll. For me better then huge unuseful IDE main toolbar. This huge bulky view style similar from delphi 1 Yes, I do the same. The splitter can be hidden if "/Options->Environment->Window->Automatically adjust IDE main window height/" is enabled. If the option is disabled, the splitter has to be visible. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Codetools question
On Sun, 11 Oct 2015 18:58:39 +0200 Ondrej Pokornywrote: >[...] > I added the procedure name to the list (see patch). It is shown without > problems in the identifier completion window but it doesn't show any > parameter hint help (ctrl+shift+space). I tried to register the > procedure in "KeywordFuncLists.InternalInit" but it didn't help. Still > no hint. What could be the problem? KeywordFuncLists is for keywords. The parameter hints are in codetools 'FindCodeContext'. I added it. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus eats comment characters using Swedish keyboard
Martin Frb wrote: On 11/10/2015 17:33, Bo Berglund wrote: I have investigated further now and when I use the Pi directly (monitor connected to Pi and keyboard/mouse too) then the {} keys do work. When I noticed the problem I was using TightVNC to remotely access the GUI. So somehow VNC might be involved here. http://bugs.freepascal.org/view.php?id=17820 Never had time to work on it, and probably wont have anytime soon. See note in bug. I dont know if same timestamp is allowed or if that is an issue in VNC. But in the LCL (for any custom control) it is interpreted as, this is the same keystroke, therefore it was already handled. There's been an issue with shift keys- particularly multiple shift keys- in VNC for a long time, and I think that more testing is in order before blaming Lazarus. Specifically, back in the Delphi days I'd use a doubleclick on something with three shift keys pressed to enter "guru mode" (e.g. to resize windows that were normally locked), and I'm pretty sure that when I started accessing our application servers over VNC I had to relax this to any two shift keys. If there's a shift-key problem under VNC, but it does not show up with any non-VNC connection (i.e. local X11 session, remote X11 session using e.g. XDMCP, or X11 tunneled over SSH) then it's definitely not a Lazarus issue. If a Lazarus/LCL program works properly on a local X11 session, and there's shift key problems over one or more of the remote X11 connection types (remote using e.g. XDMCP, X11 tunneled over SSH) then it's probably worth looking whether anything in Lazarus or the LCL could be improved. There's at least two VNC implementations in Debian and derivatives: Real VNC on everything except ARM as the default, and TightVNC on (I think) almost everything; there's also RDP implementations in most desktop environments for remote support purposes. The open source RealVNC implementation is now falling behind reality, VNC (Ltd, or Inc, or whatever they call themselves) are only maintaining a closed source version although I believe binaries are available for free download for small-scale use. I don't know to what extent TightVNC is in a better position. If this continues to be a problem for anybody, I'd suggest duplicating it on an x86 system using RealVNC, and then seeing if it's fixed in their closed-source version. If it is, then confer with the Debian (etc.) VNC maintainers. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Play a sound/beep when compiling finished
Ondrej Pokorny wrote: Is it possible to play a sound or beep when compiling was finished? Sometimes compiling takes some time and I am struggling to get to know that it finished. Put something in the "execute after" command (or whatever it's called). I normally display a time there so that I can see I did actually run a build, if I've looked at something else meanwhile. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Google Docs for help documentation
On Sun, 11 Oct 2015 15:28:18 -0400 Richard Mace richard.m...@gmail.com wrote Hi All, I was wondering what people thought about using a Google Doc as a help file? It looks like you can have a contents, use anchors and obviously have pictures. Any thoughts? Are you talking about a help file for your app or for Lazarus, itself? If for Lazarus, what's the problem you are solving by suggesting this? Is the existing wiki so bad? It is a really bad idea to tie your documentation to a single vendor. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Built Lazarus on RPi2, warning on every project build
Bo Berglund wrote: On Sun, 11 Oct 2015 11:48:55 +, Mark Morgan Lloydwrote: I /think/ that somebody pointed out elsewhere that those were spurious, but I'd need to check. If it causes issues then for Wheezy 2015 try adding -Fl/usr/lib/gcc/arm-linux-gnueabihf/4.6 to your /etc/fpc.cfg, or for Jessie add -Fl/usr/lib/gcc/arm-linux-gnueabihf/4.9 Note there's no space in there. Remember that for configuration files like this you'll usually need to use a unix/Linux editor, since the line-ending convention is different for DOS. Where in the file do I add this line? Or does it not matter? If it mattered, I'd have said :-) That file is basically just a list of options that are appended most of the times FPC is run. I'd suggest you either tack it in like this (this is a slightly older Raspbian, but you should get the idea): .. # searchpath for fppkg user-specific packages -Fu~/.fppkg/lib/fpc/$fpcversion/units/$FPCTARGET/* # path to the gcclib # This for Raspbian 2014 -Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3 # This for Raspbian 2014 -Fl/usr/lib/arm-linux-gnueabi -Fl/usr/lib/gcc/arm-linux-gnueabihf/4.6 # searchpath for libraries #-Fl/usr/local/lib/fpc/$fpcversion/lib #-Fl/lib;/usr/lib -Fl/usr/local/lib/fpc/$fpcversion/lib/$FPCTARGET # searchpath for tools -FD/usr/local/lib/fpc/$fpcversion/bin/$FPCTARGET # This for Raspbian 2014 #-FL/lib/ld-linux.so.3 #DEFINE NEEDCROSSBINUTILS .. or alternatively put it at the end and put your initials in a comment. In either case, treat this as part of your system documentation. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Play a sound/beep when compiling finished
Is it possible to play a sound or beep when compiling was finished? Sometimes compiling takes some time and I am struggling to get to know that it finished. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus