sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.57k stars 268 forks source link

No display,Win10,Do not show UI #277

Open ji4ozhu opened 3 years ago

ji4ozhu commented 3 years ago

Windows 10,x64 pro No display use Teamviewer Remote Connection a pc, Do not show soft gui.

c-smile commented 3 years ago

Please check:

https://community.teamviewer.com/English/discussion/10718/some-applications-does-not-show-content-white-window-windows-10-host

This should help, In WinMain of your application put either:

SciterSetOption(NULL,SCITER_SET_GFX_LAYER,GFX_LAYER_GDI); (sciter.dll with GDI backend )

or

SciterSetOption(NULL,SCITER_SET_GFX_LAYER,GFX_LAYER_SKIA); (sciter.dll with Skia backend from x32skia )

Later is more preferable.

In fact it is better to apply these options automatically but I haven't found the way of how to discover the fact that app is running under TeamViewer.

I'd appreciate any info on this.