dolodobendan wrote: > Maybe restoring SLX from tray can be sped up. When SLX is maximized, > then minimized to tray, and then restored, it will first render the not > maximized window and then the maximized windows (maybe visible only on > slow computers). If the first rendering could be skipped, it might cut > the opening from tray time in half, if SLX was maximized. > > I just noticed the same happens when restoring a maximized SLX from the > taskbar.
This rendering on restore from the minimized state happens because the client area of the window changes size on restore, causing the it to re-render. It is a consequence of the technique I use to override the non-client area of the standard window by expanding the normal client area into the window border and caption bar (non-client area). I do this in order to customize the title bar and window border. It is a compromise for now. I know the solution would be to create the window as a completely borderless window and then write the code to do all the things that Windows does with regular windows with captions and borders. I made an attempt at this once and quickly realized I was in over my head. I got close, but I didn't know how to create a shadow effect for the window since this approach (a borderless window) does not have the right shadow and I don't have a way to draw outside window area to create one. I'll probably re-attack this one someday. R Greg Dawson Squeezelite-X ------------------------------------------------------------------------ rgdawson's Profile: http://forums.slimdevices.com/member.php?userid=65236 View this thread: http://forums.slimdevices.com/showthread.php?t=108550 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
