Tuesday, 15 October 2013

Form spitter code



Form Method
Class Declaration
 public class FormRun extends ObjectRun
{
NumberSeqFormHandler numberSeqFormHandler;
SysFormSplitter_Y _formSplitter;
}
 public void init()
{
;
super();
_formSplitter = new SysFormSplitter_Y(VerticalSplitter,Header,element);
}

Design Group Tool
MouseDown:
int mouseDown(int x, int y, int button, boolean ctrl, boolean shift)
{
int ret;
 ret = super(x, y, button, ctrl, shift);
 Return _formSplitter.mouseDown(x, y, button, ctrl, shift);
}

Mouse Up
int mouseUp(int x, int y, int button, boolean ctrl, boolean shift)
{
int ret;
 ret = super(x, y, button, ctrl, shift);
 Return _formSplitter.mouseUp(x, y, button, ctrl, shift);
}
 Mouse Move
int mouseMove(int x, int y, int button, boolean ctrl, boolean shift)
{
int ret;
 ret = super(x, y, button, ctrl, shift);
 Return _formSplitter.mouseMove(x,y,button,ctrl,shift);
}

No comments:

Post a Comment