Hi,
I'd like to be able to pass/access variable(s ?) to/from the "data" part
of the "g_signal_connect" function, eg :
...
Procedure MyActionProcedure (widget : pGtkWidget ; data : gpointer)
cdecl;
begin
... // Using data content here...
end;
...
g_signal_connect (G_OBJECT(pMyButton), 'button-release-event',
G_CALLBACK(@MyActionProcedure), MyData);
// Passing information here
-------------------------------------------------------------------^^^^^^
...
However I'm unable to handle it once MyActionProcedure called.
- Does anyone have a *simple* example to do this ? I can only find C
sample on the web.
- Is "data" able to store single or multiple (and different) variable ?
- If multiple variables possible, can they be of different types
(integer, string...) ?
Thanks !
Tom
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal