OSDN Git Service

GitHub で公開していた内容を SourceForge.JP へ複製
[bacon/BaCon-Japanese.git] / HUG / METHOD.txt
1 METHOD\r\rMETHOD(widget, functype, custom func)\r\rType: directive\r\rAfter an external widget has been registered into HUG (see REGISTER), it is possible to define the default HUG methods also. This is an optional step. The widgetID needs to be passed as a first argument, then the type of HUG method as second argument, where 1 = GRAB$, 2 = TEXT, 3 = GET and 4 = SET.\rThe last argument must contain the name of the self-defined SUB or FUNCTION which implements the method. Subsequent invocations of GRAB$, TEXT, GET and SET for the external widget will now execute the self-defined implementation of these methods.\r