Skip to content

How to do custom title bar on Windows 10 using the GUI DSL? #4972

Answered by hiiamboris
dumblob asked this question in Q&A
Discussion options

You must be logged in to vote

Nothing stops you from removing OS title bar and drawing it yourself:

code: view/flags/tight [base 300x20 draw [line-width 0 fill-pen linear magenta cyan box 0x0 300x20 text 1x1 "My custom title bar"] base 20x20 cyan draw [line 3x3 16x16 line 3x16 16x3] on-down [unview] return base white 320x300 "workspace"] 'no-title

It's just extra work to reinvent the wheel (e.g. Alt+Space menu on Windows), and there's a possibility that other programs are using your title bar to place some controls.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@dumblob
Comment options

Comment options

You must be logged in to vote
3 replies
@greggirwin
Comment options

@hiiamboris
Comment options

Answer selected by hiiamboris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants