-
-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make window resizable with Win32 content? #319
Comments
I had a fix for this which worked fine on windows 10, but caused many issues on windows 7 and 8. I currently don't have a solution for this issue. |
OK, thanks, looking forward to the improvement. |
It would be nice if you could create a repro showing your issues with Win32. |
Any chance to get a repro from you? |
I wonder what exactly you expect. Just having a Dock=Full Win32 textbox inside the window would be a quite simple repo barely worth to create a demo project for? |
That part of information should be enough. Just didn't know exactly in which situations you encounter issues. |
OK. Basically it's just the WPF airspace issue, no special conditions required as far as I can see. |
I don't know how to fix an issue that even microsoft was unable to fix since they first released WPF. |
You don't be able to fix the airspace issue, sure. I was thinking about some kind of workaround, like an additional invisible border outside of the window bounds maybe. At the very least it should be possible to fix resizing within the ribbon area though. |
I tried to add an invisible resize border using win32 stuff in ControlzEx. Don't know how to fix resizing in the ribbon area either. The only way that i can imagine of is a margin and that would not work out very well... It's so sad that microsoft does not provide a proper win32 api do achieve this. |
So why not keep it as feature for Win8 and later only? It's perferctly fine to argue that a certain "feature" will only be available in more recent versions of Windows. |
Because it becomes more difficult to maintain, that win32 stuff is horribly fragile, and i can't detect win 10 in a reliable way as Microsoft changed the version api. |
Hm...looking at MS Office 2013, it seems like they use multiple separate windows around the main window for rendering the shadows and providing resize functionality: See also: https://support.microsoft.com/en-us/kb/2821007 Maybe that is a possibility? |
@floele-sp Took a while but i finally decided to add the GlowWindow from MahApps.Metro to ControlzEx and use it in Fluent.Ribbon. Will be available here as soon as ControlzEx/ControlzEx#49 is done. |
Thanks, looking forward to it 👍 |
GlowWindow branch + PR merged. This should be fixed now. |
Hi,
if you have Win32/WinForms content located at either the right or left side of the window, it is quite difficult to change the window width.
Check the following screenshot:
The red area is not resizable by default, the orange areas are not resizable because the Win32 content is displayed on top of the area that would be resizable (the content is arranged using a docking control, so there is at least some space in between the Win32 windows). This leaves very little of the window for resizing purposes.
Any suggestions for improving the situation? Office 2013 for example apparently has an invisible resize border outside the window bounds so it never conflicts with content within the window.
The text was updated successfully, but these errors were encountered: