POV-Ray : Newsgroups : povray.programming : [Win32 Specific] POV-Ray Tray Icon Tooltip Message, Animations Server Time
17 May 2024 04:22:23 EDT (-0400)
  [Win32 Specific] POV-Ray Tray Icon Tooltip Message, Animations (Message 1 to 1 of 1)  
From: Mike C
Subject: [Win32 Specific] POV-Ray Tray Icon Tooltip Message, Animations
Date: 2 Aug 2005 16:40:01
Message: <web.42efd9dbf1c2a1e73abed3590@news.povray.org>
I don't know about others, but this is something that I've found irks me.
If you're rendering and you minimize POV-Ray to the Tray Icon, and you move
your mouse over the icon, the tooltip shows the percentage of the current
frame, but if you're rendering e.g. 300 frames and each takes 2 seconds,
then this kind of feels useless.  I know there's a Frame x of y count in
the main window, as well as other displays in the main window, and that
this is a cosmetic issue, but I wondered why the tooltip doesn't display
the frame number when rendering an animation.

I tried taking a look at the 3.6 sources which can be downloaded, and tried
writing the code for this, but I haven't gotten time to test it at the
moment.  [And yes, I know it's not a proper diff/patch per se, but I think
it's english-readable enough.]

I don't know if this patch would be appliable to 3.6.1/3.7/4.0 or whatever;
the line numbers have probably changed alot.

=== BEGIN ===

Line 6339, windows/pvengine.cpp

-               sprintf (str, "POV-Ray [%s complete] (Restore: DblClk ;
Menu: Mouse2)", render_percentage) ;
+               rendering_animation = opts.FrameSeq.FrameType ==
FT_MULTIPLE_FRAME ;
+               if (rendering_animation)
+               {
+                 sprintf (str, "POV-Ray [F%d / %d - %s complete] (Restore:
DblClk ; Menu: Mouse2)", opts.FrameSeq.FrameNumber,
opts.FrameSeq.FinalFrame, render_percentage) ;
+               }
+               else
+               {
+                 sprintf (str, "POV-Ray [%s complete] (Restore: DblClk ;
Menu: Mouse2)", render_percentage) ;
+               }

=== END ===

If you're wondering, it's under:

LRESULT CALLBACK PovMainWndProc (HWND hwnd, UINT message, WPARAM wParam,
LPARAM lParam)
  switch (message)
    case WM_TIMER :
         if (!rendering)
         else
           if (strcmp (render_percentage, last_render_percentage) != 0)
             if (main_window_hidden)

*shrugs*  Hope this helps somebody, or is useful somewhere.  Problem is, I'm
not sure opts.FrameSeq.FrameNumber/FinalFrame are in the scope of this
function.  In that case, my apologies for the time wasted.  *sigh*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.