Page 1 of 2

[FIXED 3.1.5157] Width of control panel is getting smaller

Posted: Sat Apr 21, 2018 7:44 am
by mKoch
Every time when I close SharpCap and restart it, the width of the camera control panel is getting a few pixels smaller. The error sums up with every restart. I'm using 3.1.5143 and the same bug was also in the previous version.

Michael

Re: Width of control panel is getting smaller

Posted: Tue Apr 24, 2018 5:42 pm
by admin
Hi Michael,

I can't make this happen in my testing at the moment, it always seems to re-open at the size it was when I closed it. Any further hints on how to make this happen?

cheers,

Robin

Re: Width of control panel is getting smaller

Posted: Fri Apr 27, 2018 2:58 pm
by mKoch
SharpCap 3.1.5143, Windows 7, screen size 1920 x 1080, camera is ASI178MM, Zoom is set to "Auto". I've uploaded a small video. There is a small piece of tape glued to the upper border of the screen. You can see that the border between picture area and control panel is moving a few pixels to the right with every restart.

https://www.youtube.com/watch?v=U5EHE4r ... e=youtu.be

Michael

Re: Width of control panel is getting smaller

Posted: Fri Apr 27, 2018 7:20 pm
by admin
Thank you for the video - very helpful. I was testing without the camera auto-opening at startup - maybe that makes a difference!

Robin

Re: Width of control panel is getting smaller

Posted: Fri Apr 27, 2018 8:46 pm
by admin
Ok, sorted in latest version (just uploaded).

cheers,

Robin

Re: [FIXED 3.1.5157] Width of control panel is getting smaller

Posted: Sat Apr 28, 2018 8:10 am
by mKoch
The error is now much smaller than before, but it is still there. May be one pixel per restart.
Of course for most users this doesn't care. But it's a problem when you use simulated mouse clicks with AutoHotKey, because after a few restarts the mouse click won't hit the intended control.

Michael

Re: [FIXED 3.1.5157] Width of control panel is getting smaller

Posted: Sat Apr 28, 2018 9:55 am
by admin
:( I will have another look...

What are you trying to achieve with Autohotkey?

thanks,

Robin

Re: [FIXED 3.1.5157] Width of control panel is getting smaller

Posted: Sat Apr 28, 2018 10:02 am
by mKoch
Exposure minus and gain minus. Unfortunately the click position depends on the width of the control panel.
Still waiting that you make keyboard shortcuts for these functions, which would be the far better solution.

Michael

Re: [FIXED 3.1.5157] Width of control panel is getting smaller

Posted: Sat Apr 28, 2018 10:11 am
by admin
Hi Michael,

those keyboard shortcuts may turn out to be easier! I suspect now the remaing issue may be a rounding error as the width of the panel is kept as a fraction of the full window width while the program is running, but at other times needs to be converted to/from a width in pixels.

cheers,

Robin

Re: [FIXED 3.1.5157] Width of control panel is getting smaller

Posted: Sat Apr 28, 2018 10:48 am
by mKoch
Yes, it seems to be a rounding error. When the control panel is wide, it shrinks by one pixel with every restart. But when the control panel is narrow, it increases by one pixel with every restart. There is exactly one position in between where it always stays at a constant width.

Michael