SystemTrayMenu icon indicating copy to clipboard operation
SystemTrayMenu copied to clipboard

[BUG] Fix location taskbaform

Open Hofknecht opened this issue 2 years ago • 2 comments

@topeterk reported

2022-09-27 23_18_50-Window

we should probably move it directly under first screen, instead next to it

Hofknecht avatar Oct 10 '22 17:10 Hofknecht

I'm testing with a separate workspace at the moment but what was working for me: Get virtual desktop height via NativeMethods.GetSystemMetrics(SM_CYVIRTUALSCREEN) and move window by its size to place it out of screen. But that it gets rendered correctly once, I had to postpone the move by 0.5sec after the loaded event. (just in case that the idea doesn't get lost before I finish)

not the ideal solution but it will move it out of screen better than before and the window can render a borderless image, so it will be shown a fancy little STM icon :)

topeterk avatar Oct 10 '22 18:10 topeterk

Timer was removed https://github.com/Hofknecht/SystemTrayMenu/commit/81e20d618b3da6660630ff40cf6afb56ab0a69f9#diff-2879637853aa2e3ae42f4a8be895da160f032086e88293a8ab599379d01bacbdL59-L70 and replaced with the ContentRendered event: https://github.com/Hofknecht/SystemTrayMenu/commit/81e20d618b3da6660630ff40cf6afb56ab0a69f9#diff-2879637853aa2e3ae42f4a8be895da160f032086e88293a8ab599379d01bacbdR57-R64 Maybe in v1 something similar is possible?

topeterk avatar Sep 22 '23 23:09 topeterk