CMGDK r49-rc2
|
#include <hgl/hgl.h>
#include <hgl/gui/Form.H>
#include <hgl/gui/Common.H>
#include <hgl/object/Object.NULL.H>
#define PROCFUNC | ( | proc, | |
on | |||
) |
bool Form::proc(int x,int y,uint key) \ { \ if(!ObjectControl::proc(x,y,key)) \ { \ if(MouseFocus) \ { \ if(on!=NULL) \ CallEvent(on,(x-MenuX,y-MenuY,key)); \ } \ else \ { \ if(CutEvent) \ { \ SafeCallEvent(on,(x-MenuX,y-MenuY,key)); \ return(true); \ } \ else \ return(false); \ } \ } \ \ return(true); \ }
#define PROCFUNC | ( | proc_name, | |
on_name, | |||
type | |||
) |
bool Form::proc_name(type key) \ { \ if(ObjectControl::proc_name(key))return(true); \ \ SafeCallEvent(on_name,(key)); \ \ return(CutEvent); \ }