There are various sap demo programs which do things like this. Have a look at some of these and then you can get the code. Have a look at:
DEMO_ABAP_OBJECTS_CONTROLS
DEMO_ABAP_OBJECTS_DIALOG_BOX
DEMO_ABAP_OBJECTS_SPLIT_SCREEN
There are various sap demo programs which do things like this. Have a look at some of these and then you can get the code. Have a look at:
DEMO_ABAP_OBJECTS_CONTROLS
DEMO_ABAP_OBJECTS_DIALOG_BOX
DEMO_ABAP_OBJECTS_SPLIT_SCREEN