Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Minimize to the task bar

edited December 2005 in General
Hi,

RB 9.x

Is there any built in function to minimize the preview to the task bar
instead of the current behaviour?

/Ronny

Comments

  • edited December 2005

    No. One solution is to use the Application.OnActivate event to bring the
    active form to the front. This will result in the modal window always being
    brought to the front when tasks are switched. (I do not know why the VCL
    does not do this automatically - seems like a bug to me).

    Example:


    if Screen.ActiveForm.WindowState = wsMinimized then
    Screen.ActiveForm.WindowState := wsMaximized;

    Screen.ActiveForm.BringToFront;




    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited January 2006
    Nard,

    Thanks, works fine.
    It would be nice to automatically have it on the task bar when the preview
    is minimized.

    /Ronny
This discussion has been closed.