ctkCallback

        This package collects methods which apply to callbacks.

Programming notes

This package is not yet a class.

Maintenance

        Author: MARCO
        date:   21.11.2007
        History
                        21.11.2007 mam First draft

RO Properties

        user_methods     list of the method's names
        callbacks        list of the callbacks
        subroutineNames  list of the subroutine's names
        allCallbackNames list of all names (sorted ascending)
        All properties return array or ref to array depending on context

Clear properties

        clearSubroutineNames
        clearCallbacks
        clearUser_methods

Method - checkCallbackOption

        Check if the entered callback code is supported.
Supported code formats are
        format 1   \&callback
        format 2   [\&callback,args]  args := %name, @name,@_ lois of $vars
        format 4   ['callback',args]
        format 8   sub {codeblock} i.e. sub {$rc = 0 if($error); &do_exit($rc)}
Arguments
        String containing the callback code.
Returns
        Format number (1,2,4,8) of the recognized code or undef otherwise.
Notes
        None.

callback

        This methods handle command event while the clickTk session.
        It get called when the user clicks on a widget in the preview.
        It prevents that the application's callback, specified in the widget option get called.

pushCallback

extractSubroutines

extractSubroutineName

pushSubroutineName

extractMethods

extractMethodName

pushMethod

extractMethodsAndSubroutineNames


Back to index