c-smile / sciter-sdk

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

how to dynamic change title (use tiscript)? #109

Closed woodgear closed 5 years ago

c-smile commented 5 years ago

title attribute or title of a window?

If window's title then

view.windowTitle = "new title";
pravic commented 5 years ago

view.windowCaption?

open-trade commented 4 years ago

view.windowCaption?

this works only on windows

on mac,

<title></title>
$(title).value = 

Above for view.window case

c-smile commented 4 years ago

on mac

view.windowCaption = ...; 

on Mac too. But it does matter when you call this function. It will work only after window initialization. Here it will work:

function self.ready() {
view.windowCaption = "Hello world";
}