Making the HTMLRenderer Form Look Good

General APL language issues

Making the HTMLRenderer Form Look Good

Postby paulmansour on Wed Feb 21, 2024 5:56 pm

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?
paulmansour
 
Posts: 430
Joined: Fri Oct 03, 2008 4:14 pm

Re: Making the HTMLRenderer Form Look Good

Postby JohnD|Dyalog on Mon Feb 26, 2024 10:52 am

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
User avatar
JohnD|Dyalog
 
Posts: 74
Joined: Wed Oct 01, 2008 9:35 am

Re: Making the HTMLRenderer Form Look Good

Postby JohnD|Dyalog on Mon Feb 26, 2024 11:37 am

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
User avatar
JohnD|Dyalog
 
Posts: 74
Joined: Wed Oct 01, 2008 9:35 am

Re: Making the HTMLRenderer Form Look Good

Postby paulmansour on Mon Feb 26, 2024 2:08 pm

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.
paulmansour
 
Posts: 430
Joined: Fri Oct 03, 2008 4:14 pm


Return to Language

Who is online

Users browsing this forum: Google [Bot], Rav and 1 guest