[lazarus] Messages
Nicolas Aragon
nico at clubdelphi.com
Mon May 3 16:36:51 EDT 1999
Hello,
>Question: I windows, if you need to tell a control to resize, you simply got the handle for that control and sent a WMSIZE message to it with the sendmessage or similiar procedure. Is there anything in GTK that we can use to send messages to other controls?
Sometime ago I wrote this:
procedure TGtkControl.Click;
begin
gtk_signal_emit_by_name( PGtkObject( PWidget ), 'click', [nil] )
end;
But it isn't tested yet. I suppose that [nil] could be replaced by a
record with event information.
Another possible way: maybe Xlib window handle is contained in gtk
widget struct and then you coul send a Xevent directly.
greetings
Nico
More information about the Lazarus
mailing list