[Lazarus] F1 on Linux I got 255

2016-01-29 Thread Andrea Mauri
Dear all, lazarus 1.4.4 fpc 2.6.4 Under linux VirtualBox if I launch my application and press F1 I got key =255 instead key = 112 procedure TfrmMainMenu.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin // check for F1 if (Key = VK_F1) then begin

Re: [Lazarus] F1 on Linux I got 255

2016-01-29 Thread Andrea Mauri
If I press a I got 141 that is C octal escaped UTF-8: \141 as reported in character map in ubuntu. any hint to get F1 when it is pressed? Il 29/01/2016 12:04, Andrea Mauri ha scritto: Dear all, lazarus 1.4.4 fpc 2.6.4 Under linux VirtualBox if I launch my application and press F1 I got key

[Lazarus] Is the TTabControl.OnDrawTab working on Windows?

2016-01-29 Thread silvioprog
Hello, Just try the following steps: . Open Lazarus IDE with its empty Form1; . Put a TabControl1 in the Form1 and add one or more tabs; . Implement the OnDrawTab event with this code: procedure TForm1.TabControl1DrawTab(Control: TCustomTabControl; TabIndex: Integer; const Rect: TRect;

Re: [Lazarus] bad luck

2016-01-29 Thread Mark Morgan Lloyd
Marc Santhoff wrote: Good /God/ man, is that all? I opened this expecting to find that a member of the community was in real trouble (frankly, the sort of thing I was almost in over the last week). It's enough. Costs me hour of frustrating work recreating anything, doing nothing fruitful.

Re: [Lazarus] bad luck

2016-01-29 Thread Marc Santhoff
On Fr, 2016-01-29 at 21:21 +, Mark Morgan Lloyd wrote: > Marc Santhoff wrote: > > Hi, > > > > I really had some bad luck today. When starting Lazarus it worked > > normally first. Then I created a new unit, saved it having an > > appropriate name, typed in a class definition without any

Re: [Lazarus] bad luck

2016-01-29 Thread Mattias Gaertner
On Fri, 29 Jan 2016 22:54:00 +0100 Marc Santhoff wrote: >[...] > What I asked for is help locating and understanding Lazarus' file > handling. Some standard errors like unneccessarily holding files open > when not in use can be avoided easily. The IDE does not hold files

[Lazarus] bad luck

2016-01-29 Thread Marc Santhoff
Hi, I really had some bad luck today. When starting Lazarus it worked normally first. Then I created a new unit, saved it having an appropriate name, typed in a class definition without any fields or methods and Hit CTRL-F9. That was the moment when my computer freezed for a while, say 30

Re: [Lazarus] bad luck

2016-01-29 Thread Mark Morgan Lloyd
Marc Santhoff wrote: Hi, I really had some bad luck today. When starting Lazarus it worked normally first. Then I created a new unit, saved it having an appropriate name, typed in a class definition without any fields or methods and Hit CTRL-F9. That was the moment when my computer freezed for