WideStudio Logo
WideStudio
Programming Guide
WideStudio Index
Table of contents


How to add the event procedure on the programs

You can add the event procedure with the method: mpfc::WSCbase_addProcedure().

The method Description
mpfc::WSCbase_addProcedure($event_proc_name,$proc_name,$event) Add the new event procedure.

Add the event procedure as follows.

use mpfc;

# a sample of the event procedure.
# ..
sub _new_event_procedure {
  my ($object) = @_;
  return
}
sub event_procedure {
  my ($object) = @_;
  # Create the procedure instance which name is "new proc".
  # The trigger is  WSEV_MOUSE_IN (MOUSE_IN trigger.)
  mpfc::WSCbase_addProcedure($object,"new-ep","_new_event_procedure",$mpfc::WSEV_MOUSE_IN);
  return
}
1;


Document Release 3.20 for WideStudio ver 3.20, Oct 2002


WideStudio documents index | Table of contents

Copyright(C) T. Hirabayashi, 2000-2002 Last modified: Oct 27, 2002