c-smile / sciter-sdk

Sciter is an embeddable HTML/CSS/scripting engine
http://sciter.com
Other
2.12k stars 223 forks source link

window chrome role for window-frame='solid' not working in macOs 10.15.3 with sciter 4.4.2.4-bis #156

Closed mchampaneri closed 4 years ago

mchampaneri commented 4 years ago

window-frame='solid' is working, it makes window with solid background and no titlebar and no controllers.

But chrome roles of window are not working. I am not able to drag window or close window using the window-role elements.

FYI I am using go-sciter binding

c-smile commented 4 years ago

Try to run usciter.app and in there load /sdk/samples/dialogs+windows/test-window.htm -> "Custom Frame Window". Will you have same problem with that?

In fact main window of usciter.app is a custom frame window-frame='extended' - uses the same "role" mechanism so you can try just that.

mchampaneri commented 4 years ago

@c-smile

Sir, I go through your example. You have used window type popup.

With window type popup it's working. But, with window type main it's not working. Is that correct behaviour?

If yes, then you can close this issue.

Thanks & Regards, Manish Champaneri

c-smile commented 4 years ago

As I said, usciter.app uses custom window frame

It uses chrome role elements, at least:

<window-caption role=window-caption>&#xb5;Sciter</window-caption>

https://github.com/c-smile/sciter-sdk/blob/master/demos/usciter/res/default-osx.htm

Yet, for main window I'd suggest window-frame='extended'. Among other things it delegates rendering of standard minimize/maximize buttons to OS:

Chrome

mchampaneri commented 4 years ago

@c-smile

Yes, It works for window-frame extended.

Thanks, Manish