DN_DRAWDIALOGDONE

Far Manager

DN_DRAWDIALOGDONE

The DN_DRAWDIALOGDONE event is sent to the dialog callback function after the whole dialog has been drawn.

Param1

0

Param2

0

Return

Ignored.

Remarks

Although this event is sent at the end of the drawing process, the virtual screen buffer is not yet "flushed". Meaning that if a plugin wants to draw something ontop the dialog, the changes might be erased from the screen when returning from the dialog callback function.

To prevent this, you must force the virtual screen buffer to be flushed using the Text(0,0,0,NULL) function, and only the "draw" your changes. For example:

  case  DN_DRAWDIALOGDONE:
    Info.Text(0,0,0,NULL);
    // draw ours here
    break;

Example

See also: