BorderStyle changes aren't being handled
Posted: Tue Dec 19, 2023 11:01 am
Hi there. Firstly thank you to the creator for the wonderful work that has been done here. Being able to replace my old IE based web containers with native chromium features has been huge.
I do have a problem though that is affecting the components and I was wondering if there is a workaround/advice for this situation.
The components do not seem to handle 'BorderStyle' changes correctly.
The use case is that I have an webpage that forwards F11 key presses to my Delphi application. Delphi interprets this and then acts like a traditional browser would, going fullscreen. This worked fine with my old IE components.
To achieve this functionality, I use standard practise of changing the BorderStyle property to 'none' which removes borders from the app, and then sending a command via 'ShowWindowAsync' of 'SW_MAXIMIZE' to go fullscreen.
The components completely break and lose all visuals when this happens unfortunately. This can be recreated by changing the 'BorderStyle' property at all during runtime, after the window has been created.
I have attached a simple Delphi 7 test project (I assume due to simplicity it will also build in higher version also) that shows this in action. But really, just changing BorderStyle at all after the components have been created will trigger the problem.
I do have a problem though that is affecting the components and I was wondering if there is a workaround/advice for this situation.
The components do not seem to handle 'BorderStyle' changes correctly.
The use case is that I have an webpage that forwards F11 key presses to my Delphi application. Delphi interprets this and then acts like a traditional browser would, going fullscreen. This worked fine with my old IE components.
To achieve this functionality, I use standard practise of changing the BorderStyle property to 'none' which removes borders from the app, and then sending a command via 'ShowWindowAsync' of 'SW_MAXIMIZE' to go fullscreen.
The components completely break and lose all visuals when this happens unfortunately. This can be recreated by changing the 'BorderStyle' property at all during runtime, after the window has been created.
I have attached a simple Delphi 7 test project (I assume due to simplicity it will also build in higher version also) that shows this in action. But really, just changing BorderStyle at all after the components have been created will trigger the problem.