Open ying911008 opened 6 years ago
Because that native-textarea
behavior is just an example and it is included explicitly in sciter.exe.
If you want to use any of them, you will need to port them (or create your own). Sciter comes by default only with the following list: https://sciter.com/developers/sciter-docs/native-behaviors/
OK, thanks. If I want to create my own , for example , I want to embed my another .exe to Sciter, what should I do? I think about to get a handle in Sciter ,and use win32api “SetParent”,Is there a better way?
There is a tutorial, but for C++: https://sciter.com/using-native-child-windows-in-sciter/
As for Go.. You'd need to create a corresponding EventHandler
responsible for, say, native window creation, and attach it to the sciter.CallbackHandler.Behaviors
map (similar to this). In that case go-sciter will create it and attach to the DOM element when needed.
use setCallbackHandlers(w *window.Window), You means that I should attach my exe in OnDataLoaded?I can't understood that well, if possible, can there an example about this? thanks
https://github.com/sciter-sdk/go-sciter/blob/master/examples/handlers/handlers.go is the closest example.
I could create a behavior example, but can't do it right now. Try to dig it on your own: reread the mentioned article, look on C++ behaviors, try to understand what's going on there.
OK, thank you very much, I well try to dig it
I have a question about native-textarea, I run test-child-window.htm width sciter.exe(in sciter-sdk\bin\64),after that, I can find the handle of native-textarea , but when I wtite it width golang, I can't find the handle of native-textarea , why?