[lazarus] Libc.ErrNo and TControl.DoMouseWheel
Marc Weustink
marc at dommelstein.net
Tue Dec 30 20:39:56 EST 2003
At 08:29 31-12-2003, Den Jean wrote:
>Hi,
>
>I am porting code from Kylix to Lazarus
>and I have a few questions:
>
>1) ErrNo from Libc does not compile
>
> eg uses Libc;
> writeln(Libc.ErrNo)
>
> gives error messages:
> undefined reference to `errno'
> Error:Error while linking
>
> But if you click on ErrNo it shows its definition in Libc
> I use it after call to setsockopt
If it is defined in the libc unit it doesn't mean that it can linked (it
has to be in the libc library aswell)
But that's probably not the case here. IIRC, erno is a var and there was
something with exported vars and libraries
>2) I use the mousewheel for zoom, but I cannot
> find the corresponding procedure
>
> function DoMouseWheel(Shift: TShiftState;
> WheelDelta: Integer;
> const MousePos: TPoint):
> Boolean; dynamic;
>
> How do you add MouseWheel support to a TPaintBox ?
There is no mousewheel support yet.
Marc
More information about the Lazarus
mailing list