next up previous contents index
Next: Problems to solve Up: GUI wrapper - message Previous: GUI wrapper - message   Contents   Index

Registering your callbacks

The first thing to do is to register your own callbacks, so whenever a module calls a function it's passed to you. The following function does it:

int gocr_guiSetFunction ( gocrGUIFunction type, void *func );
Where func is a pointer to the callback function (converted to void *), and type is one of the following:

Type Arguments
gocrBeginWindow ( wchar_t *title, wchar_t **buttons )
gocrEndWindow  
gocrDisplayCheckButton  
gocrDisplayImage  
gocrDisplayRadioButtons  
gocrDisplaySpinButton  
gocrDisplayText  
gocrDisplayTextField  



root 2002-02-17