Forum > General

FPC 3.2.2 - AnAddr: CodePointer - How to use for Function call ?

<< < (2/2)

paule32:
you need a global object event procedure with the signature as the original event procedure.
then you can bind a event to a procedure, which can be implemented in the implementation part of the module/unit.

and to let call this procedure, you can Assign the event with a simple pointer:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---onClick := @yourEventProc;
take a look to TNotify.

Navigation

[0] Message Index

[*] Previous page

Go to full version