Making the HTMLRenderer Form Look Good
4 posts
• Page 1 of 1
Making the HTMLRenderer Form Look Good
Is there a way to make an HTMLRenderer form look and behave like VS Code with respect to the title bar (or lack thereof really)?
If you look at VS Code under Windows, the top right corner with the three buttons for min, max and close appears to be under the control of Windows, while the entire rest of the page is HTML/CEF. You can move and resize the form but it does not have a classic title bar.
I don't think I can achieve this on my own. Is there some new Windows form thing that Dyalog can hook into so that a stand-alone HTMLRenderer form works like this?
If you look at VS Code under Windows, the top right corner with the three buttons for min, max and close appears to be under the control of Windows, while the entire rest of the page is HTML/CEF. You can move and resize the form but it does not have a classic title bar.
I don't think I can achieve this on my own. Is there some new Windows form thing that Dyalog can hook into so that a stand-alone HTMLRenderer form works like this?
- paulmansour
- Posts: 430
- Joined: Fri Oct 03, 2008 4:14 pm
Re: Making the HTMLRenderer Form Look Good
Hi Paul,
There is a new Windows thing that we might be able to plug into, I'll investigate. We've not currently done so because it would be very hard to use in everything that is ⎕WCd, but we might be able to make a special case for the HTMLRenderer.
I'm not sure when/if it'll end up being viable, but I'll have a look.
/JD
There is a new Windows thing that we might be able to plug into, I'll investigate. We've not currently done so because it would be very hard to use in everything that is ⎕WCd, but we might be able to make a special case for the HTMLRenderer.
I'm not sure when/if it'll end up being viable, but I'll have a look.
/JD
-
JohnD|Dyalog - Posts: 74
- Joined: Wed Oct 01, 2008 9:35 am
Re: Making the HTMLRenderer Form Look Good
Just to follow up. The API that I want to call is described here:
https://learn.microsoft.com/en-us/windo ... ows-themes
But DwmSetWindowAttribute didn't change the caption for me, either in the interpreter or in a new VS solution. I've logged an issue with Microsoft.
Note that this issue requires Windows 11. We may not be able to do anything in earlier versions even if we figure this out.
/JD
https://learn.microsoft.com/en-us/windo ... ows-themes
But DwmSetWindowAttribute didn't change the caption for me, either in the interpreter or in a new VS solution. I've logged an issue with Microsoft.
Note that this issue requires Windows 11. We may not be able to do anything in earlier versions even if we figure this out.
/JD
-
JohnD|Dyalog - Posts: 74
- Joined: Wed Oct 01, 2008 9:35 am
Re: Making the HTMLRenderer Form Look Good
Thanks John.
Is the windows dark/light theme related to the idea of having a movable/sizeable top level form without a title bar? In VS Code, the HTML interface goes right up to the top of the form with only the top right corner reserved for the operating system. (This is how it looks now, in Windows 10, on my machine). This seems unrelated to color themes.
Aside: With apps like VS Code, the idea of the operating system having any control over the look and feel of the app seems to have gone by the wayside.
Is the windows dark/light theme related to the idea of having a movable/sizeable top level form without a title bar? In VS Code, the HTML interface goes right up to the top of the form with only the top right corner reserved for the operating system. (This is how it looks now, in Windows 10, on my machine). This seems unrelated to color themes.
Aside: With apps like VS Code, the idea of the operating system having any control over the look and feel of the app seems to have gone by the wayside.
- paulmansour
- Posts: 430
- Joined: Fri Oct 03, 2008 4:14 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group