[Lazarus] Extending the IDE

2012-01-28 Thread Reinier Napoles Martinez
Hello list, I started to study, how to extend the IDE. so far I have managed to add a menu to the IDE. How I can override the default behavior of the editor when I press Ctrl + D to run my code. thanks. This is my code. unit DuplicateLine; {$mode objfpc}{$H+} interface uses Classes,Con

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Sat, 28 Jan 2012 16:42:35 +0100 Hans-Peter Diettrich wrote: Mattias Gaertner schrieb: Could we add links to local documentation, when installed on a machine? [...] I meant: What should be written in docs/index.html? A link to the local docs directory could be

Re: [Lazarus] How to implement an iif with generic?

2012-01-28 Thread silvioprog
2012/1/26 Paul Ishenin : > 26.01.2012 10:13, silvioprog пишет: > >> In the last test: >> >> function Max(A, B: T): T; >> begin >>   if A<  B then >>     Result := B >>   else >>     Result := A; >> end; >> >> The error is: unit1.pas(30,13) Fatal: Syntax error, ":" expected but "<" >> found. >> >> W

Re: [Lazarus] TPageControl - how to use it?

2012-01-28 Thread Howard Page-Clark
On 28/1/12 9:00, Mattias Gaertner wrote: Hint: You don't need the Delphism "set Parent first" under LCL. The above will create a lot of updates. procedure TForm1.AddTab(AFileName: String); var Sheet: TTabSheet; Ed: TSynEdit; begin Sheet := TTabSheet.Create(pagecontrol1); Sheet.Captio

Re: [Lazarus] TPageControl - how to use it?

2012-01-28 Thread Mattias Gaertner
On Sat, 28 Jan 2012 20:13:34 + Howard Page-Clark wrote: > On 28/1/12 7:50, Bernd wrote: > > I have a TPageControl on my form and at runtime I > > want to add a new page with a SynEdit on it. > > > > This is what I have so far: > > ... > > But it does not work. > > Try this: > > procedure T

Re: [Lazarus] RE : RE : RE : LCL and custom keyboard layouts

2012-01-28 Thread Mark Morgan Lloyd
Ludo Brands wrote: Although setxkbmap assumes that somebody with admin rights has set up the appropriate files: I'm fairly certain that there's not a standard one for APL (which is, at best, a minority interest). You can do a bit with xmodmap, but things rapidly start getting messy: X has bee

Re: [Lazarus] TPageControl - how to use it?

2012-01-28 Thread Howard Page-Clark
On 28/1/12 7:50, Bernd wrote: I have a TPageControl on my form and at runtime I want to add a new page with a SynEdit on it. This is what I have so far: ... But it does not work. Try this: procedure TForm1.AddTab(AFileName: String); var Sheet: TTabSheet; Ed: TSynEdit; begin Sheet := TT

[Lazarus] RE : TPageControl - how to use it?

2012-01-28 Thread Ludo Brands
> What am I missing here? > Ed.parent:=Sheet; Ludo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] TPageControl - how to use it?

2012-01-28 Thread Bernd
There is documentation about how to add tabs and controls in the designer but I could not find any explanation of how to do the same programatically. I have a TPageControl on my form and at runtime I want to add a new page with a SynEdit on it. This is what I have so far: procedure TForm1.AddTab(

[Lazarus] RE : RE : RE : LCL and custom keyboard layouts

2012-01-28 Thread Ludo Brands
> > Although setxkbmap assumes that somebody with admin rights has set up > the appropriate files: I'm fairly certain that there's not a standard > one for APL (which is, at best, a minority interest). You can > do a bit > with xmodmap, but things rapidly start getting messy: X has > been rat

Re: [Lazarus] RE : RE : LCL and custom keyboard layouts

2012-01-28 Thread Mark Morgan Lloyd
Ludo Brands wrote: Thanks Ludo. I'm already doing a bit of custom stuff to get A+ running (arguably the largest free APL that still uses the original characters). But the question remains: once inside a Lazarus app, can I hook keycodes using a custom procedure, translate them to Unicode, and

[Lazarus] RE : RE : LCL and custom keyboard layouts

2012-01-28 Thread Ludo Brands
> > Thanks Ludo. I'm already doing a bit of custom stuff to get > A+ running > (arguably the largest free APL that still uses the original > characters). > But the question remains: once inside a Lazarus app, can I > hook keycodes > using a custom procedure, translate them to Unicode, and in

Re: [Lazarus] RE : LCL and custom keyboard layouts

2012-01-28 Thread Mark Morgan Lloyd
Sven Barth wrote: On 28.01.2012 18:38, Mark Morgan Lloyd wrote: Ludo Brands wrote: I'll start digging in and see where I get to, but any suggestions- particularly relating to Linux- will be welcome. Under X11 you can modify your keyboard to your likings. 4 levels per key are standard using S

Re: [Lazarus] RE : LCL and custom keyboard layouts

2012-01-28 Thread Sven Barth
On 28.01.2012 18:38, Mark Morgan Lloyd wrote: Ludo Brands wrote: I'll start digging in and see where I get to, but any suggestions- particularly relating to Linux- will be welcome. Under X11 you can modify your keyboard to your likings. 4 levels per key are standard using Shift and 3 lvl key

Re: [Lazarus] RE : LCL and custom keyboard layouts

2012-01-28 Thread Mark Morgan Lloyd
Ludo Brands wrote: I'll start digging in and see where I get to, but any suggestions- particularly relating to Linux- will be welcome. Under X11 you can modify your keyboard to your likings. 4 levels per key are standard using Shift and 3 lvl key (Altgr on most non-Eglish kbd but configurable

[Lazarus] RE : LCL and custom keyboard layouts

2012-01-28 Thread Ludo Brands
> > I'll start digging in and see where I get to, but any suggestions- > particularly relating to Linux- will be welcome. > Under X11 you can modify your keyboard to your likings. 4 levels per key are standard using Shift and 3 lvl key (Altgr on most non-Eglish kbd but configurable to any key).

Re: [Lazarus] LCL and custom keyboard layouts

2012-01-28 Thread Martin
On 28/01/2012 16:45, Mark Morgan Lloyd wrote: Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: Over the last few weeks I've hacked together a partial APL implementation, for use as a way of specifying lists of numbers etc. when passing commands between computers implementing a large dis

Re: [Lazarus] LCL and custom keyboard layouts

2012-01-28 Thread Mark Morgan Lloyd
Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: Over the last few weeks I've hacked together a partial APL implementation, for use as a way of specifying lists of numbers etc. when passing commands between computers implementing a large distributed system. For test purposes I've compile

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Mattias Gaertner
On Sat, 28 Jan 2012 16:42:35 +0100 Hans-Peter Diettrich wrote: > Mattias Gaertner schrieb: > > Could we add links to local documentation, when installed on a machine? > [...] > > I meant: What should be written in docs/index.html? > > A link to the local docs directory could be added. > >

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: Could we add links to local documentation, when installed on a machine? [...] I meant: What should be written in docs/index.html? A link to the local docs directory could be added. HTML files are read/write , and a unique marker in it allows to insert the link wit

Re: [Lazarus] LCL and custom keyboard layouts

2012-01-28 Thread Hans-Peter Diettrich
Mark Morgan Lloyd schrieb: Over the last few weeks I've hacked together a partial APL implementation, for use as a way of specifying lists of numbers etc. when passing commands between computers implementing a large distributed system. For test purposes I've compiled it on Linux as a command-li

[Lazarus] LCL and custom keyboard layouts

2012-01-28 Thread Mark Morgan Lloyd
Over the last few weeks I've hacked together a partial APL implementation, for use as a way of specifying lists of numbers etc. when passing commands between computers implementing a large distributed system. For test purposes I've compiled it on Linux as a command-line app and am using FPC's k

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Mattias Gaertner
On Sat, 28 Jan 2012 13:04:04 +0100 Hans-Peter Diettrich wrote: > Mattias Gaertner schrieb: > > On Sat, 28 Jan 2012 09:24:01 +0100 > > Hans-Peter Diettrich wrote: > > > >> [...] > >> Could we add links to local documentation, when installed on a machine? > > > > For example? > > For when the u

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Mattias Gaertner
On Sat, 28 Jan 2012 11:40:25 +0100 Marco van de Voort wrote: > On Fri, Jan 27, 2012 at 12:25:52PM +0100, Mattias Gaertner wrote: > > > > > So I go to http://lazarus.freepascal.org/. There's no online > > > documentation. > > > > It's called "Wiki". > > Where do I select the version? So that

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Sat, 28 Jan 2012 09:24:01 +0100 Hans-Peter Diettrich wrote: [...] Could we add links to local documentation, when installed on a machine? For example? For when the user is e.g. offline, or has locally modified/updated the documentation. I understand that CHM

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: Finally if the global fpdoc path is set, an unitname.xml is searched there. What's the "global fpdoc path"? I meant the IDE options. You mean the explicitly given fpdoc editor paths? [...] ToDo: implement something to use the docs of a newer Lazarus Version and

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Marco van de Voort
On Fri, Jan 27, 2012 at 12:25:52PM +0100, Mattias Gaertner wrote: > > > So I go to http://lazarus.freepascal.org/. There's no online > > documentation. > > It's called "Wiki". Where do I select the version? So that I get the right help for my (slightly outdated) version? -- _

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Mattias Gaertner
On Sat, 28 Jan 2012 09:24:01 +0100 Hans-Peter Diettrich wrote: >[...] > Could we add links to local documentation, when installed on a machine? For example? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Mattias Gaertner
On Sat, 28 Jan 2012 09:18:29 +0100 Hans-Peter Diettrich wrote: > Mattias Gaertner schrieb: > > >> Or the other way round: what makes the FPDoc Editor look into the right > >> directory, when no explicit path is given? > > > > The search works as following: > > First it searches for the declara

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Fri, 27 Jan 2012 22:14:18 +0100 Hans-Peter Diettrich wrote: Mattias Gaertner schrieb: I added a note about offline help with chmhelp and docview. Where? The default help page of the IDE. It is shown for example when you click on Help / Online Help. It simply sh

Re: [Lazarus] Help on FCL?

2012-01-28 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: Or the other way round: what makes the FPDoc Editor look into the right directory, when no explicit path is given? The search works as following: First it searches for the declaration of the identifier. Then it searches for the owner of the unit (e.g. a package) If th