Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

show or hide title bar. hide title bar,bind StartDragging function to Drag window. #57

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

clong1995
Copy link

show or hide title bar

example: go:
w.SetTitleBar(false)

hide title bar,bind StartDragging function to Drag window.

example:
go:
_ = w.Bind("dragging", w.StartDragging)

html:
<div id="my_title_bar" style="width:100%; height:30px; background:red;"> My Dragging Title Bar</div>

js:
document.addEventListener("DOMContentLoaded", ()=>{ document.querySelector("#my_title_bar").addEventListener("mousemove", event => window.dragging()); });

huazhimeng and others added 12 commits September 9, 2024 15:01
      example:
      go: `w.SetTitleBar(false)`
【add】hide title bar,bind `StartDragging` function to Drag window.
      example:
      go: `_ = w.Bind("dragging", w.StartDragging)`

      example:
      html:`<div id="my_title_bar" style="width:100%; height:30px; background:red;"> My Dragging Title Bar</div>`
      js:`
          document.addEventListener("DOMContentLoaded", ()=>{
             document.querySelector("#my_title_bar").addEventListener("mousemove", event => window.dragging());
          });
       `
@pzx521521
Copy link

Does your code support macOS or Linux?if windows only, https://github.com/jchv/go-webview2

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants