Skip to Content
0
Nov 22, 2008 at 02:15 PM

events move_contol and size_control in class cl_gui_dialogbox_container

104 Views

Hello,

Here's quite a tricky problem, which I could need some help for.

I have an object of class cl_gui_dialogbox_container with some HTML in it. The users can resize and move the control on the screen. Now position and size shall be kept in a dictionary table for each user.

I've registered the three events close, move_contol and size_control

  CALL METHOD gc_dialogbox->set_registered_events
    EXPORTING
      events                    = gt_events

with event_ids 8, 11 and 12 and set the three handlers, e.g.

  SET HANDLER cl_event_receiver_tree=>handle_close
  FOR gc_dialogbox.

I created three corresponding methods handle_close, handle_move_control and handle_size_control.

Well, so far for what I've done. Now the results:

If I close the dialogue box, ABAP correctly jumps into method handle_close. But at that point, the control has already been closed! So I can't read size and position any more.

If I move or rezise the window, nothing at all happens... Not even the debugger would pop up if I do anything with the box.

Does anyone here know how to do this?

Thanks!

Jan

Edited by: Jan Krohn on Nov 22, 2008 3:17 PM