[Lazarus] RE : GeckoPort - Qt and GTK2

2011-11-19 Thread Ludo Brands
> windres" not found, switching to external mode On ubuntu I had to install mingw32-binutils to get windres. It wasn't part of the standard binutils. IRC I had also to create a symlink to i586-mingw32msvc-windres. Windres is used to compile resources in the windows format. Reason why you find it o

[Lazarus] GeckoPort - Qt and GTK2

2011-11-19 Thread silvioprog
Hi, I'm trying to install GeckoPort on openSUSE 11.4 and Lazarus compiled with Qt. But: Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.4.4 [2011/09/28] for i386 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Lin

Re: [Lazarus] RE : read single char from STDIN

2011-11-19 Thread Mark Morgan Lloyd
Ludo Brands wrote: ke := GetKeyEvent; kr := TKeyRecord(ke); The cast to TKeyRecord is wrong. You should use GetKeyEventFlags, GetKeyEventCode, GetKeyEventShiftState, etc to get the individual parts. They do fe. a (KeyEvent and $00FF) shr 16; which is endian safe. Thanks Ludo, I

[Lazarus] RE : read single char from STDIN

2011-11-19 Thread Ludo Brands
> ke := GetKeyEvent; > kr := TKeyRecord(ke); The cast to TKeyRecord is wrong. You should use GetKeyEventFlags, GetKeyEventCode, GetKeyEventShiftState, etc to get the individual parts. They do fe. a (KeyEvent and $00FF) shr 16; which is endian safe. Ludo -- ___

Re: [Lazarus] read single char from STDIN

2011-11-19 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On 18/11/11 13:06, Martin wrote: Not done any console apps in a long time. If I do: var c: char; read(c); It will read individual files, but only after I pressed enter on my terminal. What is needed to read the char immediately? This is rather platform specific, since you

[Lazarus] Record names and alias

2011-11-19 Thread Hans-Peter Diettrich
Many records in LCLType have C typenames, e.g. tagLOGBRUSH while the LCL code uses the alias TLogBrush. This makes searching for help difficult, because the documentation of the fields is available only for the record typename, not for the alias names. Will it be possible to use the Pascal nam